[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87eefum8rq.fsf@intel.com>
Date: Thu, 01 Apr 2021 16:31:05 +0300
From: Jani Nikula <jani.nikula@...ux.intel.com>
To: Lyude Paul <lyude@...hat.com>, nouveau@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org, amd-gfx@...ts.freedesktop.org,
intel-gfx@...ts.freedesktop.org
Cc: Alex Deucher <alexander.deucher@....com>,
Christian König
<christian.koenig@....com>, David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Harry Wentland <harry.wentland@....com>,
Leo Li <sunpeng.li@....com>,
Andrzej Hajda <a.hajda@...sung.com>,
Neil Armstrong <narmstrong@...libre.com>,
Robert Foss <robert.foss@...aro.org>,
Laurent Pinchart <Laurent.pinchart@...asonboard.com>,
Jonas Karlman <jonas@...boo.se>,
Jernej Skrabec <jernej.skrabec@...l.net>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
Rob Clark <robdclark@...il.com>, Sean Paul <sean@...rly.run>,
Ben Skeggs <bskeggs@...hat.com>,
Thierry Reding <thierry.reding@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>,
Hyun Kwon <hyun.kwon@...inx.com>,
Michal Simek <michal.simek@...inx.com>,
Luben Tuikov <luben.tuikov@....com>,
Oleg Vasilev <oleg.vasilev@...el.com>,
Mikita Lipski <mikita.lipski@....com>,
Eryk Brol <eryk.brol@....com>,
Rodrigo Siqueira <Rodrigo.Siqueira@....com>,
"Jerry \(Fangzhi\) Zuo" <Jerry.Zuo@....com>,
Chris Park <Chris.Park@....com>,
Sam Ravnborg <sam@...nborg.org>, Joe Perches <joe@...ches.com>,
Vasily Khoruzhick <anarsoul@...il.com>,
Guido Günther <agx@...xcpu.org>,
Boris Brezillon <boris.brezillon@...labora.com>,
Andy Yan <andy.yan@...k-chips.com>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Tomi Valkeinen <tomi.valkeinen@...com>,
Swapnil Jakhade <sjakhade@...ence.com>,
Yuti Amonkar <yamonkar@...ence.com>,
Jyri Sarha <jsarha@...com>,
Julia Lawall <Julia.Lawall@...ia.fr>,
Ville Syrjälä <ville.syrjala@...ux.intel.com>,
Imre Deak <imre.deak@...el.com>,
Matt Roper <matthew.d.roper@...el.com>,
Lucas De Marchi <lucas.demarchi@...el.com>,
open list <linux-kernel@...r.kernel.org>,
"open list\:DRM DRIVER FOR MSM ADRENO GPU"
<linux-arm-msm@...r.kernel.org>,
"open list\:DRM DRIVER FOR MSM ADRENO GPU"
<freedreno@...ts.freedesktop.org>,
"open list\:DRM DRIVERS FOR NVIDIA TEGRA"
<linux-tegra@...r.kernel.org>,
"moderated list\:ARM\/ZYNQ ARCHITECTURE"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v2 05/20] drm/dp: Add backpointer to drm_device in drm_dp_aux
On Fri, 26 Mar 2021, Lyude Paul <lyude@...hat.com> wrote:
> * The @dev field should be set to a pointer to the device that implements the
> - * AUX channel.
> + * AUX channel. As well, the @drm_dev field should be set to the &drm_device
> + * that will be using this AUX channel as early as possible. For many graphics
> + * drivers this should happen before drm_dp_aux_init(), however it's perfectly
> + * fine to set this field later so long as it's assigned before calling
> + * drm_dp_aux_register().
Perhaps add a follow-up patch to actually ensure this is the case in
drm_dp_aux_register()?
> *
> * The @name field may be used to specify the name of the I2C adapter. If set to
> * %NULL, dev_name() of @dev will be used.
> @@ -1877,6 +1883,7 @@ struct drm_dp_aux {
> const char *name;
> struct i2c_adapter ddc;
> struct device *dev;
> + struct drm_device *drm_dev;
Bikeshed, I would probably have called it just drm for brevity, but no
strong feelings.
BR,
Jani.
--
Jani Nikula, Intel Open Source Graphics Center
Powered by blists - more mailing lists