diff options
author | Wendly Li <wendlyli@google.com> | 2022-06-08 13:52:47 +0000 |
---|---|---|
committer | Wendly Li <wendlyli@google.com> | 2022-06-24 06:00:03 +0000 |
commit | 0fd1a952fe2109de81a6268b94ab1ec2f879fc8c (patch) | |
tree | 3c702b114029beabf6e6bb4cd611054d60ffb4f8 /goodix_ts_core.h | |
parent | 616086ad731981c95fd01f915538f7a5da60804c (diff) | |
download | goodix_touch-0fd1a952fe2109de81a6268b94ab1ec2f879fc8c.tar.gz |
goodix: Fix data racing
Bug: 229036434
Test: Be able to get fw version
Change-Id: Idd2f8701fa7b984564f9df379f49eb23c8015b19
Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r-- | goodix_ts_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/goodix_ts_core.h b/goodix_ts_core.h index 2992a53..4c536c1 100644 --- a/goodix_ts_core.h +++ b/goodix_ts_core.h @@ -550,6 +550,7 @@ struct goodix_bus_interface { struct device *dev; u8 *rx_buf; u8 *tx_buf; + struct mutex mutex; int (*read)(struct device *dev, unsigned int addr, unsigned char *data, unsigned int len); int (*read_fast)(struct device *dev, unsigned int addr, |