From: Bongsu Jeon Date: Tue, 15 Dec 2020 06:54:00 +0000 (+0900) Subject: nfc: s3fwrn5: Remove the delay for NFC sleep X-Git-Tag: v5.15~2127^2~12^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ec27c9e97f26b5a1d7d07dd825069a45067868a;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Krzysztof Kozlowski Signed-off-by: Jakub Kicinski --- 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);