From patchwork Mon Mar 21 16:12:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787489 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2128BC433F5 for ; Mon, 21 Mar 2022 16:12:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350848AbiCUQN7 (ORCPT ); Mon, 21 Mar 2022 12:13:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234996AbiCUQN6 (ORCPT ); Mon, 21 Mar 2022 12:13:58 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4778829811 for ; Mon, 21 Mar 2022 09:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=SKbhtQauDIu8IW sUX7r8Xzf/TTppMbLtpDDbTHDOTzI=; b=L+wXwqnhdQUCIdqmciIvH21TBIgwHl 0dTRNA9rYiS1/MzXJeEkE84lDJskM2OWsAIjJ+4VVL5ZtvDmZHOk63xZz9CJO6Ox 8TOZjKipbbm5YqVSS3LCB76CWL6i0DWZhv4yG5O1TolcdJVxXPpgZr12auciVO6r pa835YEQ9wN1U= Received: (qmail 957647 invoked from network); 21 Mar 2022 17:12:28 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:28 +0100 X-UD-Smtp-Session: l3s3148p1@apNEw7zaGNkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 01/15] delay: rename fsleep to usleep_autoyield Date: Mon, 21 Mar 2022 17:12:09 +0100 Message-Id: <20220321161223.2837-2-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Rename fsleep because the current name breaks the pattern of the first letter being a unit (and it is not 'femto' here). Let's add the proper unit again and add a suffix to the function which will hopefully be a bit more explanatory. To give some time until all users are converted, introduce a fallback define which will go away later. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet Documentation/timers/timers-howto.rst | 2 +- include/linux/delay.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/timers/timers-howto.rst b/Documentation/timers/timers-howto.rst index 5c169e3d29a8..d0a57ca5e18e 100644 --- a/Documentation/timers/timers-howto.rst +++ b/Documentation/timers/timers-howto.rst @@ -112,4 +112,4 @@ NON-ATOMIC CONTEXT: you know you have a need for the interruptible variant. FLEXIBLE SLEEPING (any delay, uninterruptible) - * Use fsleep + * Use usleep_autoyield diff --git a/include/linux/delay.h b/include/linux/delay.h index 039e7e0c7378..d0919f52fec8 100644 --- a/include/linux/delay.h +++ b/include/linux/delay.h @@ -78,7 +78,7 @@ static inline void ssleep(unsigned int seconds) } /* see Documentation/timers/timers-howto.rst for the thresholds */ -static inline void fsleep(unsigned long usecs) +static inline void usleep_autoyield(unsigned long usecs) { if (usecs <= 10) udelay(usecs); @@ -88,4 +88,6 @@ static inline void fsleep(unsigned long usecs) msleep(DIV_ROUND_UP(usecs, 1000)); } +#define fsleep usleep_autoyield + #endif /* defined(_LINUX_DELAY_H) */ From patchwork Mon Mar 21 16:12:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787490 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F29DC433FE for ; Mon, 21 Mar 2022 16:12:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234996AbiCUQN7 (ORCPT ); Mon, 21 Mar 2022 12:13:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350715AbiCUQN6 (ORCPT ); Mon, 21 Mar 2022 12:13:58 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A4172E6BC for ; Mon, 21 Mar 2022 09:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=Olo2Uqd/vUiEwq 7fC0KME5v7jxlFjg6geezBJLWQIFQ=; b=qoKEAx2sBOI4aUgpFuP764d7Pz/1Z9 kpGEG9DrJOfTU8fbLJa5V2fbMFKkL6bLVSZxK+zeDAg0qsYQM+mdJsOdu9nISaTc 762A8OJN5MJBgs6GNac0yLruTEI0jEf+RdY0TwGW3dqyizv2K5KUZonCRzsbTgro fBX2L1OlRTv2A= Received: (qmail 957674 invoked from network); 21 Mar 2022 17:12:29 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:29 +0100 X-UD-Smtp-Session: l3s3148p1@oNRNw7zaGtkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 02/15] base: regmap: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:10 +0100 Message-Id: <20220321161223.2837-3-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/base/regmap/regmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 8f9fe5fd4707..27c75611d177 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -2429,7 +2429,7 @@ static int _regmap_range_multi_paged_reg_write(struct regmap *map, if (regs[i].delay_us) { if (map->can_sleep) - fsleep(regs[i].delay_us); + usleep_autoyield(regs[i].delay_us); else udelay(regs[i].delay_us); } @@ -2470,7 +2470,7 @@ static int _regmap_multi_reg_write(struct regmap *map, if (regs[i].delay_us) { if (map->can_sleep) - fsleep(regs[i].delay_us); + usleep_autoyield(regs[i].delay_us); else udelay(regs[i].delay_us); } From patchwork Mon Mar 21 16:12:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787494 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 108A2C433FE for ; Mon, 21 Mar 2022 16:12:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350867AbiCUQOB (ORCPT ); Mon, 21 Mar 2022 12:14:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350819AbiCUQN6 (ORCPT ); Mon, 21 Mar 2022 12:13:58 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39EAA68FB8 for ; Mon, 21 Mar 2022 09:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=KqOKmkSiv4XScF s86hoBk+u/08tcRXiCL6CqLW8A4xo=; b=2SNV0O58qpDM1YlOPb57qj0OOJ1tgw aQMRd6Gb9OXfxbXbrGmJpPmgaZvpHmBzkfYrLe6EImSTf/2HRzkEL62OVa9uhm+G 2Hko1BFTM5mDQpvFFskCAiInGYE/lcjRofed1MoKNpRSxFyv0YfMfJrU68WTDma7 8u6hRijoOt//Y= Received: (qmail 957707 invoked from network); 21 Mar 2022 17:12:29 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:29 +0100 X-UD-Smtp-Session: l3s3148p1@xgpWw7zaHNkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 03/15] bus: mhi: core: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:11 +0100 Message-Id: <20220321161223.2837-4-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/bus/mhi/core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/mhi/core/main.c b/drivers/bus/mhi/core/main.c index ffde617f93a3..2a8d724e1445 100644 --- a/drivers/bus/mhi/core/main.c +++ b/drivers/bus/mhi/core/main.c @@ -54,7 +54,7 @@ int __must_check mhi_poll_reg_field(struct mhi_controller *mhi_cntrl, if (out == val) return 0; - fsleep(delayus); + usleep_autoyield(delayus); } return -ETIMEDOUT; From patchwork Mon Mar 21 16:12:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787492 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9DBCC4332F for ; Mon, 21 Mar 2022 16:12:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350864AbiCUQOA (ORCPT ); Mon, 21 Mar 2022 12:14:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350816AbiCUQN6 (ORCPT ); Mon, 21 Mar 2022 12:13:58 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5252F6A005 for ; Mon, 21 Mar 2022 09:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=ikUfaeEEH/yjTb 15TtYVKhrv9wGTjRlZkYE4O4DRV4E=; b=x1xDvcLM4j0MQy55nBJrbVLzkUbNmD 5QQ27R/W8esqPhGDPMeiCr3izcn9Q7ZJDbwk7kGIGRhdg1AE0Mn9N7I2eyDnUslx ObyU+wdJmx09gLD7uZNEhGPWuP+3QH30YLVVXnY+dIKCT7okI2SmOhYLIqIUuGdI HuWqKC8I2Y214= Received: (qmail 957729 invoked from network); 21 Mar 2022 17:12:30 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:30 +0100 X-UD-Smtp-Session: l3s3148p1@KQFfw7zaHtkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 04/15] iio: adc: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:12 +0100 Message-Id: <20220321161223.2837-5-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/iio/adc/ti-tsc2046.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ti-tsc2046.c b/drivers/iio/adc/ti-tsc2046.c index e8fc4d01f30b..d0d041ec632a 100644 --- a/drivers/iio/adc/ti-tsc2046.c +++ b/drivers/iio/adc/ti-tsc2046.c @@ -464,7 +464,7 @@ static void tsc2046_adc_reenable_trigger(struct iio_trigger *trig) */ delta = priv->scan_interval_us - priv->time_per_scan_us; if (delta > 0) - fsleep(delta); + usleep_autoyield(delta); spin_lock_irqsave(&priv->trig_lock, flags); From patchwork Mon Mar 21 16:12:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787493 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6717DC4321E for ; Mon, 21 Mar 2022 16:12:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347196AbiCUQOB (ORCPT ); Mon, 21 Mar 2022 12:14:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350826AbiCUQN6 (ORCPT ); Mon, 21 Mar 2022 12:13:58 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CB6A6D3A8 for ; Mon, 21 Mar 2022 09:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=eyCy4gH1ISkq/h cizrtlSR4kldwLUiAicgF4MO82BoU=; b=rW4apfZGDhE6f+hlw5EfVprqgPU18i LPcGhpqLvPOf8ZGAjstnWCEWFAg1C6aNO7VGZpK9f8tK2ftETx5w532eI9Whf6Jv 3Yuct9CppxBIfeWNpkjFAxSoE81G+x8SHgGbMxPqexflqiRxmVUARB/wTv7aWVtj yoe3sQqpqZuDo= Received: (qmail 957765 invoked from network); 21 Mar 2022 17:12:30 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:30 +0100 X-UD-Smtp-Session: l3s3148p1@0EVnw7zaINkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 05/15] memory: tegra: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:13 +0100 Message-Id: <20220321161223.2837-6-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/memory/tegra/tegra20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memory/tegra/tegra20.c b/drivers/memory/tegra/tegra20.c index fcd7738fcb53..29ec45e79edf 100644 --- a/drivers/memory/tegra/tegra20.c +++ b/drivers/memory/tegra/tegra20.c @@ -463,7 +463,7 @@ static void tegra20_mc_stat_gather(struct tegra20_mc_stat *stat) mc_writel(mc, 0xffffffff, MC_STAT_EMC_CLOCK_LIMIT); mc_writel(mc, EMC_GATHER_ENABLE, MC_STAT_CONTROL); - fsleep(stat->sample_time_usec); + usleep_autoyield(stat->sample_time_usec); mc_writel(mc, EMC_GATHER_DISABLE, MC_STAT_CONTROL); count0 = mc_readl(mc, MC_STAT_EMC_COUNT_0); From patchwork Mon Mar 21 16:12:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787495 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A889CC433F5 for ; Mon, 21 Mar 2022 16:12:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350819AbiCUQOB (ORCPT ); Mon, 21 Mar 2022 12:14:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350844AbiCUQN7 (ORCPT ); Mon, 21 Mar 2022 12:13:59 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B654575C39 for ; Mon, 21 Mar 2022 09:12:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=Z0ms4mMQwbIM4H QhkKakBorBxsTnuxIwIQiCY9Zd7nk=; b=itcfh13I0lM/2B2cDrZlVAVsX8H2dX TrgshuvEA+wui2FBdGV4TwWqZqvr6NeAwAi8/BC03+zMLCDW0Fa2Se8r5nLg1HIJ Z3c2D1AyL0qvhc1WgoIIbYXIpXOHWKILeCbIvBPsBYtoiBdNsjYZKH3zsa3POxvi EPeJgL06eBVjA= Received: (qmail 957797 invoked from network); 21 Mar 2022 17:12:31 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:31 +0100 X-UD-Smtp-Session: l3s3148p1@bF9vw7zaItkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 06/15] mfd: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:14 +0100 Message-Id: <20220321161223.2837-7-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/mfd/acer-ec-a500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/acer-ec-a500.c b/drivers/mfd/acer-ec-a500.c index 80c2fdd14fc4..b3155c7b0559 100644 --- a/drivers/mfd/acer-ec-a500.c +++ b/drivers/mfd/acer-ec-a500.c @@ -59,7 +59,7 @@ static int a500_ec_read(void *context, const void *reg_buf, size_t reg_size, *ret_val = ret; if (reg == REG_CURRENT_NOW) - fsleep(10000); + usleep_autoyield(10000); return 0; } From patchwork Mon Mar 21 16:12:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787496 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5A00C433EF for ; Mon, 21 Mar 2022 16:12:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348350AbiCUQOE (ORCPT ); Mon, 21 Mar 2022 12:14:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350840AbiCUQN7 (ORCPT ); Mon, 21 Mar 2022 12:13:59 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B553174DD6 for ; Mon, 21 Mar 2022 09:12:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=l2I0BePf9ZM5WC ohjOwT+ZnLo9RHE9f6dsUKU7/hA48=; b=cTDOrjf2MRXqyNrcZc5OpeKlDFBab2 0bx472Rnpnc4m68sdECXS7DOWNbyoWWpilzmmb9fcZbVhs7kWzsQPPvYpsGn/9iQ ZfkY6gjddWusgf1AgLM5AHGeyByLm2Kjhf9jzS2tF/XRy3JtVZPY3KuYugKBIbzG SxfBCGPn+0u2w= Received: (qmail 957829 invoked from network); 21 Mar 2022 17:12:31 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:31 +0100 X-UD-Smtp-Session: l3s3148p1@4dV3w7zaJtkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 07/15] mux: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:15 +0100 Message-Id: <20220321161223.2837-8-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/mux/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mux/core.c b/drivers/mux/core.c index 22f4709768d1..4999f255b787 100644 --- a/drivers/mux/core.c +++ b/drivers/mux/core.c @@ -329,7 +329,7 @@ static void mux_control_delay(struct mux_control *mux, unsigned int delay_us) delayend = ktime_add_us(mux->last_change, delay_us); remaining = ktime_us_delta(delayend, ktime_get()); if (remaining > 0) - fsleep(remaining); + usleep_autoyield(remaining); } /** From patchwork Mon Mar 21 16:12:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787498 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D945C433FE for ; Mon, 21 Mar 2022 16:12:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350890AbiCUQOG (ORCPT ); Mon, 21 Mar 2022 12:14:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350858AbiCUQOA (ORCPT ); Mon, 21 Mar 2022 12:14:00 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B62929811 for ; Mon, 21 Mar 2022 09:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=cunoTtoK2oBcz7 VzEx0UYPGYOFgkoQ8XHd1+3sWASlQ=; b=Aohll0Vd/p4kbzsZ+4UQT12OrIw22L aS2TiZhaIBJuEwJnJcGDT7IMbHWog/mbrvAzV0ng45Xccx1julWgTPwRmi8vR1Nz EWid0qYB+OVQ3g+WVuENoSTN9Kh9kyvpZGfFFE6OQ8Z4CsAu/Nc64xiuSFUW4nOo yO3HmrFlRktnk= Received: (qmail 957867 invoked from network); 21 Mar 2022 17:12:32 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:32 +0100 X-UD-Smtp-Session: l3s3148p1@GTuAw7zaKNkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 08/15] net: ethernet: realtek: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:16 +0100 Message-Id: <20220321161223.2837-9-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/net/ethernet/realtek/r8169_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index 19e2621e0645..ec39b5b98cfb 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -727,7 +727,7 @@ static bool rtl_loop_wait(struct rtl8169_private *tp, const struct rtl_cond *c, for (i = 0; i < n; i++) { if (c->check(tp) == high) return true; - fsleep(usecs); + usleep_autoyield(usecs); } if (net_ratelimit()) @@ -2468,7 +2468,7 @@ static void rtl_wait_txrx_fifo_empty(struct rtl8169_private *tp) static void rtl_enable_rxdvgate(struct rtl8169_private *tp) { RTL_W32(tp, MISC, RTL_R32(tp, MISC) | RXDV_GATED_EN); - fsleep(2000); + usleep_autoyield(2000); rtl_wait_txrx_fifo_empty(tp); } @@ -3972,11 +3972,11 @@ static void rtl8169_cleanup(struct rtl8169_private *tp, bool going_down) break; case RTL_GIGA_MAC_VER_40 ... RTL_GIGA_MAC_VER_63: rtl_enable_rxdvgate(tp); - fsleep(2000); + usleep_autoyield(2000); break; default: RTL_W8(tp, ChipCmd, RTL_R8(tp, ChipCmd) | StopReq); - fsleep(100); + usleep_autoyield(100); break; } From patchwork Mon Mar 21 16:12:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787497 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C181C4332F for ; Mon, 21 Mar 2022 16:12:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350858AbiCUQOH (ORCPT ); Mon, 21 Mar 2022 12:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350863AbiCUQOA (ORCPT ); Mon, 21 Mar 2022 12:14:00 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19DB22C668 for ; Mon, 21 Mar 2022 09:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=Dg6BP5ZGy7IAIx EnDCYIEu7neW0XgK82Rr5a7qQWPcE=; b=c1UYzCPhAoqYa6Gq36S2d4H8TIT/ej IBffDnLPjLej18kMqmJsAoQMczpGFnyjOY2eyHJG3F4W6U6o1JlMcImIm3o/cdgX Zg0aHFMUwPvwKhikA3QapOYye4c76nWcBCGV5fPD6AIFlCgRZRffyxhok7QFsRNO Mu8zlQgZdBg5U= Received: (qmail 957898 invoked from network); 21 Mar 2022 17:12:33 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:33 +0100 X-UD-Smtp-Session: l3s3148p1@R/KHw7zaKtkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 09/15] net: mdio: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:17 +0100 Message-Id: <20220321161223.2837-10-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/net/mdio/mdio-ipq4019.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mdio/mdio-ipq4019.c b/drivers/net/mdio/mdio-ipq4019.c index 4eba5a91075c..6e7de2e82e3a 100644 --- a/drivers/net/mdio/mdio-ipq4019.c +++ b/drivers/net/mdio/mdio-ipq4019.c @@ -192,7 +192,7 @@ static int ipq_mdio_reset(struct mii_bus *bus) val = readl(priv->eth_ldo_rdy); val |= BIT(0); writel(val, priv->eth_ldo_rdy); - fsleep(IPQ_PHY_SET_DELAY_US); + usleep_autoyield(IPQ_PHY_SET_DELAY_US); } /* Configure MDIO clock source frequency if clock is specified in the device tree */ From patchwork Mon Mar 21 16:12:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787500 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5E69C433F5 for ; Mon, 21 Mar 2022 16:12:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350886AbiCUQOI (ORCPT ); Mon, 21 Mar 2022 12:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350869AbiCUQOD (ORCPT ); Mon, 21 Mar 2022 12:14:03 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D03242E6BC for ; Mon, 21 Mar 2022 09:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=q8EBMwoNwuBouz 0Xkf/HfJBH6XF1wekxxBDWocbe3sA=; b=l9yO2KSTfNQqBcPWMmkEhCvHF2xnqg 5XkBnabzQ961G6ct5qiho3ibyS3N0UuYa+4OnF1yXjMQ3HqXyDaXT/SfWPes6X6O JPkgzuxla78ig+7SE2KafmIg3nIXvXZJ4+d/7Em7MyywOHQx0a45xs7+avfP9cve HA5FSNR2Xdkko= Received: (qmail 957921 invoked from network); 21 Mar 2022 17:12:33 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:33 +0100 X-UD-Smtp-Session: l3s3148p1@/huQw7zaLNkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 10/15] net: phy: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:18 +0100 Message-Id: <20220321161223.2837-11-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/net/phy/broadcom.c | 2 +- drivers/net/phy/mdio_bus.c | 4 ++-- drivers/net/phy/mdio_device.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c index 3c683e0e40e9..26a8665ab245 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c @@ -446,7 +446,7 @@ static int bcm54xx_resume(struct phy_device *phydev) /* Upon exiting power down, the PHY remains in an internal reset state * for 40us */ - fsleep(40); + usleep_autoyield(40); /* Issue a soft reset after clearing the power down bit * and before doing any other configuration. diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index 58d602985877..dfd4c2e1e1e3 100644 --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c @@ -570,10 +570,10 @@ int __mdiobus_register(struct mii_bus *bus, struct module *owner) return err; } else if (gpiod) { bus->reset_gpiod = gpiod; - fsleep(bus->reset_delay_us); + usleep_autoyield(bus->reset_delay_us); gpiod_set_value_cansleep(gpiod, 0); if (bus->reset_post_delay_us > 0) - fsleep(bus->reset_post_delay_us); + usleep_autoyield(bus->reset_post_delay_us); } if (bus->reset) { diff --git a/drivers/net/phy/mdio_device.c b/drivers/net/phy/mdio_device.c index 250742ffdfd9..9941a38c3631 100644 --- a/drivers/net/phy/mdio_device.c +++ b/drivers/net/phy/mdio_device.c @@ -132,7 +132,7 @@ void mdio_device_reset(struct mdio_device *mdiodev, int value) d = value ? mdiodev->reset_assert_delay : mdiodev->reset_deassert_delay; if (d) - fsleep(d); + usleep_autoyield(d); } EXPORT_SYMBOL(mdio_device_reset); From patchwork Mon Mar 21 16:12:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787499 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47FE3C43219 for ; Mon, 21 Mar 2022 16:12:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350840AbiCUQOH (ORCPT ); Mon, 21 Mar 2022 12:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350872AbiCUQOD (ORCPT ); Mon, 21 Mar 2022 12:14:03 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8ED02E08B for ; Mon, 21 Mar 2022 09:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=7PuDj/QvUlUETX QKpnDRaKbIKjsepWpqguWN/JmA+9c=; b=v38BD8DOtXp5s4tRiDWeEbm0XfBKrl UBSa7ZUb1i+/7TZnvziBhbaqcjdwTk7UQnzPKWnKnCBjP967vEKBVLpXy1GPLdRW 1rftaHJQd+RJguZBa+To+xGqyInOxYno0fJgE7VPzaWCIHBZS6nb5zmXHGX83tjD ozRfxZ8ty87dw= Received: (qmail 957937 invoked from network); 21 Mar 2022 17:12:34 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:34 +0100 X-UD-Smtp-Session: l3s3148p1@kQeYw7zaLtkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 11/15] net: wireless: realtek: rtw88: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:19 +0100 Message-Id: <20220321161223.2837-12-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/net/wireless/realtek/rtw88/rtw8822c.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822c.c b/drivers/net/wireless/realtek/rtw88/rtw8822c.c index 35c46e5209de..01e934c7b97f 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822c.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8822c.c @@ -1476,12 +1476,12 @@ static void rtw8822c_txgapk_read_offset(struct rtw_dev *rtwdev, u8 path) rtw_write32_mask(rtwdev, REG_IQKSTAT, MASKBYTE0, 0x0); rtw_write32_mask(rtwdev, REG_TX_TONE_IDX, MASKBYTE0, 0x018); - fsleep(1000); + usleep_autoyield(1000); if (channel >= 1 && channel <= 14) rtw_write32_mask(rtwdev, REG_R_CONFIG, MASKBYTE0, BIT_2G_SWING); else rtw_write32_mask(rtwdev, REG_R_CONFIG, MASKBYTE0, BIT_5G_SWING); - fsleep(1000); + usleep_autoyield(1000); rtw_write32_mask(rtwdev, REG_NCTL0, MASKDWORD, cfg1_1b00[path]); rtw_write32_mask(rtwdev, REG_NCTL0, MASKDWORD, cfg2_1b00[path]); @@ -2905,7 +2905,7 @@ static void rtw8822c_do_lck(struct rtw_dev *rtwdev) rtw_write_rf(rtwdev, RF_PATH_A, RF_SYN_CTRL, RFREG_MASK, 0x80010); rtw_write_rf(rtwdev, RF_PATH_A, RF_SYN_PFD, RFREG_MASK, 0x1F0FA); - fsleep(1); + usleep_autoyield(1); rtw_write_rf(rtwdev, RF_PATH_A, RF_AAC_CTRL, RFREG_MASK, 0x80000); rtw_write_rf(rtwdev, RF_PATH_A, RF_SYN_AAC, RFREG_MASK, 0x80001); read_poll_timeout(rtw_read_rf, val, val != 0x1, 1000, 100000, @@ -2915,7 +2915,7 @@ static void rtw8822c_do_lck(struct rtw_dev *rtwdev) rtw_write_rf(rtwdev, RF_PATH_A, RF_FAST_LCK, RFREG_MASK, 0x0f000); rtw_write_rf(rtwdev, RF_PATH_A, RF_FAST_LCK, RFREG_MASK, 0x4f000); - fsleep(1); + usleep_autoyield(1); rtw_write_rf(rtwdev, RF_PATH_A, RF_FAST_LCK, RFREG_MASK, 0x0f000); } From patchwork Mon Mar 21 16:12:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787503 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 769C5C4332F for ; Mon, 21 Mar 2022 16:12:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350863AbiCUQOK (ORCPT ); Mon, 21 Mar 2022 12:14:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350881AbiCUQOF (ORCPT ); Mon, 21 Mar 2022 12:14:05 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37A8069280 for ; Mon, 21 Mar 2022 09:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=+KiW+E9NEMICeV K83Xl2pi+C2Euq72aBGI4Tqe0sVeQ=; b=ljR21KweHPVUQu+sGl5UOoVKOKaRjo xxC3gYMR+763vr2gJxdzaHOrW76MteKAhyPm8XBkgJDmh+0YZ6HCc8/J1vn1Ioqz UfMvWkAlbLGFqS2e7g9FVxXIGslZq0LbSj9l3JaX13ywkD7qtzTEIwEZ3K705KbG DbYtku5d0hM8s= Received: (qmail 957966 invoked from network); 21 Mar 2022 17:12:34 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:34 +0100 X-UD-Smtp-Session: l3s3148p1@dfyfw7zaMNkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 12/15] net: wireless: realtek: rtw89: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:20 +0100 Message-Id: <20220321161223.2837-13-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/net/wireless/realtek/rtw89/fw.c | 2 +- drivers/net/wireless/realtek/rtw89/mac.c | 6 +++--- drivers/net/wireless/realtek/rtw89/pci.c | 2 +- drivers/net/wireless/realtek/rtw89/rtw8852a.c | 4 ++-- drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.c | 8 ++++---- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw89/fw.c b/drivers/net/wireless/realtek/rtw89/fw.c index 8a57b75b07c0..a357756cf3a5 100644 --- a/drivers/net/wireless/realtek/rtw89/fw.c +++ b/drivers/net/wireless/realtek/rtw89/fw.c @@ -396,7 +396,7 @@ static void rtw89_fw_prog_cnt_dump(struct rtw89_dev *rtwdev) for (index = 0; index < 15; index++) { val32 = rtw89_read32(rtwdev, R_AX_DBG_PORT_SEL); rtw89_err(rtwdev, "[ERR]fw PC = 0x%x\n", val32); - fsleep(10); + usleep_autoyield(10); } } diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c index b98c47e9ecfe..5fe7e2b9f5f7 100644 --- a/drivers/net/wireless/realtek/rtw89/mac.c +++ b/drivers/net/wireless/realtek/rtw89/mac.c @@ -867,7 +867,7 @@ static int rtw89_mac_sub_pwr_seq(struct rtw89_dev *rtwdev, u8 cv_msk, if (cur_cfg->val == PWR_DELAY_US) udelay(cur_cfg->addr); else - fsleep(cur_cfg->addr * 1000); + usleep_autoyield(cur_cfg->addr * 1000); break; default: return -EINVAL; @@ -3042,7 +3042,7 @@ int rtw89_mac_port_update(struct rtw89_dev *rtwdev, struct rtw89_vif *rtwvif) rtw89_mac_port_cfg_mbssid(rtwdev, rtwvif); rtw89_mac_port_cfg_hiq_drop(rtwdev, rtwvif); rtw89_mac_port_cfg_func_en(rtwdev, rtwvif); - fsleep(BCN_ERLY_SET_DLY); + usleep_autoyield(BCN_ERLY_SET_DLY); rtw89_mac_port_cfg_bcn_early(rtwdev, rtwvif); return 0; @@ -3425,7 +3425,7 @@ void rtw89_mac_cfg_sb(struct rtw89_dev *rtwdev, u32 val) FIELD_PREP(B_MAC_AX_SB_DRV_MASK, val) | FIELD_PREP(B_MAC_AX_SB_FW_MASK, fw_sb); rtw89_write32(rtwdev, R_AX_SCOREBOARD, val); - fsleep(1000); /* avoid BT FW loss information */ + usleep_autoyield(1000); /* avoid BT FW loss information */ } u32 rtw89_mac_get_sb(struct rtw89_dev *rtwdev) diff --git a/drivers/net/wireless/realtek/rtw89/pci.c b/drivers/net/wireless/realtek/rtw89/pci.c index 2c94762e4f93..9ab17bcfe8e0 100644 --- a/drivers/net/wireless/realtek/rtw89/pci.c +++ b/drivers/net/wireless/realtek/rtw89/pci.c @@ -1509,7 +1509,7 @@ __get_target(struct rtw89_dev *rtwdev, u16 *target, enum rtw89_pcie_phy phy_rate if (ret) return ret; - fsleep(300); + usleep_autoyield(300); ret = rtw89_read16_mdio(rtwdev, RAC_CTRL_PPR_V1, phy_rate, &tar); if (ret) diff --git a/drivers/net/wireless/realtek/rtw89/rtw8852a.c b/drivers/net/wireless/realtek/rtw89/rtw8852a.c index 6b75e4bc7352..3e369644680b 100644 --- a/drivers/net/wireless/realtek/rtw89/rtw8852a.c +++ b/drivers/net/wireless/realtek/rtw89/rtw8852a.c @@ -1139,7 +1139,7 @@ static void rtw8852a_set_channel_help(struct rtw89_dev *rtwdev, bool enter, rtw8852a_dfs_en(rtwdev, false); rtw8852a_tssi_cont_en_phyidx(rtwdev, false, RTW89_PHY_0); rtw8852a_adc_en(rtwdev, false); - fsleep(40); + usleep_autoyield(40); rtw8852a_bb_reset_en(rtwdev, phy_idx, false); } else { rtw89_mac_cfg_ppdu_status(rtwdev, RTW89_MAC_0, true); @@ -1635,7 +1635,7 @@ static u8 rtw8852a_get_thermal(struct rtw89_dev *rtwdev, enum rtw89_rf_path rf_p rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x0); rtw89_write_rf(rtwdev, rf_path, RR_TM, RR_TM_TRI, 0x1); - fsleep(200); + usleep_autoyield(200); return (u8)rtw89_read_rf(rtwdev, rf_path, RR_TM, RR_TM_VAL); } diff --git a/drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.c b/drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.c index c021e93eb07b..818719935e59 100644 --- a/drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.c +++ b/drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.c @@ -836,7 +836,7 @@ static void _iqk_rxk_setting(struct rtw89_dev *rtwdev, u8 path) rtw89_write_rf(rtwdev, path, RR_RXKPLL, RR_RXKPLL_OFF, 0x13); rtw89_write_rf(rtwdev, path, RR_RXKPLL, RR_RXKPLL_POW, 0x0); rtw89_write_rf(rtwdev, path, RR_RXKPLL, RR_RXKPLL_POW, 0x1); - fsleep(128); + usleep_autoyield(128); } static bool _iqk_check_cal(struct rtw89_dev *rtwdev, u8 path, u8 ktype) @@ -1272,7 +1272,7 @@ static bool _iqk_lok(struct rtw89_dev *rtwdev, rtw89_phy_write32_mask(rtwdev, R_KIP_IQP + (path << 8), MASKDWORD, itqt); tmp = _iqk_one_shot(rtwdev, phy_idx, path, ID_FLOK_COARSE); iqk_info->lok_cor_fail[0][path] = tmp; - fsleep(10); + usleep_autoyield(10); rtw89_phy_write32_mask(rtwdev, R_KIP_IQP + (path << 8), MASKDWORD, itqt); tmp = _iqk_one_shot(rtwdev, phy_idx, path, ID_FLOK_FINE); iqk_info->lok_fin_fail[0][path] = tmp; @@ -1777,7 +1777,7 @@ static void _set_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, rtw89_write_rf(rtwdev, path, RR_DCK, RR_DCK_LV, 0x0); rtw89_write_rf(rtwdev, path, RR_DCK, RR_DCK_LV, 0x1); - fsleep(600); + usleep_autoyield(600); rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_RXDCK, BTC_WRFK_ONESHOT_STOP); @@ -2072,7 +2072,7 @@ static void _dpk_lbk_rxiqk(struct rtw89_dev *rtwdev, rtw89_write_rf(rtwdev, path, RR_RXKPLL, RR_RXKPLL_POW, 0x0); rtw89_write_rf(rtwdev, path, RR_RXKPLL, RR_RXKPLL_POW, 0x1); - fsleep(70); + usleep_autoyield(70); rtw89_write_rf(rtwdev, path, RR_RXIQGEN, RR_RXIQGEN_ATTL, 0x1f); From patchwork Mon Mar 21 16:12:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787504 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71635C433F5 for ; Mon, 21 Mar 2022 16:12:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350776AbiCUQOL (ORCPT ); Mon, 21 Mar 2022 12:14:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350878AbiCUQOE (ORCPT ); Mon, 21 Mar 2022 12:14:04 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B84E69CD1 for ; Mon, 21 Mar 2022 09:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=ZF/5DkLLg4JB5G /b0aYVQ/D+wqP6oAiAQ+xCOCsTTQc=; b=IUEbapHp97buscEQL/BaRHHUTDr2Yy l5+rn7+1+m27S/cdp6+f1ZY/mD4cXumVba9ef/aRWGN/w2aXDYEUDl/2Z4yhMHaZ e8e7HZNmc4qQyelqAt5HxQaQb+qHrId37lWCBZjRh19WHUjzwPtT/NqwUsYKyRr6 A9kFogw/eB4FM= Received: (qmail 958006 invoked from network); 21 Mar 2022 17:12:35 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:35 +0100 X-UD-Smtp-Session: l3s3148p1@bTeow7zaNNkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 13/15] thermal: tegra: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:21 +0100 Message-Id: <20220321161223.2837-14-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/thermal/tegra/tegra30-tsensor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/tegra30-tsensor.c b/drivers/thermal/tegra/tegra30-tsensor.c index 9b6b693cbcf8..705981f74a8d 100644 --- a/drivers/thermal/tegra/tegra30-tsensor.c +++ b/drivers/thermal/tegra/tegra30-tsensor.c @@ -105,7 +105,7 @@ static int tegra_tsensor_hw_enable(const struct tegra_tsensor *ts) return err; } - fsleep(1000); + usleep_autoyield(1000); err = reset_control_deassert(ts->rst); if (err) { From patchwork Mon Mar 21 16:12:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787502 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26D20C433FE for ; Mon, 21 Mar 2022 16:12:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350905AbiCUQOK (ORCPT ); Mon, 21 Mar 2022 12:14:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350887AbiCUQOG (ORCPT ); Mon, 21 Mar 2022 12:14:06 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B16746D3A5 for ; Mon, 21 Mar 2022 09:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=5MrQJ81W3H7h1h lBoztx6HsQhX66IRi+nKSmYm1dJzo=; b=bvXH7IDmr9RE9lEbI2qCsyOOKylIuJ 85wLll12YLhvc4hJNmBYuHrqHgTsEpkDm1DJegePsaz4/AtOeXLqg5U+gqy6Jb1f cE6ZSG6zELtD9Rw4CvUBz4mfCijhmzijqPhpFiyI76h8UyrMG+kQPO87wsj/hEKE e3bBEdkk9Bhpw= Received: (qmail 958041 invoked from network); 21 Mar 2022 17:12:35 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:35 +0100 X-UD-Smtp-Session: l3s3148p1@tO6ww7zaNtkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 14/15] usb: chipidea: use new name 'usleep_autoyield' instead of 'fsleep' Date: Mon, 21 Mar 2022 17:12:22 +0100 Message-Id: <20220321161223.2837-15-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The function was just renamed to be easier understandable. No functional change. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet drivers/usb/chipidea/ci_hdrc_tegra.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_tegra.c b/drivers/usb/chipidea/ci_hdrc_tegra.c index a72a9474afea..767f13abfe91 100644 --- a/drivers/usb/chipidea/ci_hdrc_tegra.c +++ b/drivers/usb/chipidea/ci_hdrc_tegra.c @@ -189,13 +189,13 @@ static int tegra_usb_internal_port_reset(struct ehci_hcd *ehci, temp = ehci_readl(ehci, portsc_reg); temp |= PORT_RESET; ehci_writel(ehci, temp, portsc_reg); - fsleep(10000); + usleep_autoyield(10000); temp &= ~PORT_RESET; ehci_writel(ehci, temp, portsc_reg); - fsleep(1000); + usleep_autoyield(1000); tries = 100; do { - fsleep(1000); + usleep_autoyield(1000); /* * Up to this point, Port Enable bit is * expected to be set after 2 ms waiting. From patchwork Mon Mar 21 16:12:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12787501 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21E50C433EF for ; Mon, 21 Mar 2022 16:12:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350869AbiCUQOI (ORCPT ); Mon, 21 Mar 2022 12:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350893AbiCUQOG (ORCPT ); Mon, 21 Mar 2022 12:14:06 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2EFD6E4D0 for ; Mon, 21 Mar 2022 09:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=jEz2JWGFyUlDzW pfIqps0dXpIbCRQKaLSS5PMn2F+2E=; b=FLZH/45CYwgJsS+RdBouMD3gfVgMPJ FazvroCNq3fvPRCocLvcZLkK0ABFtem4TUW8wqUyGBi4CI71tWVOycgHO8uypnEC nKEBP9YHMf9DnudZXgKtNsedhRs9jww2Nurv+61T70dmoD7ajPfJaRGVLLqtsIMi wwY+iI6i4fw3o= Received: (qmail 958078 invoked from network); 21 Mar 2022 17:12:36 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Mar 2022 17:12:36 +0100 X-UD-Smtp-Session: l3s3148p1@u9y4w7zaONkgAwDPXxCoAIeNYiWy88zT From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Heiner Kallweit , Wolfram Sang Subject: [RFC PATCH 15/15] delay: remove the fallback for fsleep Date: Mon, 21 Mar 2022 17:12:23 +0100 Message-Id: <20220321161223.2837-16-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> References: <20220321161223.2837-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org All users are converted to usleep_autoyield now. Signed-off-by: Wolfram Sang --- RFC, please do not apply yet include/linux/delay.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/delay.h b/include/linux/delay.h index d0919f52fec8..f1bf8d4103c0 100644 --- a/include/linux/delay.h +++ b/include/linux/delay.h @@ -88,6 +88,4 @@ static inline void usleep_autoyield(unsigned long usecs) msleep(DIV_ROUND_UP(usecs, 1000)); } -#define fsleep usleep_autoyield - #endif /* defined(_LINUX_DELAY_H) */