Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1457382rwr; Wed, 26 Apr 2023 15:39:32 -0700 (PDT) X-Google-Smtp-Source: AKy350apNNNB0YOzv5M7Y7pwee30QWDNjpdw4Dupi84oQBCrWIkqSuvejJgnoRptX8b3sA8AAKoJ X-Received: by 2002:a05:6a00:2396:b0:63f:1adb:bf61 with SMTP id f22-20020a056a00239600b0063f1adbbf61mr26866679pfc.18.1682548772726; Wed, 26 Apr 2023 15:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682548772; cv=none; d=google.com; s=arc-20160816; b=jffZysFNxa/VXdUwmhiwDV4eTPgmsLBKM7sePpB38jHkFGA19uFCCAFnC5Bzf5A+m5 kEyyMOOUMkvJZnZhi5EGAPPckqWuB4ueVw88Mlmno8fNvOuOSs7b1qOZvXPuA1DQOByT J1F3QycwH42fdeHdegsztaGEoJj5umk5qXT+eSyaaONQgTm+iDS7aHRx3IHoTZcD6LRm lgqs61CU+na5jS1C/6xWX7hrqxDL4mkkY6KLA/+7iHgpc6vo59AuqsEpvKYFfwFXFCVK yDLiPX/2VF0jH0K3/XcByrGOy4iRkYjIIJBcJlTWdF7y//zxnS+TZDYgzwT8MnOMnlje afog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=qAuFHf+7v4WwOQkgGn8SzIRpsGpc2ZV+3Dw/HxGWa3k=; b=UH16PqNvEFkU+XXiQfUKsvW/AlB6qMd/h894b0cS3KozUzQahhgbu742DVXD2vzu/T 677nGU+qTJ8Swn5Hr4OeTyHWVCSRKlkYVR4LqOAcXucrB/xZBcu63eLQ4EAeR7YYbp/4 lQvNf7mXp0wz2H0NV2jY0eFwtybxoH4k/dom23qDTIuMKTYrDxxJZ91uHRPjVUuqz+Uq Rr/OPqbYvpuXPNEC0QkcZcGqNLCFPFNvz4Kvjn668dE9hJop8lFCWIcbLUoyChNEWnOa WHYPoDVJNuVlP8u5Ov+Xj+hH9rWk7wdmWNz64SbZbuR6cxOEZzaXHhBDC/WDuzX+MSYU +h8w== ARC-Authentication-Results: i=1; mx.google.com; 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 c14-20020a655a8e000000b0051b72db6281si17129929pgt.456.2023.04.26.15.39.13; Wed, 26 Apr 2023 15:39:32 -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; 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 S239435AbjDZWh7 (ORCPT + 99 others); Wed, 26 Apr 2023 18:37:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234959AbjDZWh2 (ORCPT ); Wed, 26 Apr 2023 18:37:28 -0400 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [IPv6:2001:4b7a:2000:18::170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50C3D3C2B; Wed, 26 Apr 2023 15:37:26 -0700 (PDT) Received: from Marijn-Arch-PC.localdomain (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 3EE5020222; Thu, 27 Apr 2023 00:37:24 +0200 (CEST) From: Marijn Suijten Date: Thu, 27 Apr 2023 00:37:24 +0200 Subject: [PATCH v4 10/22] drm/msm/dpu: Sort INTF registers numerically MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230411-dpu-intf-te-v4-10-27ce1a5ab5c6@somainline.org> References: <20230411-dpu-intf-te-v4-0-27ce1a5ab5c6@somainline.org> In-Reply-To: <20230411-dpu-intf-te-v4-0-27ce1a5ab5c6@somainline.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Adam Skladowski , Loic Poulain , Bjorn Andersson , Kuogee Hsieh , Robert Foss , Vinod Koul , Neil Armstrong Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jordan Crouse , Jessica Zhang , Marijn Suijten X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 A bunch of registers were appended at the end in e.g. commit 91143873a05d ("drm/msm/dpu: Add MISR register support for interface") rather than being inserted in a place that maintains numerical sorting: restore said numerical sorting. Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c index 1d22d7dc99b86..1491568f86fcb 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c @@ -36,6 +36,10 @@ #define INTF_CONFIG2 0x060 #define INTF_DISPLAY_DATA_HCTL 0x064 #define INTF_ACTIVE_DATA_HCTL 0x068 + +#define INTF_DSI_CMD_MODE_TRIGGER_EN 0x084 +#define INTF_PANEL_FORMAT 0x090 + #define INTF_FRAME_LINE_COUNT_EN 0x0A8 #define INTF_FRAME_COUNT 0x0AC #define INTF_LINE_COUNT 0x0B0 @@ -44,8 +48,6 @@ #define INTF_DEFLICKER_STRNG_COEFF 0x0F4 #define INTF_DEFLICKER_WEAK_COEFF 0x0F8 -#define INTF_DSI_CMD_MODE_TRIGGER_EN 0x084 -#define INTF_PANEL_FORMAT 0x090 #define INTF_TPG_ENABLE 0x100 #define INTF_TPG_MAIN_CONTROL 0x104 #define INTF_TPG_VIDEO_CONFIG 0x108 @@ -57,6 +59,9 @@ #define INTF_PROG_FETCH_START 0x170 #define INTF_PROG_ROT_START 0x174 +#define INTF_MISR_CTRL 0x180 +#define INTF_MISR_SIGNATURE 0x184 + #define INTF_MUX 0x25C #define INTF_STATUS 0x26C @@ -66,9 +71,6 @@ #define INTF_CFG2_DATABUS_WIDEN BIT(0) #define INTF_CFG2_DATA_HCTL_EN BIT(4) -#define INTF_MISR_CTRL 0x180 -#define INTF_MISR_SIGNATURE 0x184 - static const struct dpu_intf_cfg *_intf_offset(enum dpu_intf intf, const struct dpu_mdss_cfg *m, void __iomem *addr, -- 2.40.1