Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp322435pxj; Thu, 13 May 2021 05:54:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9jLXCNS6YVkQvErGRiLBtyJxSc8JZspapMRKDq+PbOr9EC/GSH/X5/kEDsaqb3iOlBXPp X-Received: by 2002:a17:906:7fd3:: with SMTP id r19mr42779544ejs.2.1620910449252; Thu, 13 May 2021 05:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620910449; cv=none; d=google.com; s=arc-20160816; b=BpUFTwgc8yr7mFCc62r0RvQjsjTAvv0q8HTRiQiB2+y2JwZEZk3u8ZLN9yvAhK1yUN NiltJeRwFx3B8rMwnWFqmdnc/a/fztpqC2B29hN0f6k5vpxj/JX98+M5QhP35RmHpBHT Q2+IQ6nwteMq9YNR2Ov8Hkk5Khn/1wcmmBggLaVxAaimHOp+tr/KwGFdhvHe63oGPZT2 GOVBz1pqIPTYHb7xmhK9Vm3Qf0qbQxmPgKpjLUYipptcGEKvrakhKJsrZ0CwVl4X9M2E 0ycyvPBpZOybRwoGRCKqK8wdA3xh9GyzBrXqE5OR2uGkC+31nYg8w3FxtBhO9bTETF9w y0uw== 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=BCLXsOaLGKDw4AssNVqSE0w1YCEqzTXZWyVA6RiDcS8=; b=wiwfxHLodJicv2cS8byeC8Vsd/FpD8KE7LMxeyWrXv2oIOX9dWuquxAcyy7+Uz5tC7 pGkdanQVFny74SYVo4aM0KLMhqSDXbu6BvNf9E8EJMAzD8hdGMUgwkDTfpZ0hrc9draY +OfS9GGVAwjCKyQ+6d/YHSpffSyBAlmtIZxBu5n3a/yuiepCNe7DYpyzWM/DiN55wjh8 LbVOTAaTDM0j9ul7P0MbzXwNayASqG3c8pbRC9f8eOojYKz9FWsxS9epCkmHMEYD37/t 8Oa0dYGzo5TViO54W+oKLImZW1R2gY1HsGvCh+kvYYC4GVDCdS1fJJTVGWZIGT90J+B1 nZVw== 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 n8si2933824eje.94.2021.05.13.05.53.44; Thu, 13 May 2021 05:54:09 -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 S233846AbhEMMbA convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 May 2021 08:31:00 -0400 Received: from aposti.net ([89.234.176.197]:43604 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233305AbhEMMa6 (ORCPT ); Thu, 13 May 2021 08:30:58 -0400 Date: Thu, 13 May 2021 13:29:30 +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: <6DP1TQ.W6B9JRRW1OY5@crapouillou.net> 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, Almost two months later, Le mar., mars 23 2021 at 14:40:08 +0000, 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 Can I get an ACK for my patch? Thanks! -Paul > --- > 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 >