aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-ipa-pass.h
diff options
context:
space:
mode:
authorKai-Heng Feng <[email protected]>2020-03-24 23:28:11 +0800
committerWolfram Sang <[email protected]>2020-03-24 22:40:55 +0100
commitd944b27df121e2ee854a6c2fad13d6c6300792d4 (patch)
tree0af8ad5ef21263aad1df5db0c60c19a8bd70f5c2 /scripts/gcc-plugins/gcc-generate-ipa-pass.h
parent692b65c84f0bb0ca70c11e62c865cbaf7e8e3afd (diff)
i2c: nvidia-gpu: Handle timeout correctly in gpu_i2c_check_status()
Nvidia card may come with a "phantom" UCSI device, and its driver gets stuck in probe routine, prevents any system PM operations like suspend. There's an unaccounted case that the target time can equal to jiffies in gpu_i2c_check_status(), let's solve that by using readl_poll_timeout() instead of jiffies comparison functions. Fixes: c71bcdcb42a7 ("i2c: add i2c bus driver for NVIDIA GPU") Suggested-by: Andy Shevchenko <[email protected]> Signed-off-by: Kai-Heng Feng <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Ajay Gupta <[email protected]> Tested-by: Ajay Gupta <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-ipa-pass.h')
0 files changed, 0 insertions, 0 deletions