Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3083375rwb; Mon, 15 Aug 2022 17:43:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR59q/nJNNOc6Ch7ucyrP/z1TBvZnOyaGSW0IND0czqn5sNI1M+/oXDMPg6EzeisHH0+NNSs X-Received: by 2002:a17:907:2cd5:b0:731:6a6b:209b with SMTP id hg21-20020a1709072cd500b007316a6b209bmr11460827ejc.315.1660610598645; Mon, 15 Aug 2022 17:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610598; cv=none; d=google.com; s=arc-20160816; b=ooWu0k+kERvwF8UJDkMFGnT4pJkAAd+RSk3wpTwiAPKtMDpBQK0kca890Irfk3GiJx v5zK8rXeTkjJ+dGejQk5keEctf8fUWAaI0hsrm4Wc/D5QZDE21BO4mQTjBClosXKOF9B /qUB6TmXnrE57Un4dHqEByNMZi4Io04rLGUgmvhzyfK+UogHXbqshMXu9Y4y1dRUTTXF 7b3on7BAx3IOejTxCwR7lWrzL0qMiUK2j3+cY6o1FGed6NDW0JmXYAp15Tg6ZdJVeCks niNdT3yfvrVm7HcqJHBKvnRjP64F5EZRIdASZM45sBvyLBcF98jbiispIYb4/G9LxAX9 r7sA== 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=2FkMhvZXrI+VlPEKEfKaP7dbl5zSB79Kybd12Z8nlEY=; b=oyBbvH7Us8g8yIAZNlBQFf+9bBPo6H2oADnVfCmHdN9Yq6jQwfiMYppaBhyvW8FsK2 ePSFifoL1VoxCjPUoRwdNMIjze2bNKFKOctlrxjP5cI+hek6PGaH7gDPbqIXGCqzGlng 1OLDgapSs5mRX77aRS20dzveHAx3PbHF1luyjBiAxQtLMk4PVu7KKurKSkzrQQyue6rV rbeabKN/Yz73HgefFBFQxEewERKekJyVy0VmgbyMz3kY2YRGmsgDLEC5f3PwZJ2ownUy Vy/ltCN2Im1MRV6FdKGazyTw53sv6N2YOAl+60FI5+qevr7BaYd5NfSC5S4VGMzdkiGx pKxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=T+OqwmB8; 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 d42-20020a056402402a00b00443cce19cb8si2909758eda.466.2022.08.15.17.42.53; Mon, 15 Aug 2022 17:43:18 -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=T+OqwmB8; 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 S1344710AbiHOX01 (ORCPT + 99 others); Mon, 15 Aug 2022 19:26:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347664AbiHOXVo (ORCPT ); Mon, 15 Aug 2022 19:21:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73AD87E031; Mon, 15 Aug 2022 13:04:47 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 18B3060693; Mon, 15 Aug 2022 20:04:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1ED95C433D7; Mon, 15 Aug 2022 20:04:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593886; bh=0FUqD62hQs6exSXDr4fldjl1BY2vI18VB5zREhVNW5g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T+OqwmB8+sfYC78akMm0Hxu1j0DNIYi1Fw7jXzoDcagXD48oNQqrMeCl6tLDhtCvr 1aqsRLhUKurZ7Alw6aKuGFEptFwXrJD4X1NV+rjmZUjX3mNCspM7hF7mPpj7VgZSOT oPJ4wyRA4Xh87NRH1Gv2fdXDhEU0sKHpRIrbNsKs= 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.19 0339/1157] drm/mediatek: Add pull-down MIPI operation in mtk_dsi_poweroff function Date: Mon, 15 Aug 2022 19:54:55 +0200 Message-Id: <20220815180453.227337592@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 966a4729bb41..e9764c2e0262 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -694,6 +694,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