Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2814406rwb; Mon, 15 Aug 2022 11:53:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR5C+wnb6iFzaVxVNge6MR03hvIp3gJkHoFLRHUidvKGPxow4aQ/Frpkb3k5uP2p8TdilhmI X-Received: by 2002:a17:907:2889:b0:730:b35c:d91f with SMTP id em9-20020a170907288900b00730b35cd91fmr11107188ejc.57.1660589628335; Mon, 15 Aug 2022 11:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589628; cv=none; d=google.com; s=arc-20160816; b=H6+N6nsk8j0CeSFsPhoxR95lIzrnGUq8Zr0H3IoDIJ3XHe/FYuD1tw2oWR1ka5Ft8T aat2qBsHsx2y6rOsORAXKPsRzbnLvx3+dOxvEbgRM+MXHh4KwRUVKwikvHruuHrc7v87 8yCqz9De5kC4OoTVrWFpki0hzh5hzO7oDI2RZ6pMWhprT/AkIqCkaDegYNXqmidl4UeR ZPIqXndDWz/6U8Tel/Ts+f3IBYIvna92pwtm7VwWaq+H6J3p8VJg2frTQzO8bYDWbyvG lluvN81iJ+QBM74sSU8qjkwHRDLZQ3iBhdFexeDiyP/BxjOpxyZfbjETC941bdNK8Q0j fu/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MlfbPNq85gBvaDmEeXu1Le9uJ8jWzj6+EpUFbJKCgqM=; b=ndvRxeJEqWUkyP7/Lyd8G7/RizGJPBUTPtzaCNvFe3yIEqvWS09VsitJrOOHhWyNPd wb1t/OaYmaVdgalRarM/Cei6t6GsS/AKxzK3jkhYKuZs5GWT9SA2DwKzKMTxhZNior+W F0re/YWj7anXFfNhSG2ZgiUUZRTub1g2LycVsvZI/l/4xMi1q7PozFaQK2ZtuH1ZcVRf srZBORl6W82grBr6LIKzkRfcmGf5r7rnWeZS8VmTXXYvfYPv0yIArLCl6gtY9S/vz5dd RECrCynxtV3k45/FSFuo54TB+Tbx/ksZ6tF+GTWPLbSeovcohd4fFXCfnBEY/xpeiRQR tA5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sPRqrN4m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v19-20020a50d593000000b0043ef2d2fa68si7477505edi.423.2022.08.15.11.53.20; Mon, 15 Aug 2022 11:53:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sPRqrN4m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231928AbiHOSpe (ORCPT + 99 others); Mon, 15 Aug 2022 14:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244059AbiHOSmD (ORCPT ); Mon, 15 Aug 2022 14:42:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30B492ED61; Mon, 15 Aug 2022 11:25:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E00E6B8107A; Mon, 15 Aug 2022 18:25:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C270C433D6; Mon, 15 Aug 2022 18:25:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587947; bh=vpMq/77TVTXbKQJL3MIASgFymPhjuzR2piBhY6nQYck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sPRqrN4m1nUrfwOFu0ybOT07zfIwHBcoRRqaK9R0+COn4AjrY9MU8Q78jc9XyX8uE LH41CO5/sYuAj4+MRJgMrZnGSjjgZtsIdv4zG0PmL+15BLAd+Kyl0MRpHBS2EI6H8T RtwuGLfjldRUbPvrQ54CINuTfXWxwCaiM+KKTDXY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jitao Shi , Xinlei Lee , Rex-BC Chen , Chun-Kuang Hu , Sasha Levin Subject: [PATCH 5.15 246/779] drm/mediatek: Add pull-down MIPI operation in mtk_dsi_poweroff function Date: Mon, 15 Aug 2022 19:58:10 +0200 Message-Id: <20220815180347.844606474@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xinlei Lee [ Upstream commit fa5d0a0205c34734c5b8daa77e39ac2817f63a10 ] In the dsi_enable function, mtk_dsi_rxtx_control is to pull up the MIPI signal operation. Before dsi_disable, MIPI should also be pulled down by writing a register instead of disabling dsi. If disable dsi without pulling the mipi signal low, the value of the register will still maintain the setting of the mipi signal being pulled high. After resume, even if the mipi signal is not pulled high, it will still be in the high state. Fixes: 2e54c14e310f ("drm/mediatek: Add DSI sub driver") Link: https://patchwork.kernel.org/project/linux-mediatek/patch/1653012007-11854-5-git-send-email-xinlei.lee@mediatek.com/ Signed-off-by: Jitao Shi Signed-off-by: Xinlei Lee Reviewed-by: Rex-BC Chen Signed-off-by: Chun-Kuang Hu Signed-off-by: Sasha Levin --- drivers/gpu/drm/mediatek/mtk_dsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index c30af7ca5fad..b0cb0ba53589 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -682,6 +682,8 @@ static void mtk_dsi_poweroff(struct mtk_dsi *dsi) mtk_dsi_reset_engine(dsi); mtk_dsi_lane0_ulp_mode_enter(dsi); mtk_dsi_clk_ulp_mode_enter(dsi); + /* set the lane number as 0 to pull down mipi */ + writel(0, dsi->regs + DSI_TXRX_CTRL); mtk_dsi_disable(dsi); -- 2.35.1