From nobody Fri Dec 19 08:06:31 2025 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 507C419D07C for ; Sun, 9 Feb 2025 05:07:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739077640; cv=none; b=VYL2qLPEdKc09bsLRoZGO3g6ESUFSs7dKTsccNU2daOIcAURLbnlWZvI/SRHbqKgISOYAw42nC6krfBEt0gQq3SiN2/TrMVV61vLl4Cp3dtvgu1Qf1OL+A0WdJUV/xhTfqv9rK4t6saRnn21DJO2kF23FmDTF+bG+GS0TjYDn3Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739077640; c=relaxed/simple; bh=7KB7IcHxi0VqX9I5ufq901Xoeq2I7R2imjBgnmx5DoY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OBK3v7YJn6XSwGocgvQLq2iWgVucnZ/YPwkcg2WytHEg3VCSOWxpUChOsrO67ZI7qgMjsawxxv4bPEOWRLNeFgWq3v9oUsBuH/z4XLcH3MuxWQlvzbTrCCYKi0Z82xIHs19x2QNULnNKsu5f8tzJq1vI9mQnVk0yjul0Zk1Yb2g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FThBDY1U; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FThBDY1U" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-545097ff67cso170973e87.2 for ; Sat, 08 Feb 2025 21:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739077634; x=1739682434; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hlPHSmm8yEMkPCpLMXSlS5GXe/d+EX9J4C1uXL4gVw4=; b=FThBDY1UlKtblGbTSXV9L2F63W7zW2GJ4SilXFOZp6rmJj/D9VBpA8mP2f6aF37XsH t9zvGG4ADp+7v62hTkGple1B6ipxeHrR+hhOp8RQDcTFZZ2rl7mEYuOKEoADOxWG9V0L XfyvM0o0t1wD8E8bQF1Jxrpct8Gke/T15VmEYk+uXwX+xdAXoww7py8zObuB9Bsa6F69 G4dYFAdBSJpCwgZQVSs+X6Y85MFGSrLyTd1Z5fENB/SmTamNdjLzjeO6JqZ4FSFTIYRq /t0DYQ+OUsdiPHOGOnx/aOnnNYRAPHUO7MF4qSOlJEIyEhrL9dlYTlkHjHfrC1XDPZvn Hifg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739077634; x=1739682434; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hlPHSmm8yEMkPCpLMXSlS5GXe/d+EX9J4C1uXL4gVw4=; b=rYU6e4zpMpfOWUsnH+owgA1LnhOGIul9uF8tZT1lbndI3/5Kthv13XwN/YpPSwLdUB HWXwUZURJmLKbUp/bZbYI9yg3o/JTgZ6+0utA/IVTL5EtgY34jWhzTXDHOxf4o3qkXmy H4gzZPz3JvaMw4FAk7N0IPXJFfP8UgPY+I3+qfpTMAN8tkiJLYS9Q3nU+xshubCB/z9/ DAEoIWYt5aEG8p3XjkDstvldFAMwfTAxBzxxMsj+X4tFPyHcLnhtyRke3Pq+oRud1SPl 0Ro7RYXHUEAFalH6JJyDx5or6eKwu7C8U3zHbvw/eX+A9vZIgldvWqBZoTAph/BydLss WzfA== X-Forwarded-Encrypted: i=1; AJvYcCUTf1Da1TaTLR/9NefbR9TrvTZqTPRuvIfFM4GIXSoohx986Jr94RI923E9VZKQ0U4/ys1shdljd/Qe9uw=@vger.kernel.org X-Gm-Message-State: AOJu0YxA957HqOOGs3nd4zNN1NfBZLkmfv/CqMJKOUi9FvACwAOSbqCL puYv1qaLlEcGhUZp33WWP1ZgHRtdCFxnoddQgXnfb51JTdynCG5qa33nngJkOQA= X-Gm-Gg: ASbGncvqZa4FLj/mJLELHBwLvc/jNt0b5WCNWjxf6z1xBTuKzLsuh1WfRv3JXLji0OB ENahy9zb0jlolaR4Ql7Kv5Pe5q8wxRACr5Yzmh4w69iS8NOqmPC9U8IJY8WnOV+3m9ak6dFvjCT vJ1rmjRzMgv6m6P92dlW7Lz2ubQ6fcGU/W1rS64taMEPUhQjunOfEXk+LP5003DH6k7px43lOPz oEfSp1oVlOnE0mjXlXcskQKmGOauTBZyTrJWL2lPlz5JUnpdZOnO06RwjubjkAexCDwSjp4Osyo DpcRn4lSCd9//YZ2J1emOxQ= X-Google-Smtp-Source: AGHT+IEd6dicvlKdQV2rRsUxtxE28CChSKCpQgVen389uSlji8/jD6oj/iczUy7fpLXBwrzv/IwjKQ== X-Received: by 2002:a05:6512:2399:b0:544:ee5:87b0 with SMTP id 2adb3069b0e04-54414a96604mr3354167e87.3.1739077634302; Sat, 08 Feb 2025 21:07:14 -0800 (PST) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54506ef1733sm245576e87.1.2025.02.08.21.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Feb 2025 21:07:13 -0800 (PST) From: Dmitry Baryshkov Date: Sun, 09 Feb 2025 07:04:56 +0200 Subject: [PATCH v4 12/16] drm/msm/hdmi: expand the HDMI_CFG macro Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250209-fd-hdmi-hpd-v4-12-6224568ed87f@linaro.org> References: <20250209-fd-hdmi-hpd-v4-0-6224568ed87f@linaro.org> In-Reply-To: <20250209-fd-hdmi-hpd-v4-0-6224568ed87f@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Simona Vetter Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jessica Zhang X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2467; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=7KB7IcHxi0VqX9I5ufq901Xoeq2I7R2imjBgnmx5DoY=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBnqDfjFlNku8IROPqumZ4E4rIS6xVD6X6WWajZV tgiLp+pqdCJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZ6g34wAKCRCLPIo+Aiko 1XtACACmQHPvaloVCRw6WqW1+yRfCCOJWikCAcXTkM4JJ5bJUFfsy1jAtNccjkUo3nJxp/p+GNL Y9hsOLA5Pc2IUQ7X+8EaioPypvW6QelbfocUaIB7nlut86mqKsx7Bk8mB+xRWBgCyUTiUH+i9Gs QzYz9wWCSdM+ZyY6WFc+RD6QNPD+NHQ+eYtbfWr7BLYyH4yZfnYGi6tpnj76ocxpFo1AVHEYPhd B416qy+4Kmw0nFo4RtXec2GOy8UlCuL3msGn0w4yUxM4cVWTN1G+WIbBlql5toxz5913vWTjOMM 2EEO4x9dTVVWOZShs1WwynUZ5ECsFQruxJivyWRpz/iJo2dn X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Expand the HDMI_CFG() macro in HDMI config description. It has no added value other than hiding some boilerplate declarations. Reviewed-by: Jessica Zhang Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/hdmi/hdmi.c | 16 ++++++++-------- drivers/gpu/drm/msm/hdmi/hdmi.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm/msm/hdmi/hdm= i.c index 8e6e3e6a04bd2d86bcbd23c110f3533f56c17887..3d10fe6f8545198365a047b2f56= 52081703101aa 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi.c @@ -221,24 +221,24 @@ int msm_hdmi_modeset_init(struct hdmi *hdmi, * The hdmi device: */ =20 -#define HDMI_CFG(item, entry) \ - .item ## _names =3D item ##_names_ ## entry, \ - .item ## _cnt =3D ARRAY_SIZE(item ## _names_ ## entry) - static const char * const pwr_reg_names_8960[] =3D {"core-vdda"}; static const char * const pwr_clk_names_8960[] =3D {"core", "master_iface"= , "slave_iface"}; =20 static const struct hdmi_platform_config hdmi_tx_8960_config =3D { - HDMI_CFG(pwr_reg, 8960), - HDMI_CFG(pwr_clk, 8960), + .pwr_reg_names =3D pwr_reg_names_8960, + .pwr_reg_cnt =3D ARRAY_SIZE(pwr_reg_names_8960), + .pwr_clk_names =3D pwr_clk_names_8960, + .pwr_clk_cnt =3D ARRAY_SIZE(pwr_clk_names_8960), }; =20 static const char * const pwr_reg_names_8x74[] =3D {"core-vdda", "core-vcc= "}; static const char * const pwr_clk_names_8x74[] =3D {"iface", "core", "mdp_= core", "alt_iface"}; =20 static const struct hdmi_platform_config hdmi_tx_8974_config =3D { - HDMI_CFG(pwr_reg, 8x74), - HDMI_CFG(pwr_clk, 8x74), + .pwr_reg_names =3D pwr_reg_names_8x74, + .pwr_reg_cnt =3D ARRAY_SIZE(pwr_reg_names_8x74), + .pwr_clk_names =3D pwr_clk_names_8x74, + .pwr_clk_cnt =3D ARRAY_SIZE(pwr_clk_names_8x74), }; =20 static int msm_hdmi_bind(struct device *dev, struct device *master, void *= data) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.h b/drivers/gpu/drm/msm/hdmi/hdm= i.h index a28437beb1574553c1dc00a0c693b390389353e0..fb64652162b6c5e6e2fe3357b89= c40e2a28aa47e 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi.h +++ b/drivers/gpu/drm/msm/hdmi/hdmi.h @@ -86,7 +86,7 @@ struct hdmi_platform_config { const char * const *pwr_reg_names; int pwr_reg_cnt; =20 - /* clks that need to be on for hpd: */ + /* clks that need to be on: */ const char * const *pwr_clk_names; int pwr_clk_cnt; }; --=20 2.39.5