summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/s3fwrn5/phy_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nfc/s3fwrn5/phy_common.c')
-rw-r--r--drivers/nfc/s3fwrn5/phy_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nfc/s3fwrn5/phy_common.c b/drivers/nfc/s3fwrn5/phy_common.c
index 497b02b30ae7..81318478d5fd 100644
--- a/drivers/nfc/s3fwrn5/phy_common.c
+++ b/drivers/nfc/s3fwrn5/phy_common.c
@@ -20,7 +20,8 @@ void s3fwrn5_phy_set_wake(void *phy_id, bool wake)
mutex_lock(&phy->mutex);
gpio_set_value(phy->gpio_fw_wake, wake);
- msleep(S3FWRN5_EN_WAIT_TIME);
+ if (wake)
+ msleep(S3FWRN5_EN_WAIT_TIME);
mutex_unlock(&phy->mutex);
}
EXPORT_SYMBOL(s3fwrn5_phy_set_wake);