aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorRui Miguel Silva <[email protected]>2017-05-12 20:16:15 +0000
committerGreg Kroah-Hartman <[email protected]>2017-05-16 12:23:31 +0000
commit50b7c322cfc8b44a36b1373dab2177db23e3282c (patch)
treecca951e511cf8d6c1f229c0a938adb390a738c19 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentstaging: typec: fusb302: reset i2c_busy state in error (diff)
downloadkernel-50b7c322cfc8b44a36b1373dab2177db23e3282c.tar.gz
kernel-50b7c322cfc8b44a36b1373dab2177db23e3282c.zip
staging: typec: fusb302: refactor resume retry mechanism
The i2c functions need to test the pm_suspend state and do, if needed, some retry before i2c operations. This code was repeated 4x. To isolate this, create a new function to check suspend state and call it in every need place. As at it, move the error message from pr_err to dev_err. Signed-off-by: Rui Miguel Silva <[email protected]> Acked-by: Yueyao Zhu <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions