kernel_samsung_a53x/drivers/nfc
Paul Geurts 385a509dc8 NFC: trf7970a: disable all regulators on removal
[ Upstream commit 6bea4f03c6a4e973ef369e15aac88f37981db49e ]

During module probe, regulator 'vin' and 'vdd-io' are used and enabled,
but the vdd-io regulator overwrites the 'vin' regulator pointer. During
remove, only the vdd-io is disabled, as the vin regulator pointer is not
available anymore. When regulator_put() is called during resource
cleanup a kernel warning is given, as the regulator is still enabled.

Store the two regulators in separate pointers and disable both the
regulators on module remove.

Fixes: 49d22c70aaf0 ("NFC: trf7970a: Add device tree option of 1.8 Volt IO voltage")
Signed-off-by: Paul Geurts <paul_geurts@live.nl>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/DB7PR09MB26847A4EBF88D9EDFEB1DA0F950E2@DB7PR09MB2684.eurprd09.prod.outlook.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 11:32:37 +01:00
..
fdp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
microread Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfc_logger drivers/nfc_logger: Fix implicit int 2024-06-15 16:28:48 -03:00
nfcmrvl Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nxp-nci Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pn533 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pn544 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3fwrn5 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st-nci Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st21nfca Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st95hf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ese_p3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ese_p3.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mei_phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mei_phy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfc_wakelock.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfcsim.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
port100.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sec_nfc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sec_nfc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trf7970a.c NFC: trf7970a: disable all regulators on removal 2024-11-19 11:32:37 +01:00