Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4335494pxb; Tue, 2 Mar 2021 12:24:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPEhzGgJSkfFThknQen2NZLjakv50wU3Bx/eJSpKBmOzTCOl4wMf+b3O4lRZX7fDoswqcH X-Received: by 2002:a17:906:1b54:: with SMTP id p20mr17212556ejg.307.1614716649849; Tue, 02 Mar 2021 12:24:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614716649; cv=none; d=google.com; s=arc-20160816; b=BAPfrUJiW92C4SOlERz3Q+pzwGMy3VAecgYngyYZsQ3KMEhR8Eu0gCla0crOQwZUcy b8fv0fjVzPuyv5EqMS8FC9ARnsMlqeRCUyMZV/Tda3CyAHUu/ihYCTjEa6slC3jeyiHk cEh12yvoYhyZUzkA+KobpRSeXxqQj/mOQp7vswbjWI7Ka5EHSbg6xBEpKuFh4qRS2i6p Z7ORRnFhyHKJu186zr1pVHkq+g839695ki7Rg+aRF6d688Zayi1P69Y4slp7mKVgpMy1 eDWHdwk5s10wVzR9a/hByvZvB7ZWnV8YiL6p84xGnCWGB4DEFpX0DiVxua/6Fn5ZNn+B BnJQ== 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; bh=lFav367UtNs6pnycvPdOto1WNDEUp3hZqeg+uhQV1a4=; b=Ejuu56iPNvmJHjtWmoA83Wyh/weBDa+oBrxXQa42b9TfoyyPJLBv8H7N6D3axDODHW YBf/mY6OE+6bU91Ad+hRP/8A9EKxA83snnNCnp4YtmXKkO0IPOgiRCRznLhKs8uYBpwu 9bDYHoLmfs0teF640w6JLCXf1dxye+5vq5DUi0wbh17sFvy1Mia7ec/WmNKyp9OxKrqs JCrD/LryRf71kzWSKIes3LvvQ3CHsYku52TtldpmVeProxmziC8cATqQ5bSfVgUkEbkj cqNxKjbdvF0qNWNuQRlewvAMqUiWEmMJwC2nsX42gF1dIKcxqXlNszKs8y9OTZsFOBYm W7RQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si1594998eds.403.2021.03.02.12.23.43; Tue, 02 Mar 2021 12:24:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1837172AbhCBHfY (ORCPT + 99 others); Tue, 2 Mar 2021 02:35:24 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:19692 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376334AbhCBHRG (ORCPT ); Tue, 2 Mar 2021 02:17:06 -0500 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 01 Mar 2021 23:10:36 -0800 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 01 Mar 2021 23:10:34 -0800 X-QCInternal: smtphost Received: from mdalam-linux.qualcomm.com ([10.201.2.71]) by ironmsg02-blr.qualcomm.com with ESMTP; 02 Mar 2021 12:40:15 +0530 Received: by mdalam-linux.qualcomm.com (Postfix, from userid 466583) id 55B2320EB6; Tue, 2 Mar 2021 12:40:15 +0530 (IST) From: Md Sadre Alam To: agross@kernel.org, bjorn.andersson@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Md Sadre Alam Subject: [PATCH] spi: qup: Change usleep_range to udelay Date: Tue, 2 Mar 2021 12:40:13 +0530 Message-Id: <1614669013-1755-1-git-send-email-mdalam@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change usleep_range() to udelay(). Since delay request for 1 to 2 usec so we have to use udelay() instead of usleep_range() as per kernel documentation. Signed-off-by: Md Sadre Alam --- drivers/spi/spi-qup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index 8dcb2e7..37b013f 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c @@ -189,7 +189,7 @@ static int spi_qup_set_state(struct spi_qup *controller, u32 state) loop = 0; while (!spi_qup_is_valid_state(controller)) { - usleep_range(SPI_DELAY_THRESHOLD, SPI_DELAY_THRESHOLD * 2); + udelay(SPI_DELAY_THRESHOLD); if (++loop > SPI_DELAY_RETRY) return -EIO; @@ -217,7 +217,7 @@ static int spi_qup_set_state(struct spi_qup *controller, u32 state) loop = 0; while (!spi_qup_is_valid_state(controller)) { - usleep_range(SPI_DELAY_THRESHOLD, SPI_DELAY_THRESHOLD * 2); + udelay(SPI_DELAY_THRESHOLD); if (++loop > SPI_DELAY_RETRY) return -EIO; -- 2.7.4