Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2270331pxb; Mon, 12 Apr 2021 20:16:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUGlveXfRvZxpiYjIrU/40biR9kZA6Y681YKg4m00Q14bTpDHzOVERUgAMmsG/FL4EUQYn X-Received: by 2002:a17:906:8a6e:: with SMTP id hy14mr30349146ejc.356.1618283760030; Mon, 12 Apr 2021 20:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618283760; cv=none; d=google.com; s=arc-20160816; b=mQAsZJTSXWPjMZ8ejNFtgZ2l9+JAY7XzG45RVBSkZ+ALpQUQDWU8mEvaUWxsy/5fQh /0N7Gzhko+maQg62Q5eJTzSkkzP64+Ez0Z5wlW8Eg8HuGZExm5YFCD2fCUVcwoA+ADf8 OQcIK38XrqUrtyx8cCCDYk6VCM3LulOtPj/ZEvNHaEBeZW6A0xFp045SLjoU/oxBYjI7 3j8Az6va1IXbIrYOpGqCRV9lWxmqPQ5iSNX9IQFDoL5zAnbhElXXU6CPS6UQgwvcreI9 ZmNLHSzqCMS8eCR6WAHTIZ2z079wbTUx8zSnEggpgP2PP7aDDXnMr2AliZni+fhuC7kG GWpg== 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 :references:in-reply-to:message-id:cc:to:subject:from:date; bh=H4NjL5KybiL1qL/7RtQm/k9wRclVeWkciBEcmrpa3u8=; b=wh1hK76tKQNWBUG/btq0NwhOzqW4+8Ykq9BVVzxecR1zRqXnxVqOMz2L1RWCRXlnDK wbebTS12vDpNNUI2Mu3GSZLs9f3mCVZqwoNqJt9ypSw66znbNFvQVtfTufZWCYZqX2nb L5IIb6R22CNGUdybltphF7ZsmAWbzZFdzHE2ZCun/aJrlehUvI6sTREktuGono6lQKV4 HNExorg/Khh/IlzeeDlluGC3IejzmRbwHGzaXl7+7EMYZgU6XDFpYzOVXa2IYxuRL0NN PJpeEIev/DmkkN+IV5AjC7zD7wD87IEgNju5ioG6FL3B3bvDUhDNPB8ZZgrZ1ohPZdnd ZCBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si9298824ejr.236.2021.04.12.20.15.36; Mon, 12 Apr 2021 20:16:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240573AbhDLOeh convert rfc822-to-8bit (ORCPT + 99 others); Mon, 12 Apr 2021 10:34:37 -0400 Received: from aposti.net ([89.234.176.197]:55318 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237558AbhDLOeh (ORCPT ); Mon, 12 Apr 2021 10:34:37 -0400 Date: Mon, 12 Apr 2021 15:34:07 +0100 From: Paul Cercueil Subject: Re: [PATCH] drm/ingenic: Fix pixclock rate for 24-bit serial panels To: David Airlie , Daniel Vetter Cc: Sam Ravnborg , od@zcrc.me, linux-mips@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Message-Id: In-Reply-To: <20210323144008.166248-1-paul@crapouillou.net> References: <20210323144008.166248-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Can I have an ACK for this patch? Then I can apply it to drm-misc-next-fixes. Cheers, -Paul Le mar. 23 mars 2021 ? 14:40, Paul Cercueil a ?crit : > When using a 24-bit panel on a 8-bit serial bus, the pixel clock > requested by the panel has to be multiplied by 3, since the subpixels > are shifted sequentially. > > The code (in ingenic_drm_encoder_atomic_check) already computed > crtc_state->adjusted_mode->crtc_clock accordingly, but clk_set_rate() > used crtc_state->adjusted_mode->clock instead. > > Fixes: 28ab7d35b6e0 ("drm/ingenic: Properly compute timings when > using a 3x8-bit panel") > Cc: stable@vger.kernel.org # v5.10 > Signed-off-by: Paul Cercueil > --- > drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c > b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c > index d60e1eefc9d1..cba68bf52ec5 100644 > --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c > +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c > @@ -342,7 +342,7 @@ static void ingenic_drm_crtc_atomic_flush(struct > drm_crtc *crtc, > if (priv->update_clk_rate) { > mutex_lock(&priv->clk_mutex); > clk_set_rate(priv->pix_clk, > - crtc_state->adjusted_mode.clock * 1000); > + crtc_state->adjusted_mode.crtc_clock * 1000); > priv->update_clk_rate = false; > mutex_unlock(&priv->clk_mutex); > } > -- > 2.30.2 >