Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4552279rdb; Fri, 15 Sep 2023 05:58:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IExTtQiLuqJ2b8IQWgDMLw0cDwPN0F0I6q/vE1p9QVrWo9zPWUe5mRw5hqyvCG1LG9DFLQS X-Received: by 2002:a17:902:f68f:b0:1c0:bf60:ba4f with SMTP id l15-20020a170902f68f00b001c0bf60ba4fmr1551838plg.4.1694782730355; Fri, 15 Sep 2023 05:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694782730; cv=none; d=google.com; s=arc-20160816; b=hVMDyLFCYcF26Nq9dI0OOYOXSo0xCf5CN4+3arcG4o5VNcq0eD2D1vL28rsz6ncYHz PsqjOJqm1Rll8mQ8DG+1BGf1WBEUAsF+WGX3XPyDQt3hKPqe0msi4xl6gsj7ffSiCMaU ld79NfqSzyqTJyRbH8OQkD+u6Ut3U1LTZMoIVjRPEB2FpQARtXI3mDzz+N+M56PrZqd3 udJ3Y5mY17x6N9PhG3qbBtx7BgLHnH0W6gC+Vex2CqhQZStlwqtMTCb0aZDaJpHiDVr+ QxqNF33Er93yHvVxMXYFkYC7fKfty3t3i2TcBMuVsW/+RTWjIpwshR10ocQZGepsqm2D 4PCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=XuJ+JftYN/b1DEO/cNmTSFFteFWazy0/r1D9oFa3ynw=; fh=jSSr14hnUwCcF7tSCReiW8d5TzZqk/a+DjiJoVmE4Is=; b=T90SGj9FUJtMxD50nC+755UKW5oSG1RyUyk5yRZHngenMuQO3yYseyuw4v2qsasSpy qswVWkKyYxO00uk3uRAY8vqQ2IWVfDfH37VMNHz4BUjVbzNbiEtXlUN0/uLs62j14CH/ ibkunufp9wnV5fbIyd9fH0bl+D2kxEQq6g/b0moLLHRB63NVmZ+X/Ak3sw7gdLci1vG/ iEJWjpvbd7Y6LxGwmaEpoCVjQRfp1U4OafmYnbwg8lN4iJPR8ViuNyvk3ykNkVlYwNgp NxEqpS3DL2ZmxldxvoE+HjFocAXnmpI8kFJhAnsh93ALZsBcVoubXRdQVnmnqLw7YkMy IPSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=R69HQPLo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id r12-20020a170902c60c00b001c08c0baedcsi3193197plr.67.2023.09.15.05.58.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 05:58:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=R69HQPLo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B903C8311BC9; Fri, 15 Sep 2023 02:03:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233183AbjIOJDV (ORCPT + 99 others); Fri, 15 Sep 2023 05:03:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233143AbjIOJDU (ORCPT ); Fri, 15 Sep 2023 05:03:20 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93B1B30DA for ; Fri, 15 Sep 2023 02:01:47 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 3496366072BA; Fri, 15 Sep 2023 09:58:37 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1694768317; bh=QvOarZtm9q0/2Kba7YS408C3On3CckrdIr72iCDGik0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=R69HQPLoeSJeRPnLMYl37vbwbaKYVtZ638yOLvIiYj8GORIrmSChH0A86OyLeP3WK szQREpUVuA8jzgUFa1NzVasateqS26xlwtwPcVMmnLLQmlKDdbnraH2fDpaAMRythX pbctN3GX+1bMVJ18SZIHOgyF1WeOzbz8IsX00JFpnAlPV8Kp4yRj2FKGLttIc+83bg V5ITMSFDWwLqcxc1+UNzeknVQ6RWXUTm4kt1xIqs1jMVxIP7yjjMdtidGnnjSofEwY wmUAoyN9wNxHI9lSerXXcAcsKk+99WTGY0yYqfxPguiez+aWO/cUCcGJellnTtL4RA xR7TrWis50apQ== Message-ID: <0a184b35-133b-483c-d475-01120fbdc2ca@collabora.com> Date: Fri, 15 Sep 2023 10:58:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH] drm/mediatek: dsi: Fix EOTp generation Content-Language: en-US To: Michael Walle , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger Cc: Jitao Shi , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20230915075756.263591-1-mwalle@kernel.org> From: AngeloGioacchino Del Regno In-Reply-To: <20230915075756.263591-1-mwalle@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 15 Sep 2023 02:03:18 -0700 (PDT) Il 15/09/23 09:57, Michael Walle ha scritto: > The commit c87d1c4b5b9a ("drm/mediatek: dsi: Use symbolized register > definition") inverted the logic of the control bit. Maybe it was because > of the bad naming which was fixed in commit 0f3b68b66a6d ("drm/dsi: Add > _NO_ to MIPI_DSI_* flags disabling features"). In any case, the logic > wrong and there will be no EOTp on the DSI link by default. Fix it. > > Fixes: c87d1c4b5b9a ("drm/mediatek: dsi: Use symbolized register definition") > Signed-off-by: Michael Walle Hello Michael, your commit is missing a small piece! :-) Besides, I've already sent a fix for what you're trying to do here: https://lore.kernel.org/linux-arm-kernel/07c93d61-c5fd-f074-abb2-73fdaa81fd65@collabora.com/T/ Cheers, Angelo > --- > drivers/gpu/drm/mediatek/mtk_dsi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c > index d67e5c61a9b9..8024b20f6b13 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c > @@ -407,7 +407,7 @@ static void mtk_dsi_rxtx_control(struct mtk_dsi *dsi) > if (dsi->mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS) > tmp_reg |= HSTX_CKLP_EN; > > - if (!(dsi->mode_flags & MIPI_DSI_MODE_NO_EOT_PACKET)) > + if (dsi->mode_flags & MIPI_DSI_MODE_NO_EOT_PACKET) > tmp_reg |= DIS_EOT; > > writel(tmp_reg, dsi->regs + DSI_TXRX_CTRL);