Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2340467rwb; Mon, 19 Sep 2022 03:46:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7HPfGvKN+dEq3NEEukGXoNQOnnb9o1BKSfZ7BbJK5pBnnL+by7yJwpmgVLQWJ86x4Eb7/9 X-Received: by 2002:a17:906:2245:b0:715:7c81:e39d with SMTP id 5-20020a170906224500b007157c81e39dmr12852501ejr.262.1663584370582; Mon, 19 Sep 2022 03:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663584370; cv=none; d=google.com; s=arc-20160816; b=HXPS5Z59/+UxjPIm7yknJBCS+JNMuXs1nj5NiFzCn2Z0Xu2fGXU4KQJ32XSuTpxQDF se/nISKaOv+8OOt688vD84ZYPPd/BRc299lc9w5tPZ/Pnq9M6RJ28WZpIsfrlQRkZ7r9 2Jt0OH7KB/w41RLZlYslKK+I1nQZ0NwrEe0XcG2tHKh/fpKltiGBPgqJb4O4yWfGAtx/ NpaSWhLa1dY0DAXmlMHEbEV2d7IONm5M9fDmnbeJNpkvac3j0WcKUDv/l0H4fyddT6jg UtJUEPHHyoGNPMvCLTaEOQpl6eHiHXrLalH/wQ21IKXo+/ch/FMC/Qs2CGeCUMjnpIil 0IMA== 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:date:subject:to:from :dkim-signature; bh=FLNJe0JUSRM3gBcqN/9WtyocKRp8artYXxirlKrkCMM=; b=bt7DEFunAQcHJg8+pyXy+1IX9APwF73+xyUZnupxtYF6348v+R0Eo5vIIhXsThXSMc 4M5PAhrSXeo1QOvp5InpBwbxZ7Ku1z8QZ5TlmM7iHaJDQ8H/ZYSzidnqN2AEkP3ULVZU 1mHVfJB0bedq/pSuguWzkwsweIWFbQ/mjl8Bo4b5mqmNzvQ40mWKUiUy08k5Smwgp96j zqVYfhDeJVZpT67/uZblroV8nDndS8/o8Osq8OwiGjCUVZqOp25M2m4gAcIruPDKE5zc a5qwKiVYf1KwWfyTITzCkAaPA7C2GKHqq1CCGQD3BYH+IrsWoZAsgr3Pgu6U3brlcyzb 4S/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UbSLEIHw; 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 g30-20020a056402321e00b004510f7b7dadsi9295910eda.436.2022.09.19.03.45.44; Mon, 19 Sep 2022 03:46:10 -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=UbSLEIHw; 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 S230009AbiISKfs (ORCPT + 99 others); Mon, 19 Sep 2022 06:35:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230338AbiISKdq (ORCPT ); Mon, 19 Sep 2022 06:33:46 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8306E2AC78 for ; Mon, 19 Sep 2022 03:20:40 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id t7so46695215wrm.10 for ; Mon, 19 Sep 2022 03:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date; bh=FLNJe0JUSRM3gBcqN/9WtyocKRp8artYXxirlKrkCMM=; b=UbSLEIHwUbZOFhcPz39rZrpiWK0db+qvUJMVyxwn8ti/Q1PIFhXL4y4K7BLPnqw7cU lLS4OMMOAt3b81mbV4TdHk+LFmBUJG9V+CMnJhYs5Xoq08cYCEex6hcKPu1o7YfSM272 /wXRt2yvu3uRUYuWIA6ZRb+sN1Zpsr2u3mAgKlYRN0LOR8qt27sxz1w3+IjxG3ltCOLW 72t/VglltSpmlxCB/GMjTytpeX5+YoITmwchFd3GbfK5eYQxqUEWyWRNGY0ObMPKz7vy CvJDN1kXPnrSOc9cRvVERgN5M5B16lBjeORGNvFa90o5t9D3/uPFhFaMwd/WMs47VVbV a3uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date; bh=FLNJe0JUSRM3gBcqN/9WtyocKRp8artYXxirlKrkCMM=; b=MupqxiIdGQIQk9gFJACqpM8TbiL38K5BK7swo1vc0LjMb17oEBkVSoerZrwSv0wt9L EosJ2ZvP+wn6dnjSUDSiQHIl3/964A4mBa/+s/PuDzZ9frIL6YtLza+wiHQpAFPkGgD5 H971wZqcmOPiAjDbnVZmDqdwss1CpEDo4ZppP387qv2z7TZfhdW4mstWnYzzbsmuxmtL eNc2w2OlPLZ+JrHgY6Q9UV63MLHAOs+OC4LSuS7Wltp6qS5CM4/gg+xGM6/QR/rpZlRd qDxk7DD/uSns1SizMQVroiv4aSuH9gUJQiXAjfTgZ68L2zXYEjUD6t4gZdw9GzkEkri1 UYlg== X-Gm-Message-State: ACrzQf0F9x9yb8r6VaCK6s+ehMidcqKF1zbva3luKBxLU5e25p311eDr tCkQ7yh6T3BoOoFq2EoC2d9/Ng== X-Received: by 2002:adf:e806:0:b0:22a:f5c6:6954 with SMTP id o6-20020adfe806000000b0022af5c66954mr5072807wrm.539.1663582825984; Mon, 19 Sep 2022 03:20:25 -0700 (PDT) Received: from prec5560.. (freifunk-gw.bsa1-cpe1.syseleven.net. [176.74.57.43]) by smtp.gmail.com with ESMTPSA id m2-20020a7bce02000000b003b483000583sm12784245wmc.48.2022.09.19.03.20.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 03:20:25 -0700 (PDT) From: Robert Foss To: andrzej.hajda@intel.com, narmstrong@baylibre.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.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: [PATCH v2 2/2] Revert "drm/bridge: chrontel-ch7033: Add byteswap order setting" Date: Mon, 19 Sep 2022 12:20:09 +0200 Message-Id: <20220919102009.150503-3-robert.foss@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220919102009.150503-1-robert.foss@linaro.org> References: <20220919102009.150503-1-robert.foss@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=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 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"") 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); -- 2.34.1