Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2928752rwb; Mon, 15 Aug 2022 14:14:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR7xt8z2dsJcvMSdDD8fvubjTx4zEO9ARYlc1oogkola3vn90IeRC1qHY6W4zMUjyweigKJ/ X-Received: by 2002:a17:907:970b:b0:732:f76a:97a2 with SMTP id jg11-20020a170907970b00b00732f76a97a2mr11694016ejc.396.1660598064451; Mon, 15 Aug 2022 14:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598064; cv=none; d=google.com; s=arc-20160816; b=B2FiOrkjWDcPEcw2PoZJ9qBzpKxocQfvxYJBWcVey+luytvtRQtILrkoV2uA/B8EFJ IkBU62aj83f49ovjrPPqjf86M2p47MRkwNH3qGlHu3LfzCND3A/FpGNNfsaTwGNjMocl /WiE2GPoRdSUPE8m/gWVS52RXqN3GeBCCteU2NaTBbgtp7TY/ppSptw7fiwnpa9YsepJ pjDdicklNQAm8yfIHwgWZHE3GkphLNJOWWfie3KwqmYuFJR+c5v5vsYaXW723aQ8BA9l pWMYW6hg+x1A5FokcBv9xTComY6e/mrWimZzoe1D5NRFZdAs4cl5Z6VKgQKjgcZjK+Cf 3ysA== 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=Bmnhmmc7sLozpVtDVWv7lsENsb1kquxpH+t0rwziK3Y=; b=vrj/rkRXAn7BPvy4i5TMf5diR3+Jpu6jv6jLcMT7/NMBXEIfzHN5Zi2/YSVr0perAC PNi6n/RrC4Wkva1zzsTyUxsHeVVhCSkoT41w5uKHqfNSkMpGyn241sNOoCxByFR6iQQ+ Rtp1d5jW46dkQtE98o5jojZ2kPD1mzx9lAFQscUAGGz3xC1lMJkcQZ1Twwt92bTCN0US ll/d82fDRkZ0gRkzy3/wNmyCZ+3Bz30PcWLLhAGBUJt4s1aLT7Sv3wLLMMMyiqBKXHmv VY1mQwFBUZAS5LrjzsJKKS8ct/JblN+Nvk0Uc7U9m1FaOr44kfcpmZzFk0gc5Si47ulK uoEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YT9bGNZP; 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 dy14-20020a05640231ee00b0043e407ba7a5si7963413edb.345.2022.08.15.14.13.58; Mon, 15 Aug 2022 14:14:24 -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=YT9bGNZP; 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 S1344489AbiHOUy1 (ORCPT + 99 others); Mon, 15 Aug 2022 16:54:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346562AbiHOUw6 (ORCPT ); Mon, 15 Aug 2022 16:52:58 -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 8674F6443; Mon, 15 Aug 2022 12:10:54 -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 D2A14B81109; Mon, 15 Aug 2022 19:10:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20C0EC433C1; Mon, 15 Aug 2022 19:10:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590638; bh=VTOtyVBISkeg2LXdvA8xIlbkH26cTOLWS3LXku/n0/M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YT9bGNZPjFfY6mKC5DpC6BcU2lsM9F/K+6tW9f7wbK2yOp+t4TjhRXq1WOltX3dFD VpeBeovovTMFBPelWkQR2Ly9YkRcNHKMEWvJLVFlwCIcMjthhYecj4to4RZwAa6XGE f9mZnVlIVY4eYGLBtOJx8NY6al2fCV3QwjGk8dPQ= 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.18 0323/1095] drm/mediatek: Add pull-down MIPI operation in mtk_dsi_poweroff function Date: Mon, 15 Aug 2022 19:55:22 +0200 Message-Id: <20220815180443.146895295@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 3a6ee6e9ad2c..f0f523bdafb8 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