aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorChunyan Zhang <[email protected]>2020-12-14 12:58:50 +0800
committerWolfram Sang <[email protected]>2021-01-04 19:22:07 +0100
commit0b884fe71f9ee6a5df35e677154256ea2099ebb8 (patch)
tree9e6db491a675b7ab30a83c8415ed847e208fdfce /scripts/gdb/linux/utils.py
parente71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 (diff)
i2c: sprd: use a specific timeout to avoid system hang up issue
If the i2c device SCL bus being pulled up due to some exception before message transfer done, the system cannot receive the completing interrupt signal any more, it would not exit waiting loop until MAX_SCHEDULE_TIMEOUT jiffies eclipse, that would make the system seemed hang up. To avoid that happen, this patch adds a specific timeout for message transfer. Fixes: 8b9ec0719834 ("i2c: Add Spreadtrum I2C controller driver") Signed-off-by: Linhua Xu <[email protected]> Signed-off-by: Chunyan Zhang <[email protected]> [wsa: changed errno to ETIMEDOUT] Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions