Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2366605rwb; Mon, 19 Sep 2022 04:11:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5CInE1EYuhaOof9BItrjLss4DwUycj1XKFZROsAg7b429v9DFTc5e612nRvkgNCvwZSrSA X-Received: by 2002:a17:907:9494:b0:780:fd30:e757 with SMTP id dm20-20020a170907949400b00780fd30e757mr6802316ejc.166.1663585918852; Mon, 19 Sep 2022 04:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663585918; cv=none; d=google.com; s=arc-20160816; b=EZre4OV1sFuB1NZDwWq792+DaYpduZ9WtUqyT3Po8XnwVRo26qvmOGe6nvhSjBcB7L cRx8Tk4Z1tBZRovmDtS8rOiD0zlUDXFB5/Bj1Jl0s0/l21G4WkQW7dc7WJ/6zLGEWjRh qPJxLehL4OiXkGqn+uAmuKsXvgCy+H/3wc7GpESgzGwGJ+wKP4L7uqqD3Nd8Dx3XoJ7c 1v0YW6udvSdZfq22YjODsPt0vtRyzj2mb6d6HPBRsM49JN+TTKRei7/9bsA27EoMkfqU p/8KfULR4Gmw8r41Kf3TGljNIv2xypRBmcpxxlWDtZLzaDihwReScMoM5kJ5jaZzHjCn z0mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EMO6BCgEYOWTmuZqaDDc7q4Fw9lxu/hTA2O/PIFv0nU=; b=umTojgfzj5oxUIvLNDwKTznXLzE2vddIOPUO7QpuqXEBalKMwOiQspffZYLsJZTVSc zjcN79uic28J6pfeVdjpdebqa/s1l/uz+ct8lLlJA9TPTeqQ+PpTBiIYPzJJlkMszNJM qql4Ki0hMwNp3WEk1UQVh4ySEi/axazt+BROdfs3GgpeL42kZOINYk3nIOn7cj1GRqRS RyRS7+Rl7krtx5+UkS654AWRnQoSJ4C+B4oMvENvF36sNbh56s+df4QapSxupitNFrGa Dvu+A0LcZs2oxDUScjU5mhGwJrHggClmHXeE9I0Sgbn+qSenskAUPvS1HCdhLRz6ct55 ARoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=GupHLLKh; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a50ce4b000000b004437a9fcc07si7527738edj.361.2022.09.19.04.11.33; Mon, 19 Sep 2022 04:11:58 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=GupHLLKh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230060AbiISKx3 (ORCPT + 99 others); Mon, 19 Sep 2022 06:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229898AbiISKxK (ORCPT ); Mon, 19 Sep 2022 06:53:10 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3495A1EC5D; Mon, 19 Sep 2022 03:48:03 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 901AF9BA; Mon, 19 Sep 2022 12:48:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1663584480; bh=xH0dFiynDBJvh38igkGQg8mcP/tEn+0QLkv2GwKrsOQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GupHLLKhCmbowLKu/2rLAgH7lrPdvGzpo35NxtGV9CdLZPskAShPnBT+xorPQQlyt Szd0tRsLRRn6/P1/QlzxwhOCBeS5bVAHkIDvpnM4zDdiO/OdyKXsNPkjNiI3kg40pG e04YRB1vTZt4eRVIeZza44+kUH+Q4xd4SRDc+rqE= Date: Mon, 19 Sep 2022 13:47:47 +0300 From: Laurent Pinchart To: Robert Foss Cc: andrzej.hajda@intel.com, narmstrong@baylibre.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, dianders@chromium.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Chris Morgan , devicetree@vger.kernel.org Subject: Re: [PATCH v2 2/2] Revert "drm/bridge: chrontel-ch7033: Add byteswap order setting" Message-ID: References: <20220919102009.150503-1-robert.foss@linaro.org> <20220919102009.150503-3-robert.foss@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220919102009.150503-3-robert.foss@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Hi Rob, Thank you for the patch. On Mon, Sep 19, 2022 at 12:20:09PM +0200, Robert Foss wrote: > Revert this patch since it depends on devicetree functionality that > previously has been reverted in the below commit. > > commit e798ba3374a1 ("Revert "dt-bindings: Add byteswap order to chrontel ch7033"") > > This reverts commit ce9564cfc9aea65e68eb343c599317633bc2321a. > > Fixes: 8c9c40ec8344 ("Revert "drm/bridge: ti-sn65dsi86: Implement bridge connector operations for DP"") I'm not sure this Fixes tag is meaningful here. Apart from that, Reviewed-by: Laurent Pinchart > Signed-off-by: Robert Foss > --- > drivers/gpu/drm/bridge/chrontel-ch7033.c | 15 ++------------- > 1 file changed, 2 insertions(+), 13 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/chrontel-ch7033.c b/drivers/gpu/drm/bridge/chrontel-ch7033.c > index c5719908ce2d..ba060277c3fd 100644 > --- a/drivers/gpu/drm/bridge/chrontel-ch7033.c > +++ b/drivers/gpu/drm/bridge/chrontel-ch7033.c > @@ -68,7 +68,6 @@ enum { > BYTE_SWAP_GBR = 3, > BYTE_SWAP_BRG = 4, > BYTE_SWAP_BGR = 5, > - BYTE_SWAP_MAX = 6, > }; > > /* Page 0, Register 0x19 */ > @@ -356,8 +355,6 @@ static void ch7033_bridge_mode_set(struct drm_bridge *bridge, > int hsynclen = mode->hsync_end - mode->hsync_start; > int vbporch = mode->vsync_start - mode->vdisplay; > int vsynclen = mode->vsync_end - mode->vsync_start; > - u8 byte_swap; > - int ret; > > /* > * Page 4 > @@ -401,16 +398,8 @@ static void ch7033_bridge_mode_set(struct drm_bridge *bridge, > regmap_write(priv->regmap, 0x15, vbporch); > regmap_write(priv->regmap, 0x16, vsynclen); > > - /* Input color swap. Byte order is optional and will default to > - * BYTE_SWAP_BGR to preserve backwards compatibility with existing > - * driver. > - */ > - ret = of_property_read_u8(priv->bridge.of_node, "chrontel,byteswap", > - &byte_swap); > - if (!ret && byte_swap < BYTE_SWAP_MAX) > - regmap_update_bits(priv->regmap, 0x18, SWAP, byte_swap); > - else > - regmap_update_bits(priv->regmap, 0x18, SWAP, BYTE_SWAP_BGR); > + /* Input color swap. */ > + regmap_update_bits(priv->regmap, 0x18, SWAP, BYTE_SWAP_BGR); > > /* Input clock and sync polarity. */ > regmap_update_bits(priv->regmap, 0x19, 0x1, mode->clock >> 16); -- Regards, Laurent Pinchart