Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2496377pxu; Mon, 14 Dec 2020 04:33:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnJTVwFmTG+IANM29IrHVIWG7kI9ywuqpV0ROWCaFbASIjcMwGvpsz1Dt1c5c836+krHT8 X-Received: by 2002:a2e:5015:: with SMTP id e21mr9915886ljb.433.1607949222076; Mon, 14 Dec 2020 04:33:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607949222; cv=none; d=google.com; s=arc-20160816; b=JUT39cdD6+VCnKNQsL47wk8e1vR616Vjrci/i2N33yQVoifBlkUfRFR5QZDDnFAu9h S6R0EJOvWo6T96v8yOapG9Lzs2RLdXKTFdW5tr+PLilXnhwCRgFLU46GE6SwfJjJfbHc q0JICUkMznKNdhVPBtogofezglMMEmqHnf1Szj8uDepRMR4Dhj4S2ch0ZVinwnVaY2qb 2oBSwFTOXHDSNh+e1ovnLeG81Hu8sA9hIjGumLfrJq/oKw8O7PDUyWA3U0rZP22Zv7X9 kjBp1R588d/vQOs0RDNXjKJZ3ZpmIKucqvMfEFO3ORHJ/jFvudQRF4oy/3eWKomHLxPM RnIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=lsVx0n4zixxira9lv35hWS/y6k/uVu6Aq4wNzOSEerQ=; b=tM19vaXt8zhcBq4U/WslV16nkaoEPBxPqkhODns59AjdsuGRf7uqQhwyPKYBRJVf9h PmeYvz6YydspshQdx/Xq9HjZzheM4D3Lg5LVhGU0wxKui566blWYEvMfQkQmFeqeQs8O VftENpspPXaZnQoOBalw3tNgmOaSo4iPBuXhK/o6OQfwaS+lcoBgqk4l5aEuCSygvSq8 TV5VR5ztiWuIzrJjGL28CWY6CQTSKg4zi9SwKGy4rf5/+HHoMz2mVsp3JEXGmPxN8Hjd HvlvkBBytAUbH8xT4v43yGHYDbvScJ+cF6WRl/Ck3xI1U5yLEfseMaQqyjSoXlE7nUHM yOTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="B3g/XyLF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si7903862ljp.332.2020.12.14.04.30.37; Mon, 14 Dec 2020 04:33:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="B3g/XyLF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389638AbgLMKNR (ORCPT + 99 others); Sun, 13 Dec 2020 05:13:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbgLMKNR (ORCPT ); Sun, 13 Dec 2020 05:13:17 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E7AEC0613CF; Sun, 13 Dec 2020 02:12:52 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id f17so10450821pge.6; Sun, 13 Dec 2020 02:12:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=lsVx0n4zixxira9lv35hWS/y6k/uVu6Aq4wNzOSEerQ=; b=B3g/XyLF32jvXzIhBauVCSIK+Cap/WLc88FRLJ5wVQGa3ZaXCbY2lGzwymWFc6eI47 kHQ1QP3eFu0wRjC2WO33G1ppzdYYAVEZc2DtWss/zzlTuCfEpOdtTTd2lmyxQP93eTFC CalyUGpr9FFgokvmbfxAFbcGqGy3ksNkCdfvFFsHloDzkR4H/0BeyalJDWLyFwaJ7rEQ Ks7wYV2L34HvbLwSPS101yDczdG6fetkKBcPcvTS6EjL32P2ozTRHpNILZL7AYy7xaze YBaYMgSGx5ItCXb8uZbhCSTdLvLgBf6HynTPwzKAxAK1tidmyehe3hkHpNoQnd1aSLGw crBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lsVx0n4zixxira9lv35hWS/y6k/uVu6Aq4wNzOSEerQ=; b=ff0Cuj/okhzWQZesmcU84O5n7IbCbqtMPHEgzSDs8EzoQHxsSmrFihEDeEocJpUZ7m Wq8czpWqVXEUoB+QZhiqlNFoMiQJo1mxFCA9O9DiiBqqXHr+qT5f4vZKy1Tu540feM9y FWHq1tA40sincK4lwqM75cLtcyQxspuIJKOG6YnWppymFKDoKrQtpWokAYjUwzMNZPyq RtayhGUqjEQ/g+a7rG+3jf4KNTeN1XoLDMbbo5DJNt7pOxzwkV4G2qAU1Y6DMkqOJqr+ IxnFxLCS4A9lyrIEvAdpoVLjhlS0DnV7POp+S0gCXmJZNuzyQmZo1cPoSdIwc8CiU8qH 5Rbw== X-Gm-Message-State: AOAM531U75SYYY7ZZ9Ef4VUkOlreie2Yx4ddo8W4Kh9VXtAAQREARZxg PIF/IYu7QPcSuROyJEq5Ww8= X-Received: by 2002:a65:55c1:: with SMTP id k1mr19135135pgs.130.1607854371734; Sun, 13 Dec 2020 02:12:51 -0800 (PST) Received: from localhost.localdomain ([182.226.226.37]) by smtp.googlemail.com with ESMTPSA id s7sm16973115pfh.207.2020.12.13.02.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Dec 2020 02:12:50 -0800 (PST) From: Bongsu Jeon X-Google-Original-From: Bongsu Jeon To: krzk@kernel.org Cc: linux-nfc@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bongsu Jeon Subject: [PATCH net-next] nfc: s3fwrn5: Remove the delay for nfc sleep Date: Sun, 13 Dec 2020 19:12:38 +0900 Message-Id: <20201213101238.28373-1-bongsu.jeon@samsung.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bongsu Jeon remove the delay for nfc sleep because nfc doesn't need the sleep delay. Signed-off-by: Bongsu Jeon --- drivers/nfc/s3fwrn5/phy_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.17.1