aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2025-02-19 14:43:56 +0000
committerBartosz Golaszewski <[email protected]>2025-02-20 13:08:18 +0000
commit96fa9ec477ff60bed87e1441fd43e003179f3253 (patch)
tree98ab616fdc0edf11d2f6b921ee03aa41a7750ded /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentgpiolib: protect gpio_chip with SRCU in array_info paths in multi get/set (diff)
downloadkernel-96fa9ec477ff60bed87e1441fd43e003179f3253.tar.gz
kernel-96fa9ec477ff60bed87e1441fd43e003179f3253.zip
gpiolib: don't bail out if get_direction() fails in gpiochip_add_data()
Since commit 9d846b1aebbe ("gpiolib: check the return value of gpio_chip::get_direction()") we check the return value of the get_direction() callback as per its API contract. Some drivers have been observed to fail to register now as they may call get_direction() in gpiochip_add_data() in contexts where it has always silently failed. Until we audit all drivers, replace the bail-out to a kernel log warning. Fixes: 9d846b1aebbe ("gpiolib: check the return value of gpio_chip::get_direction()") Reported-by: Mark Brown <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Reported-by: Marek Szyprowski <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Tested-by: Mark Brown <[email protected]> Reviewed-by: Mark Brown <[email protected]> Tested-by: Marek Szyprowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions