Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2584070rwb; Mon, 19 Sep 2022 07:11:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6h36D+ynMy7P9jmX1Cr/YONaar6mv/zLLH7o7WbmEUCvIMWkKSGiLpchQMlCPYF5AGvuBB X-Received: by 2002:a17:906:8a6f:b0:780:96b4:d19e with SMTP id hy15-20020a1709068a6f00b0078096b4d19emr12082945ejc.624.1663596662681; Mon, 19 Sep 2022 07:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663596662; cv=none; d=google.com; s=arc-20160816; b=jynIwKWBleHxb1ipx+8NtZOCf49k3i44K62wVvzRdSXeVNLLlwxsZVGie+xrk5INkM Hzd50kPvN6P0MhiWAw2inLD/CcP8btg0Xm5JBT9wz1ZJs5KsbM3u41I+j9zH59Aw7QBt BTi/isKVeX3qP5B8PzZ15B4ogDak1OQQl0WlIgg++MlczI2F0HATp4zLXacpqO03gTkc TkH1s3ZnuDJYS97K8pl9pQfQz1f+/rZtxWJN6s/02LoFI3p1b3fHQ6j24jwjYt2V7s8y YZtLlkbntW4O6l5xB3T1pgOSIkY4vgJ2V6vWnw64+Aeh54Bk+d+DElS93IUrxerbq09g QBIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gzjER0yDfgC7AM3XY5AmZTUcIYvTw+ZPBU8Ab6kCF1A=; b=Kuhv4N6i81tB7E5eWVn/kuHu9Xc/DaeJdMnwxhP7rjP1pSjdlZcyEfLavigP/4ziWS hXi/BD0kMh4a0l7eF31vXV29HuECFze5GHGI/SRsWoG6ltuAVV/5iDG13EDJt9GE5VjR 2ogzyisK/q5i7GC6Dwenx1EbeF/XfCLCJq22N8cF/7i3ObPI2Vl64+Ez6boJcjmb/z5n ugug7rEKW6NGydUAAQXKrroPGAdrCNsQr6DB+a1aH8OjUOAOLqqR17USgv2oEw7jdD7G mJcz5sdQsVg7Zm4VsPZU5l5XQegGK8CmIhKVSN0KNwjw28f66HAVOBAb/hjXeYahLm4P HnoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oCvGpuKa; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16-20020a508710000000b00447a70e89e2si9563144edb.195.2022.09.19.07.10.37; Mon, 19 Sep 2022 07:11:02 -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=@linaro.org header.s=google header.b=oCvGpuKa; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230328AbiISNS6 (ORCPT + 99 others); Mon, 19 Sep 2022 09:18:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230391AbiISNSt (ORCPT ); Mon, 19 Sep 2022 09:18:49 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77E9627FF4 for ; Mon, 19 Sep 2022 06:18:47 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id u9so64465735ejy.5 for ; Mon, 19 Sep 2022 06:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=gzjER0yDfgC7AM3XY5AmZTUcIYvTw+ZPBU8Ab6kCF1A=; b=oCvGpuKao+NdPHOlaIZDp2egAgLgEPw3IteIyQ/QvfEJdQUKlHPnCEr7GlPg6HpfMP dVIYPSycLDoCGucAf+dgMukqSqMyU3sljxWQZ1C5O5yfErbYxOR/x/hLQhMP1mEdw4ZP cjQShEMYMP250cAvjyqZ3M7U0yaSNoDJxB29kW3qQNCnN9wZ6HHS9CpdNaD1iAy1Amm6 gVn2aO/yPFwPoa6zCOyAX5D7hY17WUsONgau+7fxInzn7dXZ/1MMZnIFhfYkr+cyrua5 /goX39eWj/ydD63FYnlELFczwPrC7UW1fTB8T8fcSpjbmA2N/YhqWfH3jlgQhzHeyDdn kgyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=gzjER0yDfgC7AM3XY5AmZTUcIYvTw+ZPBU8Ab6kCF1A=; b=IIyXV5rXYj5Af90kLcbI8BkyPBid/7LHTg9ZM458y+RZZPQTdokdgY6D//iSQ6io6M F0FUeSKw88WNyRqytD3NUD70Y8EYD0SxGvcUuQ6NemMrUd5OdtvEzi7rGMMa1323r/et UQecEoQ/Ls+SlGsETCqwbvUVdMleH7/F7ezLUYvad+WrPzsKlCJuHtgOJHGX8j2RxB4Y EuW0QYoKV8FXLffVzKUbtUhWaHXLc/MiwM5JmVfsQc56V3t+zqzGl//CfAA47TOi78H5 s8X4SMlOJi+x2BvJYVccAsARjW2pZmQTJvwNuwcbnfFkgayKVh1kQ+t0SJb7x4/+I/hT aiow== X-Gm-Message-State: ACrzQf1OuGBdz1nTlgwT9zQgCdrtJVGP3mKRZxr1Smmfz9LcvfG+9Y7l HfNJyNEvLcxFTyEj7C3Vpuvq8626gN++yNmmOiOTDA== X-Received: by 2002:a17:906:9beb:b0:773:db0f:d53a with SMTP id de43-20020a1709069beb00b00773db0fd53amr13173696ejc.580.1663593525988; Mon, 19 Sep 2022 06:18:45 -0700 (PDT) MIME-Version: 1.0 References: <20220919102009.150503-1-robert.foss@linaro.org> <20220919102009.150503-3-robert.foss@linaro.org> In-Reply-To: From: Robert Foss Date: Mon, 19 Sep 2022 15:18:35 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] Revert "drm/bridge: chrontel-ch7033: Add byteswap order setting" To: Laurent Pinchart 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On Mon, 19 Sept 2022 at 12:48, Laurent Pinchart wrote: > > 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, Ack. > > 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