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 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2237330
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
zhuwg1 2022-04-08 17:25:10 +08:00
commit 904e5eda78

View file

@ -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))