diff options
author | Bongsu Jeon <bongsu.jeon@samsung.com> | 2020-12-15 09:54:00 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-17 00:09:35 +0300 |
commit | 7ec27c9e97f26b5a1d7d07dd825069a45067868a (patch) | |
tree | 8869acb249a676fae9fd13373ac843415e4d785e /drivers/nfc | |
parent | 767143a18d6d743d4254de5cf55b1bd87bb2af18 (diff) | |
download | linux-7ec27c9e97f26b5a1d7d07dd825069a45067868a.tar.xz |
nfc: s3fwrn5: Remove the delay for NFC sleep
Remove the delay for NFC sleep because the delay is only needed to
guarantee that the NFC is awake.
Signed-off-by: Bongsu Jeon <bongsu.jeon@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/nfc')
-rw-r--r-- | drivers/nfc/s3fwrn5/phy_common.c | 3 |
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); |