From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Subject: Re: [PATCH v2 5/9] drm/panel: Add timings field to drm_panel Date: Thu, 15 Aug 2019 15:03:15 +0300 Message-ID: <20190815120315.GL5011@pendragon.ideasonboard.com> References: <1565867073-24746-1-git-send-email-fabrizio.castro@bp.renesas.com> <1565867073-24746-6-git-send-email-fabrizio.castro@bp.renesas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <1565867073-24746-6-git-send-email-fabrizio.castro@bp.renesas.com> Sender: linux-kernel-owner@vger.kernel.org To: Fabrizio Castro Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , Thierry Reding , David Airlie , Daniel Vetter , Sam Ravnborg , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Simon Horman , Geert Uytterhoeven , Chris Paterson , Biju Das , linux-renesas-soc@vger.kernel.org, Kieran Bingham , Jacopo Mondi List-Id: dri-devel@lists.freedesktop.org Hi Fabrizio, Thank you for the patch. On Thu, Aug 15, 2019 at 12:04:29PM +0100, Fabrizio Castro wrote: > We need to know if the panel supports dual-link, similarly > to bridges, therefore add a reference to drm_timings in > drm_panel. Panels may also need to report setup/hold time, so it's not about dual-link only. I would make this explicit in the commit message. > Signed-off-by: Fabrizio Castro > > --- > v1->v2: > * new patch > > include/drm/drm_panel.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h > index 8c738c0..cd6ff07 100644 > --- a/include/drm/drm_panel.h > +++ b/include/drm/drm_panel.h > @@ -26,6 +26,7 @@ > > #include > #include > +#include You can just add a forward-declaration of struct drm_timing. > > struct device_node; > struct drm_connector; > @@ -81,6 +82,7 @@ struct drm_panel_funcs { > * struct drm_panel - DRM panel object > * @drm: DRM device owning the panel > * @connector: DRM connector that the panel is attached to > + * @timings: timing information > * @dev: parent device of the panel > * @link: link from panel device (supplier) to DRM device (consumer) > * @funcs: operations that can be performed on the panel > @@ -89,6 +91,7 @@ struct drm_panel_funcs { > struct drm_panel { > struct drm_device *drm; > struct drm_connector *connector; > + const struct drm_timings *timings; > struct device *dev; > > const struct drm_panel_funcs *funcs; -- Regards, Laurent Pinchart