Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1855339rwb; Fri, 19 Aug 2022 10:30:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR4wDb+vBckAdrKyLhAQaXMYfNLeZVFt9aVtazB1x2rhOXsbep1Tba1MszKBQTOtqGqt4Muj X-Received: by 2002:a17:902:cec7:b0:172:5b09:161c with SMTP id d7-20020a170902cec700b001725b09161cmr8293283plg.60.1660930208798; Fri, 19 Aug 2022 10:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930208; cv=none; d=google.com; s=arc-20160816; b=koEY99IFA7mLGvHYiRCWfyGO98RD+neriF7la/2RwpwC9M2sSZdCfeFWhwp9kCyqWu TMHziUzAMkw45eFG8Fkoa8IdOl1h6IGIxjI9Ktnw9bAri1yotr1CvJPzjDZp5Sqnd5+0 ErRZC/UlyFY8HJ7P8FDqNPODREMyOKqXZbBroRL1st7I8lS+K+RQlQdPlaJs7dxNjTe/ 0XBWu+hLQEhulecezt8M1EZVP/yIEfBq+Q3TnD2z6lCPNyUTzkEke0lYMyJjP0xdHS34 h9xSyOpUVSIMYVJPa23+egaXkk0lfHINohqAMtcdDx3Cvi3CVLqzurt7qUs6QwxrGiB3 1u7Q== 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=zx3zFdKqFa4+0+HAwIQmKTDGZLHjxsdopHY35glneAQ=; b=y2cfahKYMpGr2d4GTP+5dmTO1xQ50GEvHvL1xBoTLB1tcsrqCHzQ2vwTHafrUMF8dt Xou6ZvjUei0VsJ/iaNoMUadW2bdCRGBpTNGoithby8OQWDZP+r78VwiSzM7+49qCu6VV Di74n5R0AhsDqAWHlv0mxEdPELBtVSoBIAbTs7KFlOLyWZOAljU9PZ6pCapkmUUNgu4S RngIU0/07vAPBou6zCPmVzgyHZlaZY8UNUCzRAHKbVD4pP10uwNVOo6rwx6WuMhIdm9n VUvuwq6VH0IgE6LVHznT2LdSqnF6O+sl2CfyTIFDx6hZxJhaMfkeQN6p+vrIQ+wCm/gR CcbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2YkifPwP; 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 b2-20020a056a000a8200b0052f7fb6f2desi5154154pfl.154.2022.08.19.10.29.57; Fri, 19 Aug 2022 10:30:08 -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=2YkifPwP; 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 S1351600AbiHSQGH (ORCPT + 99 others); Fri, 19 Aug 2022 12:06:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351593AbiHSQCM (ORCPT ); Fri, 19 Aug 2022 12:02:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C76B110B51C; Fri, 19 Aug 2022 08:53:55 -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 76FBAB8280D; Fri, 19 Aug 2022 15:53:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0FB7C433D6; Fri, 19 Aug 2022 15:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924432; bh=VPqFzFfLVZdIbtPQuP1vU+xxVbuVQx69nKkqMQyhbf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2YkifPwPo1vGRH3FYGp5jQ0ZC/eZxkxxWYu8tZnNJJ57Y55Sc0o4Pv4nEPWDAMuoo sd4nbnkhL6YfoWZ0aAdoVEuIJ/vDvLVDSRpVBL2uMKfGb4cZhFhPwoGRRzjeFbCgth 4bhf48/cAE0BgRri7WP+Dlp0Q8HxnEW6JHiZPGyg= 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.10 168/545] drm/mediatek: Add pull-down MIPI operation in mtk_dsi_poweroff function Date: Fri, 19 Aug 2022 17:38:58 +0200 Message-Id: <20220819153836.879441566@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@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 1b13e429e9d9..f39785934999 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -677,6 +677,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