diff options
author | Super Liu <supercjliu@google.com> | 2023-04-06 05:19:59 +0000 |
---|---|---|
committer | Super Liu <supercjliu@google.com> | 2023-04-06 08:02:50 +0000 |
commit | fe7e78550d5de5b170a3daede6a460e5f6967511 (patch) | |
tree | e37f70a0b596f6e4b123e0821314809ea95aa988 | |
parent | 0901ad0c9a51d8aff09f1d31c7abac21d6217344 (diff) | |
download | goodix_touch-fe7e78550d5de5b170a3daede6a460e5f6967511.tar.gz |
Revert^2 "touch/goodix: Skip boot check to force FW update"
aba4bd0c4e5647c22d79479c98d424becf6c4512
Change-Id: Id04e7b2c6a8b2db09c20ff3d8f59593c8785f785
-rw-r--r-- | goodix_brl_hw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/goodix_brl_hw.c b/goodix_brl_hw.c index 4b94946..fca0a18 100644 --- a/goodix_brl_hw.c +++ b/goodix_brl_hw.c @@ -92,6 +92,7 @@ static int brl_dev_confirm(struct goodix_ts_core *cd) ret = hw_ops->read(cd, BOOTOPTION_ADDR, rx_buf, sizeof(rx_buf)); if (ret < 0) return ret; + ts_info("device confirm val: %*ph.", sizeof(rx_buf), rx_buf); /* [GOOG] */ if (!memcmp(tx_buf, rx_buf, sizeof(tx_buf))) break; usleep_range(5000, 5100); @@ -231,8 +232,12 @@ static int brl_power_on(struct goodix_ts_core *cd, bool on) gpio_direction_output(reset_gpio, 1); usleep_range(4000, 4100); ret = brl_dev_confirm(cd); +/* [GOOG] + * Skip the check brl_dev_confirm() as FW recovery mechanism + * to force FW update(if possible). if (ret < 0) goto power_off; +*/ ret = brl_reset_after(cd); if (ret < 0) goto power_off; |