Re: [PATCH v6 8/8] drm: Config orientation property if panel provides it

2022-06-08 Thread Hsin-Yi Wang
On Wed, Jun 8, 2022 at 10:17 PM Doug Anderson wrote: > > Hi, > > On Wed, Jun 8, 2022 at 2:48 AM Hsin-Yi Wang wrote: > > > > @@ -269,6 +280,31 @@ void drm_panel_bridge_remove(struct drm_bridge *bridge) > > } > > EXPORT_SYMBOL(drm_panel_bridge_remove); > > > > +/** > > + * drm_panel_bridge_set_or

Re: [PATCH v6 8/8] drm: Config orientation property if panel provides it

2022-06-08 Thread Doug Anderson
Hi, On Wed, Jun 8, 2022 at 2:48 AM Hsin-Yi Wang wrote: > > @@ -269,6 +280,31 @@ void drm_panel_bridge_remove(struct drm_bridge *bridge) > } > EXPORT_SYMBOL(drm_panel_bridge_remove); > > +/** > + * drm_panel_bridge_set_orientation - Set the connector's panel orientation > + * if the bridge is a

[PATCH v6 8/8] drm: Config orientation property if panel provides it

2022-06-08 Thread Hsin-Yi Wang
Panel orientation property should be set before drm_dev_register(). Some drm driver calls drm_dev_register() in .bind(). However, most panels sets orientation property relatively late, mostly in .get_modes() callback, since this is when they are able to get the connector and binds the orientation p