From patchwork Thu Nov 10 18:38:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2467 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C1ABB3F039 for ; Thu, 10 Nov 2022 19:40:33 +0100 (CET) Received: by mail-pf1-f200.google.com with SMTP id f19-20020a056a001ad300b0056dd07cebfcsf1439081pfv.3 for ; Thu, 10 Nov 2022 10:40:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668105632; cv=pass; d=google.com; s=arc-20160816; b=mF1YCP59kApTxVujO0nLGP/cvhf1NJ4QDEp8AaA/kV162/qhMJezQ/ERwfkoZmTbLO PAzk3Zk9aRgME245koYFcOUN+xSgh7DL/F6fSv/6aLUKaBeBPL13ogGngp/FnE7m3gMX bq/ovlejpcF05xiX/+u+rkPdjk5HJKnVR+Y5ZtxlNLXlE5mBBg3Xvi4BHXiUz6GIy+4Q Y45MbFr2I52tbSAI7KvAj7tniJRWtTO2B5xmO3zbY846cw6WpPtKQRcGJqg+bexrw6S/ /Dwl5ys2Xw09oX/KIgOelr1cQ0KsSmula8AQCqNrkguJe++Bozy5IMNQpHOVaCKIC2yg YYQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=QankY38FS1DSWnqbP8oHia3Mfw09PPJk6I98hyxXWbY=; b=fcKnL+KYdioB/BYzMgs1w855ULuADZoRMKSnjIAxEM85LcM61g33kawSJPKqeyUiG2 JPngJxAKJwuyxCYFGP5w0cTW9fc5JL2jw/7EdYQz5cQNS6uYsAn+v6Tj18+mg23Gyakk W6PPlzHXyAjX7E/AqgalUKLPcRDidcu7wwnEQC25SgBDrEt4MhoOVpUvohQoCNxQsciS El7Untyd6odAPPMvDk2O/XPjHy8/QC3551bFZRC0OlGX87RB9wwpfqwCHQqDdR8+8YIx JHoEzltU3aDYptWg/cV5LtOQlv4AaIo93+GXNMddK2JNjyZ1AN2t4tn0OGr2tLZMJiJi tMIQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=goQ7p8zP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=QankY38FS1DSWnqbP8oHia3Mfw09PPJk6I98hyxXWbY=; b=OhQJLa3zL3SXiNrr6SYs6EBTqseTajJ58XX0/1YgMaeKtE8luCmRqOQuMSFPY2J3Wb IgHeOeB6gkLdrTjiOKGV90RgwCiSAlkYTmMoV1hEKDEJjxuci1gxLTx/rf4bfnOc2epD t2S8Npq45d0+9ZjGSjeKHY4XJpH7gbvvknaKQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QankY38FS1DSWnqbP8oHia3Mfw09PPJk6I98hyxXWbY=; b=baAfCF9ySrMzfmF8fdAUzm9O3juZFpHB4Vyj0LFy3FQTkD8rNRuWtKUIkOcnDVtrVG 1n5SkcsCOmg8opHD4nPOVjBMb/Ig5UHaiHUaEBcQ73BURIrkq3kS7lFsdZoyfWRG7Sti M6bujyXbY453WbYMHcxE9VPmsa1rR0D8slp8LKG9+CIGTJX19dPurmJaY8hK/Q9R11/F 28+/sqGtoS5cgTob1lt9g0X8AtcHTLJpcMk/95kAmjVTMa9MK0TDOOpV7bmAOssyThGm Flh+qTQRF0e0ldS0PoKQQLhv/bOS54vriUC/DZVeaaiqTBXIN1wlrixOgM3PFNyJWqUr 5Tvg== X-Gm-Message-State: ACrzQf09bDP0CCPLRl9lF6fUH8E8hLFHTm8INkc27l6Ujtm4DbShmN3g yV+W0UWEWvwCBsSYgGGVsQ+sPV0i X-Google-Smtp-Source: AMsMyM6yJu41nigNEbjjafa56G1zPNdKHoS1GBPeU2BRKg7C49MuxGDqHNIj+g8gY+3J8vVdQDZvXg== X-Received: by 2002:a63:4a1e:0:b0:43c:6412:994f with SMTP id x30-20020a634a1e000000b0043c6412994fmr2946914pga.421.1668105632338; Thu, 10 Nov 2022 10:40:32 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ab06:b0:187:a99:41ab with SMTP id ik6-20020a170902ab0600b001870a9941abls1690667plb.0.-pod-prod-gmail; Thu, 10 Nov 2022 10:40:31 -0800 (PST) X-Received: by 2002:a17:902:db04:b0:186:8518:6c79 with SMTP id m4-20020a170902db0400b0018685186c79mr1695854plx.146.1668105631512; Thu, 10 Nov 2022 10:40:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668105631; cv=none; d=google.com; s=arc-20160816; b=WwMlxHjh+mNLr97wTw7jkcgCTvCrOHb8w2prms06WAb5ZwMjZLukbzKFMeJJqoiLWm 0JGsUEnBc8wrIZwVUwzHcHaG+fM+Sggf6TXO1tekZxRoxUkEfPtrauY3/iHR0UEVtEdU 4lyVr5yzqbWrXM1AulaheWhGKI56bCjPt4hh+QYpu66gkRfvy3KByPXYopIQwt4yVwUm GVf5caQq4XJEBhvPkyEebv/5Wf0nyFz0syHgbWlTQZRckR8HZqS4MXUp6EU/ZVxQhvXi bFYtZfYKuOiOAG5EQ+HMpcii8MMpPaZGfVQXGzsw3U0e2J/3M6kIF5leWP3v/zH6hD/L aiOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=dWQPw8kMGq61u2i3C2KyyYluiC9el7Rd/PLrQ+mO7W0=; b=HfWXZ/etB+L2DQqx1jZ04vruLV7Dwimq0nAjBGfZ8+BJc06ymsrTQG546ZsQdG+gBt ajJezbUSiE2loDf2lzJF3v8vVEk5KpC+83+KpbFyKOGGZAQy/cdLPOWFnXHc7xuZSWeN wbB+wDLvfOVMeavy5LKXiLBwiO0wUnXhQ73hmA+eM0bcWLUVciGanYWFH6i/YgeAEYEP 2SJR1alet7fo/oyGV/2rIck6cbgVH78l3ztx1lSJu5R0Ygyn/vSPEyGSIbfT5yHOYVDL sShVy40uSLKqxXGdJznYQ4H9RjJZMMsJeuS9BUgRww8APUemkPIeWDAqtIJXmnIdX5gd OTAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=goQ7p8zP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id m7-20020a170902768700b00186a1a56f29sor8663pll.135.2022.11.10.10.40.31 for (Google Transport Security); Thu, 10 Nov 2022 10:40:31 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:902:c3d1:b0:188:758f:f473 with SMTP id j17-20020a170902c3d100b00188758ff473mr25672647plj.113.1668105631202; Thu, 10 Nov 2022 10:40:31 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a809:b5a4:486a:f07:f67e]) by smtp.gmail.com with ESMTPSA id c2-20020a170903234200b001869efb722csm11635627plh.215.2022.11.10.10.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 10:40:29 -0800 (PST) From: Jagan Teki To: Andrzej Hajda , Inki Dae , Marek Szyprowski , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Frieder Schrempf , Fancy Fang , Tim Harvey , Michael Nazzareno Trimarchi , Adam Ford , Neil Armstrong , Robert Foss , Laurent Pinchart , Tommaso Merciai , Marek Vasut Cc: Matteo Lisi , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , linux-amarula , Jagan Teki Subject: [PATCH v8 02/14] drm: exynos: dsi: Properly name HSA/HBP/HFP/HSE bits Date: Fri, 11 Nov 2022 00:08:41 +0530 Message-Id: <20221110183853.3678209-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221110183853.3678209-1-jagan@amarulasolutions.com> References: <20221110183853.3678209-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=goQ7p8zP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , HSA/HBP/HFP/HSE mode bits in Exynos DSI host specify a naming conversion as 'disable mode bit' due to its bit definition, 0 = Enable and 1 = Disable. Fix the naming convention of the mode bits. Signed-off-by: Jagan Teki --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index b5305b145ddb..fce7f0a7e4ee 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -75,10 +75,10 @@ #define DSIM_MAIN_PIX_FORMAT_RGB565 (0x4 << 12) #define DSIM_SUB_VC (((x) & 0x3) << 16) #define DSIM_MAIN_VC (((x) & 0x3) << 18) -#define DSIM_HSA_MODE (1 << 20) -#define DSIM_HBP_MODE (1 << 21) -#define DSIM_HFP_MODE (1 << 22) -#define DSIM_HSE_MODE (1 << 23) +#define DSIM_HSA_DISABLE (1 << 20) +#define DSIM_HBP_DISABLE (1 << 21) +#define DSIM_HFP_DISABLE (1 << 22) +#define DSIM_HSE_DISABLE (1 << 23) #define DSIM_AUTO_MODE (1 << 24) #define DSIM_VIDEO_MODE (1 << 25) #define DSIM_BURST_MODE (1 << 26) @@ -804,13 +804,13 @@ static int exynos_dsi_init_link(struct exynos_dsi *dsi) if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_AUTO_VERT) reg |= DSIM_AUTO_MODE; if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_HSE) - reg |= DSIM_HSE_MODE; + reg |= DSIM_HSE_DISABLE; if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_NO_HFP) - reg |= DSIM_HFP_MODE; + reg |= DSIM_HFP_DISABLE; if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_NO_HBP) - reg |= DSIM_HBP_MODE; + reg |= DSIM_HBP_DISABLE; if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_NO_HSA) - reg |= DSIM_HSA_MODE; + reg |= DSIM_HSA_DISABLE; } if (dsi->mode_flags & MIPI_DSI_MODE_NO_EOT_PACKET)