From 904e5eda7874080da3f852df381db24289e9c54b Mon Sep 17 00:00:00 2001 From: zhuwg1 Date: Fri, 8 Apr 2022 17:25:10 +0800 Subject: [PATCH] Fix fail loading CLI touch limit file sometimes Ensure get panel supplier name before access module execting probe,so test limit file can be found correctly. Change-Id: Ib7af4867dbaefbef45d2662dd321824ebccaea4d Signed-off-by: zhuwg1 Reviewed-on: https://gerrit.mot.com/2237330 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c b/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c index e170d6e15055..3c836bca9775 100644 --- a/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c +++ b/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c @@ -6929,9 +6929,6 @@ int cyttsp5_probe(const struct cyttsp5_bus_ops *ops, struct device *dev, goto error_startup_btn; } - /* Probe registered modules */ - cyttsp5_probe_modules(cd); - #ifdef CONFIG_INPUT_TOUCHSCREEN_MMI dev_info(dev, "%s:cyttsp5_ts_mmi_dev_register",__func__); rc = cyttsp5_ts_mmi_dev_register(dev); @@ -6941,6 +6938,9 @@ int cyttsp5_probe(const struct cyttsp5_bus_ops *ops, struct device *dev, } #endif + /* Probe registered modules */ + cyttsp5_probe_modules(cd); + #if defined (CYTTSP5_SENSOR_EN) if (!initialized_sensor) { if (!cyttsp5_sensor_init(cd))