The current driver can only obtain the porch parameters of boe-th101mb31ig002. Modify it to obtain the porch parameters of the panel currently being used. Also switch to the drm_connector_helper_get_modes_fixed() function to get the porch parameters. Changes between V4 and V3: - PATCH 1/2: No changes. - PATCH 2/2: Modify the return value. - Link to v3: https://lore.kernel.org/all/20240722092428.24499-1-lvzhaoxiong@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ Changes between V3 and V2: - PATCH 1/2: No changes. - PATCH 2/2: Keep bpc settings and drm_connector_set_panel_orientation() function. - Link to v2: https://lore.kernel.org/all/20240716121112.14435-1-lvzhaoxiong@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ Changes between V2 and V1: - PATCH 1/2: No changes. - PATCH 2/2: Switch to the drm_connector_helper_get_modes_fixed(). - Link to v1: https://lore.kernel.org/all/20240715031845.6687-1-lvzhaoxiong@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ Zhaoxiong Lv (2): drm/panel: boe-th101mb31ig002 : Fix the way to get porch parameters drm/panel: boe-th101mb31ig002 : using drm_connector_helper_get_modes_fixed() .../drm/panel/panel-boe-th101mb31ig002-28a.c | 22 +++---------------- 1 file changed, 3 insertions(+), 19 deletions(-) -- 2.17.1