summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorChunyan Zhang <chunyan.zhang@unisoc.com>2020-12-14 12:58:50 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-17 14:04:21 +0100
commit1bf68c17797073b4fc1459b8584bf98f0b05d377 (patch)
tree621ee75735b5f441cc1bc12257f785d0441661a3 /drivers/cpufreq
parent15d97f9fd9b52c54b76e4eec3f08b2d7b15e13be (diff)
downloadlinux-stable-1bf68c17797073b4fc1459b8584bf98f0b05d377.tar.gz
linux-stable-1bf68c17797073b4fc1459b8584bf98f0b05d377.tar.bz2
linux-stable-1bf68c17797073b4fc1459b8584bf98f0b05d377.zip
i2c: sprd: use a specific timeout to avoid system hang up issue
commit 0b884fe71f9ee6a5df35e677154256ea2099ebb8 upstream. 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 <linhua.xu@unisoc.com> Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com> [wsa: changed errno to ETIMEDOUT] Signed-off-by: Wolfram Sang <wsa@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/cpufreq')
0 files changed, 0 insertions, 0 deletions