From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Cc: "Y.C. Chen" <yc_chen@aspeedtech.com>,
"Heiko Stübner" <heiko@sntech.de>,
"Sam Ravnborg" <sam@ravnborg.org>,
"Neil Armstrong" <narmstrong@baylibre.com>,
"David Airlie" <airlied@linux.ie>,
dri-devel@lists.freedesktop.org,
"Douglas Anderson" <dianders@chromium.org>,
"Andrzej Hajda" <a.hajda@samsung.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Benjamin Gaignard" <benjamin.gaignard@linaro.org>,
kernel@collabora.com, "Fabio Estevam" <festevam@gmail.com>,
"David (ChunMing) Zhou" <David1.Zhou@amd.com>,
linux-samsung-soc@vger.kernel.org,
"Joonyoung Shim" <jy0922.shim@samsung.com>,
"Jyri Sarha" <jsarha@ti.com>,
"Vincent Abriou" <vincent.abriou@st.com>,
"Krzysztof Kozlowski" <krzk@kernel.org>,
"Jonathan Hunter" <jonathanh@nvidia.com>,
linux-rockchip@lists.infradead.org,
"Chen-Yu Tsai" <wens@csie.org>, "Kukjin Kim" <kgene@kernel.org>,
"NXP Linux Team" <linux-imx@nxp.com>,
"CK Hu" <ck.hu@mediatek.com>
Subject: Re: [PATCH v6 00/24] Associate ddc adapters with connectors
Date: Sun, 4 Aug 2019 15:33:40 +0300 [thread overview]
Message-ID: <20190804123340.GD4984@pendragon.ideasonboard.com> (raw)
In-Reply-To: <cover.1564161140.git.andrzej.p@collabora.com>
Hi Andrzej,
On Fri, Jul 26, 2019 at 07:22:54PM +0200, Andrzej Pietrasiewicz wrote:
> It is difficult for a user to know which of the i2c adapters is for which
> drm connector. This series addresses this problem.
>
> The idea is to have a symbolic link in connector's sysfs directory, e.g.:
>
> ls -l /sys/class/drm/card0-HDMI-A-1/ddc
> lrwxrwxrwx 1 root root 0 Jun 24 10:42 /sys/class/drm/card0-HDMI-A-1/ddc \
> -> ../../../../soc/13880000.i2c/i2c-2
>
> The user then knows that their card0-HDMI-A-1 uses i2c-2 and can e.g. run
> ddcutil:
>
> ddcutil -b 2 getvcp 0x10
> VCP code 0x10 (Brightness): current value = 90, max value = 100
>
> The first patch in the series adds struct i2c_adapter pointer to struct
> drm_connector. If the field is used by a particular driver, then an
> appropriate symbolic link is created by the generic code, which is also added
> by this patch.
>
> Patch 2 adds a new variant of drm_connector_init(), see the changelog
> below.
>
> Patches 3..24 are examples of how to convert a driver to this new scheme.
>
> v1..v2:
>
> - used fixed name "ddc" for the symbolic link in order to make it easy for
> userspace to find the i2c adapter
>
> v2..v3:
>
> - converted as many drivers as possible.
>
> v3..v4:
>
> - added Reviewed-by for patch 01/23
> - moved "ddc" field assignment to before drm_connector_init() is called
> in msm, vc4, sti, mgag200, ast, amdgpu, radeon
> - simplified the code in amdgpu and radeon at the expense of some lines
> exceeding 80 characters as per Alex Deucher's suggestion
> - added i915
>
> v4..v5:
>
> - changed "include <linux/i2c.h>" to "struct i2c_adapter;"
> in drm_connector.h, consequently, added "include <linux/i2c.h>"
> in drm_sysfs.c.
> - added "drm_connector_init_with_ddc()" variant to ensure that the ddc
> field of drm_connector is preserved accross its invocation
> - accordingly changed invocations of drm_connector_init() in the
> touched drivers to use the new variant
>
> v5..v6:
>
> - improved subject line of patch 1
> - added kernel-doc for drm_connector_init_with_ddc()
> - improved kernel-doc for the ddc field of struct drm_connector
> - added Reviewed-by in patches 17 and 18
> - added Acked-by in patch 2
> - made the ownership of ddc i2c_adapter explicit in all patches,
> this made the affected patches much simpler
>
> @Benjamin
> @Shawn
>
> There were your Acked-by or Reviewed-by for some patches in v4, but now
> that the patches use the newly added function I'm not sure I can still
> include those tags without you actually confirming. Can I? Or can you
> please re-review?
>
> TODO: nouveau, gma500, omapdrm, panel-simple - if applicable.
omapdrm is moving to a new helper that creates connectors for a set of
bridges, so I'll handle it there. It may require adding a ddc field to
drm_bridge.
> Other drivers are either already converted or don't mention neither
> "ddc" nor "i2c_adapter".
>
> Andrzej Pietrasiewicz (24):
> drm: Add ddc link in sysfs created by drm_connector
> drm: Add drm_connector_init() variant with ddc
> drm/exynos: Provide ddc symlink in connector's sysfs
> drm: rockchip: Provide ddc symlink in rk3066_hdmi sysfs directory
> drm: rockchip: Provide ddc symlink in inno_hdmi sysfs directory
> drm/msm/hdmi: Provide ddc symlink in hdmi connector sysfs directory
> drm/sun4i: hdmi: Provide ddc symlink in sun4i hdmi connector sysfs
> directory
> drm/mediatek: Provide ddc symlink in hdmi connector sysfs directory
> drm/tegra: Provide ddc symlink in output connector sysfs directory
> drm/imx: imx-ldb: Provide ddc symlink in connector's sysfs
> drm/imx: imx-tve: Provide ddc symlink in connector's sysfs
> drm/vc4: Provide ddc symlink in connector sysfs directory
> drm: zte: Provide ddc symlink in hdmi connector sysfs directory
> drm: zte: Provide ddc symlink in vga connector sysfs directory
> drm/tilcdc: Provide ddc symlink in connector sysfs directory
> drm: sti: Provide ddc symlink in hdmi connector sysfs directory
> drm/mgag200: Provide ddc symlink in connector sysfs directory
> drm/ast: Provide ddc symlink in connector sysfs directory
> drm/bridge: dumb-vga-dac: Provide ddc symlink in connector sysfs
> directory
> drm/bridge: dw-hdmi: Provide ddc symlink in connector sysfs directory
> drm/bridge: ti-tfp410: Provide ddc symlink in connector sysfs
> directory
> drm/amdgpu: Provide ddc symlink in connector sysfs directory
> drm/radeon: Provide ddc symlink in connector sysfs directory
> drm/i915: Provide ddc symlink in hdmi connector sysfs directory
>
> .../gpu/drm/amd/amdgpu/amdgpu_connectors.c | 96 ++++++++----
> drivers/gpu/drm/ast/ast_mode.c | 13 +-
> drivers/gpu/drm/bridge/dumb-vga-dac.c | 6 +-
> drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 +-
> drivers/gpu/drm/bridge/ti-tfp410.c | 6 +-
> drivers/gpu/drm/drm_connector.c | 35 +++++
> drivers/gpu/drm/drm_sysfs.c | 8 +
> drivers/gpu/drm/exynos/exynos_hdmi.c | 6 +-
> drivers/gpu/drm/i915/display/intel_hdmi.c | 12 +-
> drivers/gpu/drm/imx/imx-ldb.c | 7 +-
> drivers/gpu/drm/imx/imx-tve.c | 6 +-
> drivers/gpu/drm/mediatek/mtk_hdmi.c | 7 +-
> drivers/gpu/drm/mgag200/mgag200_mode.c | 13 +-
> drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 6 +-
> drivers/gpu/drm/radeon/radeon_connectors.c | 142 +++++++++++++-----
> drivers/gpu/drm/rockchip/inno_hdmi.c | 6 +-
> drivers/gpu/drm/rockchip/rk3066_hdmi.c | 7 +-
> drivers/gpu/drm/sti/sti_hdmi.c | 6 +-
> drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 7 +-
> drivers/gpu/drm/tegra/hdmi.c | 7 +-
> drivers/gpu/drm/tegra/sor.c | 7 +-
> drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 6 +-
> drivers/gpu/drm/vc4/vc4_hdmi.c | 12 +-
> drivers/gpu/drm/zte/zx_hdmi.c | 6 +-
> drivers/gpu/drm/zte/zx_vga.c | 6 +-
> include/drm/drm_connector.h | 18 +++
> 26 files changed, 336 insertions(+), 121 deletions(-)
--
Regards,
Laurent Pinchart
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2019-08-04 12:33 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-26 17:22 [PATCH v6 00/24] Associate ddc adapters with connectors Andrzej Pietrasiewicz
[not found] ` <cover.1564161140.git.andrzej.p-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-07-26 17:22 ` [PATCH v6 01/24] drm: Add ddc link in sysfs created by drm_connector Andrzej Pietrasiewicz
[not found] ` <d470def6cd661b777faeee67b5838a4623c4010e.1564161140.git.andrzej.p-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-08-04 12:04 ` Laurent Pinchart
2019-08-04 12:27 ` Laurent Pinchart
2019-07-26 17:22 ` [PATCH v6 03/24] drm/exynos: Provide ddc symlink in connector's sysfs Andrzej Pietrasiewicz
2019-07-26 17:23 ` [PATCH v6 07/24] drm/sun4i: hdmi: Provide ddc symlink in sun4i hdmi connector sysfs directory Andrzej Pietrasiewicz
2019-07-27 10:37 ` Maxime Ripard
2019-07-26 17:23 ` [PATCH v6 10/24] drm/imx: imx-ldb: Provide ddc symlink in connector's sysfs Andrzej Pietrasiewicz
2019-07-29 9:20 ` Philipp Zabel
2019-07-26 17:23 ` [PATCH v6 11/24] drm/imx: imx-tve: " Andrzej Pietrasiewicz
2019-07-29 9:20 ` Philipp Zabel
2019-07-26 17:23 ` [PATCH v6 14/24] drm: zte: Provide ddc symlink in vga connector sysfs directory Andrzej Pietrasiewicz
2019-07-26 17:23 ` [PATCH v6 18/24] drm/ast: Provide ddc symlink in " Andrzej Pietrasiewicz
2019-07-26 17:23 ` [PATCH v6 20/24] drm/bridge: dw-hdmi: " Andrzej Pietrasiewicz
[not found] ` <4bcf0f154c683c9787fa34f911ebc52de6b4a7a1.1564161140.git.andrzej.p-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-07-26 19:18 ` Jernej Škrabec
2019-07-26 17:23 ` [PATCH v6 24/24] drm/i915: Provide ddc symlink in hdmi " Andrzej Pietrasiewicz
2019-07-30 15:01 ` [PATCH v6 00/24] Associate ddc adapters with connectors Emil Velikov
2019-08-04 12:36 ` Laurent Pinchart
2019-07-26 17:22 ` [PATCH v6 02/24] drm: Add drm_connector_init() variant with ddc Andrzej Pietrasiewicz
2019-07-26 17:22 ` [PATCH v6 04/24] drm: rockchip: Provide ddc symlink in rk3066_hdmi sysfs directory Andrzej Pietrasiewicz
2019-07-26 17:22 ` [PATCH v6 05/24] drm: rockchip: Provide ddc symlink in inno_hdmi " Andrzej Pietrasiewicz
2019-07-26 17:23 ` [PATCH v6 06/24] drm/msm/hdmi: Provide ddc symlink in hdmi connector " Andrzej Pietrasiewicz
2019-07-26 17:23 ` [PATCH v6 08/24] drm/mediatek: " Andrzej Pietrasiewicz
2019-07-26 17:23 ` [PATCH v6 09/24] drm/tegra: Provide ddc symlink in output " Andrzej Pietrasiewicz
2019-07-26 17:23 ` [PATCH v6 12/24] drm/vc4: Provide ddc symlink in " Andrzej Pietrasiewicz
2019-07-26 17:23 ` [PATCH v6 13/24] drm: zte: Provide ddc symlink in hdmi " Andrzej Pietrasiewicz
2019-07-26 17:23 ` [PATCH v6 15/24] drm/tilcdc: Provide ddc symlink in " Andrzej Pietrasiewicz
2019-07-26 17:23 ` [PATCH v6 16/24] drm: sti: Provide ddc symlink in hdmi " Andrzej Pietrasiewicz
[not found] ` <510765aff8ef99683aa2da48bd08004376b1980a.1564161140.git.andrzej.p-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-07-30 12:36 ` Benjamin Gaignard
2019-07-26 17:23 ` [PATCH v6 17/24] drm/mgag200: Provide ddc symlink in " Andrzej Pietrasiewicz
2019-07-26 17:23 ` [PATCH v6 19/24] drm/bridge: dumb-vga-dac: " Andrzej Pietrasiewicz
[not found] ` <ebb75e71b8b7c8d65d54a947a03fd21b8969fb3a.1564161140.git.andrzej.p-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-07-30 12:28 ` Neil Armstrong
2019-08-08 3:42 ` Guenter Roeck
2019-08-13 9:33 ` Geert Uytterhoeven
2019-07-26 17:23 ` [PATCH v6 21/24] drm/bridge: ti-tfp410: " Andrzej Pietrasiewicz
[not found] ` <3b61da77a6456805db0deffe6d1a2343dd784730.1564161140.git.andrzej.p-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-07-30 12:30 ` Neil Armstrong
2019-07-26 17:23 ` [PATCH v6 22/24] drm/amdgpu: " Andrzej Pietrasiewicz
2019-07-26 19:28 ` Alex Deucher
[not found] ` <CADnq5_O1B59Q+68fJgtf_bn_=WQ9yrVPq-V5tL1VQ3+vzgf1Zw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-07-26 19:42 ` Andrzej Pietrasiewicz
[not found] ` <038809c7-e664-e365-a778-03bc11299193-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-07-26 20:00 ` Alex Deucher
2019-07-26 17:23 ` [PATCH v6 23/24] drm/radeon: " Andrzej Pietrasiewicz
2019-07-26 19:26 ` Alex Deucher
2019-07-26 18:35 ` [PATCH v6 00/24] Associate ddc adapters with connectors Sam Ravnborg
2019-07-26 18:55 ` Review required [Was: Associate ddc adapters with connectors] Sam Ravnborg
[not found] ` <20190726185538.GD14981-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org>
2019-07-31 8:00 ` Neil Armstrong
2019-07-31 10:40 ` Sam Ravnborg
2019-07-31 13:10 ` Andrzej Pietrasiewicz
[not found] ` <959cf323-c6b9-895b-592c-81c52aacae6e-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-07-31 14:22 ` Neil Armstrong
[not found] ` <ce68a0df-1719-7b53-b0ed-89caa9afc4a0-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2019-07-31 15:32 ` Neil Armstrong
2019-07-31 16:58 ` [PATCH 00/13] Next round of associating ddc adapters with connectors Andrzej Pietrasiewicz
2019-07-31 16:58 ` [PATCH 02/13] drm/radeon: Eliminate possible use of an uninitialized variable Andrzej Pietrasiewicz
[not found] ` <cfff357a07bfa572baad058947f281b7095e1794.1564591626.git.andrzej.p-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-08-01 12:15 ` Neil Armstrong
[not found] ` <cover.1564591626.git.andrzej.p-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-07-31 16:58 ` [PATCH 01/13] drm/amdgpu: Provide ddc symlink in dm connector's sysfs directory Andrzej Pietrasiewicz
2019-07-31 16:58 ` [PATCH 03/13] drm/exynos: Provide ddc symlink in connector's sysfs Andrzej Pietrasiewicz
2019-07-31 16:58 ` [PATCH 04/13] drm: rockchip: Provide ddc symlink in rk3066_hdmi sysfs directory Andrzej Pietrasiewicz
2019-08-06 8:36 ` Heiko Stuebner
2019-07-31 16:58 ` [PATCH 05/13] drm: rockchip: Provide ddc symlink in inno_hdmi " Andrzej Pietrasiewicz
2019-08-06 8:36 ` Heiko Stuebner
2019-07-31 16:58 ` [PATCH 06/13] drm/msm/hdmi: Provide ddc symlink in hdmi connector " Andrzej Pietrasiewicz
2019-07-31 16:58 ` [PATCH 07/13] drm/mediatek: " Andrzej Pietrasiewicz
2019-08-01 9:06 ` Philipp Zabel
2019-07-31 16:58 ` [PATCH 08/13] drm/tegra: Provide ddc symlink in output " Andrzej Pietrasiewicz
2019-07-31 16:58 ` [PATCH 09/13] drm/vc4: Provide ddc symlink in " Andrzej Pietrasiewicz
2019-07-31 16:58 ` [PATCH 11/13] drm: zte: Provide ddc symlink in vga " Andrzej Pietrasiewicz
2019-07-31 16:58 ` [PATCH 12/13] drm/tilcdc: Provide ddc symlink in " Andrzej Pietrasiewicz
[not found] ` <b8faad34102a91698b55dfc1ce02b1a90fda5e44.1564591626.git.andrzej.p-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-08-05 8:32 ` Jyri Sarha
2019-07-31 16:58 ` [PATCH 10/13] drm: zte: Provide ddc symlink in hdmi " Andrzej Pietrasiewicz
2019-07-31 16:58 ` [PATCH 13/13] drm/i915: " Andrzej Pietrasiewicz
2019-08-04 12:33 ` Laurent Pinchart [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190804123340.GD4984@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=David1.Zhou@amd.com \
--cc=a.hajda@samsung.com \
--cc=airlied@linux.ie \
--cc=andrzej.p@collabora.com \
--cc=benjamin.gaignard@linaro.org \
--cc=ck.hu@mediatek.com \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=festevam@gmail.com \
--cc=heiko@sntech.de \
--cc=jonathanh@nvidia.com \
--cc=jsarha@ti.com \
--cc=jy0922.shim@samsung.com \
--cc=kernel@collabora.com \
--cc=kgene@kernel.org \
--cc=kraxel@redhat.com \
--cc=krzk@kernel.org \
--cc=linux-imx@nxp.com \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=narmstrong@baylibre.com \
--cc=sam@ravnborg.org \
--cc=vincent.abriou@st.com \
--cc=wens@csie.org \
--cc=yc_chen@aspeedtech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox