Re: [PATCH v2 0/8] Add a panel API to return panel orientation

2022-06-03 Thread Hans de Goede
Hi, On 6/2/22 23:48, Doug Anderson wrote: > Hi, > > On Wed, Jun 1, 2022 at 2:46 AM Hsin-Yi Wang wrote: >> >> Panels usually call drm_connector_set_panel_orientation(), which is >> later than drm/kms driver calling drm_dev_register(). This leads to a >> WARN()[1]. >> >> The orientation property

Re: [PATCH v2 0/8] Add a panel API to return panel orientation

2022-06-02 Thread Doug Anderson
Hi, On Wed, Jun 1, 2022 at 2:46 AM Hsin-Yi Wang wrote: > > Panels usually call drm_connector_set_panel_orientation(), which is > later than drm/kms driver calling drm_dev_register(). This leads to a > WARN()[1]. > > The orientation property is known earlier. For example, some panels > parse the

Re: [PATCH v2 0/8] Add a panel API to return panel orientation

2022-06-02 Thread Hsin-Yi Wang
On Thu, Jun 2, 2022 at 4:03 PM CK Hu wrote: > > Hi, Hsin-Yi: > > I'm curious that panel driver setting orientation in get_modes() would > work or not. It it works, why not just set orientation in get_modes()? > I find that exynos dsi driver has implement the get_modes() [1] but > Mediatek dsi

[PATCH v2 0/8] Add a panel API to return panel orientation

2022-06-01 Thread Hsin-Yi Wang
Panels usually call drm_connector_set_panel_orientation(), which is later than drm/kms driver calling drm_dev_register(). This leads to a WARN()[1]. The orientation property is known earlier. For example, some panels parse the property through device tree during probe. The series add a panel API