diff options
| author | Geert Uytterhoeven <[email protected]> | 2022-01-31 11:35:53 +0100 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2022-02-02 11:53:46 +0100 |
| commit | 2cba05451a6d0c703bb74f1a250691404f27c4f1 (patch) | |
| tree | 97a40a4c84162dd3ee45968dbbc652c46975ce09 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | 26291c54e111ff6ba87a164d85d4a4e134b7315c (diff) | |
gpio: aggregator: Fix calling into sleeping GPIO controllers
If the parent GPIO controller is a sleeping controller (e.g. a GPIO
controller connected to I2C), getting or setting a GPIO triggers a
might_sleep() warning. This happens because the GPIO Aggregator takes
the can_sleep flag into account only for its internal locking, not for
calling into the parent GPIO controller.
Fix this by using the gpiod_[gs]et*_cansleep() APIs when calling into a
sleeping GPIO controller.
Reported-by: Mikko Salomäki <[email protected]>
Fixes: 828546e24280f721 ("gpio: Add GPIO Aggregator")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions