aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2025-02-15 09:56:55 +0000
committerBartosz Golaszewski <[email protected]>2025-02-18 10:23:34 +0000
commit81570d6a7ad37033c7895811551a5a9023706eda (patch)
tree9e954489238f8d6925d09c7c8fd4f1e3ec9d8070 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentgpio: vf610: add locking to gpio direction functions (diff)
downloadkernel-81570d6a7ad37033c7895811551a5a9023706eda.tar.gz
kernel-81570d6a7ad37033c7895811551a5a9023706eda.zip
gpiolib: protect gpio_chip with SRCU in array_info paths in multi get/set
During the locking rework in GPIOLIB, we omitted one important use-case, namely: setting and getting values for GPIO descriptor arrays with array_info present. This patch does two things: first it makes struct gpio_array store the address of the underlying GPIO device and not chip. Next: it protects the chip with SRCU from removal in gpiod_get_array_value_complex() and gpiod_set_array_value_complex(). Cc: [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