NFC: nxp-nci: allow GPIOs to sleep
Subsystems (5)
PATCH v3 1/1 NFC: nxp-nci: allow GPIOs to sleep
Allow the firmware and enable GPIOs to sleep.
This fixes a `WARN_ON' and allows the driver to operate GPIOs which are connected to I2C GPIO expanders.
-- >8 --
kernel: WARNING: CPU: 3 PID: 2636 at drivers/gpio/gpiolib.c:3880 gpiod_set_value+0x88/0x98 -- >8 --
---
Changes since v2:
- Correct the fixes tag (found by AI review)
- Use uppercase "NFC" in patch prefix
--- drivers/nfc/nxp-nci/i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/nfc/nxp-nci/i2c.c +2 -2
@@ -47,8 +47,8 @@ static int nxp_nci_i2c_set_mode(void *phy_id, {struct nxp_nci_i2c_phy *phy = (struct nxp_nci_i2c_phy *) phy_id; -gpiod_set_value (phy->gpiod_fw, (mode ==NXP_NCI_MODE_FW ) ?1 :0 ); -gpiod_set_value (phy->gpiod_en, (mode !=NXP_NCI_MODE_COLD ) ?1 :0 ); +gpiod_set_value_cansleep (phy->gpiod_fw, (mode ==NXP_NCI_MODE_FW ) ?1 :0 ); +gpiod_set_value_cansleep (phy->gpiod_en, (mode !=NXP_NCI_MODE_COLD ) ?1 :0 );usleep_range (10000 ,15000 );if (mode ==NXP_NCI_MODE_COLD )
Signature · 1 line
2.49.0
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 10 lines · On Tue, 17 Mar 2026 10:53:36 +0200 you wrote:
Allow the firmware and enable GPIOs to sleep.
This fixes a `WARN_ON' and allows the driver to operate GPIOs which are connected to I2C GPIO expanders.
-- >8 --
kernel: WARNING: CPU: 3 PID: 2636 atdrivers/gpio/gpiolib.c:3880gpiod_set_value+0x88/0x98-- >8 --[...]
Here is the summary with links:
- [V3] NFC: nxp-nci: allow GPIOs to sleep
https://git.kernel.org/netdev/net/c/55dc632ab2ac
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html