linux/drivers/hwspinlock
Christian Marangi 23316be8a9 hwspinlock: qcom: add missing regmap config for SFPB MMIO implementation
Commit 5d4753f741 ("hwspinlock: qcom: add support for MMIO on older
SoCs") introduced and made regmap_config mandatory in the of_data struct
but didn't add the regmap_config for sfpb based devices.

SFPB based devices can both use the legacy syscon way to probe or the
new MMIO way and currently device that use the MMIO way are broken as
they lack the definition of the now required regmap_config and always
return -EINVAL (and indirectly makes fail probing everything that
depends on it, smem, nandc with smem-parser...)

Fix this by correctly adding the missing regmap_config and restore
function of hwspinlock on SFPB based devices with MMIO implementation.

Cc: stable@vger.kernel.org
Fixes: 5d4753f741 ("hwspinlock: qcom: add support for MMIO on older SoCs")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://lore.kernel.org/r/20230716022804.21239-1-ansuelsmth@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
2023-07-17 11:49:18 -07:00
..
hwspinlock_core.c hwspinlock: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:52 -07:00
hwspinlock_internal.h hwspinlock: hwspinlock_internal.h: Replace zero-length array with flexible-array member 2020-03-25 22:30:46 -07:00
Kconfig hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00
Makefile hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00
omap_hwspinlock.c hwspinlock: omap: Convert to platform remove callback returning void 2023-07-15 13:04:25 -07:00
qcom_hwspinlock.c hwspinlock: qcom: add missing regmap config for SFPB MMIO implementation 2023-07-17 11:49:18 -07:00
sprd_hwspinlock.c hwspinlock: sprd: Use struct_size() helper in devm_kzalloc() 2022-03-11 14:56:57 -06:00
stm32_hwspinlock.c hwspinlock: stm32: Use struct_size() helper in devm_kzalloc() 2022-03-11 14:56:15 -06:00
sun6i_hwspinlock.c hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00
u8500_hsem.c hwspinlock: u8500: Convert to platform remove callback returning void 2023-07-15 13:04:25 -07:00