From patchwork Fri Nov 15 21:26:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877137 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44EDBD68BD7 for ; Fri, 15 Nov 2024 21:27:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CD43F8D0012; Fri, 15 Nov 2024 16:26:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C81F38D0011; Fri, 15 Nov 2024 16:26:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A84558D0012; Fri, 15 Nov 2024 16:26:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 88A588D0011 for ; Fri, 15 Nov 2024 16:26:51 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 36B7D140129 for ; Fri, 15 Nov 2024 21:26:51 +0000 (UTC) X-FDA: 82789613382.11.CE55567 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf06.hostedemail.com (Postfix) with ESMTP id C91A518000B for ; Fri, 15 Nov 2024 21:26:16 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=oW00wAHd; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf06.hostedemail.com: domain of eahariha@linux.microsoft.com designates 13.77.154.182 as permitted sender) smtp.mailfrom=eahariha@linux.microsoft.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731705830; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=tK04utDeNCseuvXH6irwCudSXxUYSbugurANWfhj/RA=; b=Y1jY48cWrx2EDnpQC5iUZCSOuLt4CUIuRJZrDSpMeJhHRLoP4C9nIiXQeik9bZKqHoVrQS EdKcnZt3T3NmqeS/UWkumEjnFKd0Mv0FWAWvyCCfRpr/X54lGe8p3glYbJ5C5ooEGzrW+u 9SP7GAuljG3aEie/cR+to0xAhig4xYg= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=oW00wAHd; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf06.hostedemail.com: domain of eahariha@linux.microsoft.com designates 13.77.154.182 as permitted sender) smtp.mailfrom=eahariha@linux.microsoft.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731705830; a=rsa-sha256; cv=none; b=2BlaYAgmo7aYpCSPQLpgzqvKTk3xvaWjC8rBRfzNPCVUsXcSiJ7JFBpseeIUpQNXAVejL5 6EO9/6WEh0hT0IVgt8nRPxqN9nXTcBHrIwldSvUkZBO2XzX8IFGDdGT7T8/7v/xTEmju/H H1l3s9QKNv2/eHrPbZeIafo5pZr7M7M= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 750BA2383EC7; Fri, 15 Nov 2024 13:26:44 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 750BA2383EC7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706004; bh=tK04utDeNCseuvXH6irwCudSXxUYSbugurANWfhj/RA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=oW00wAHdTMgD3/TVNA1hZU5X5M4jnpeZUWcg0SOafgo7IxhPi77X6wrerdoxYG1Qb /d2D6KpobO9ihzhc6ZJVrlOxlz5U66VAL6WTsDlCtIaa36R7/WidCC3/10uBG5CLMB DbALShHl/X1H/ANvKovErIH2SEM7ywfupUlqJSTY= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:32 +0000 Subject: [PATCH v2 15/21] wifi: ath11k: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-15-911fb7595e79@linux.microsoft.com> References: <20241115-converge-secs-to-jiffies-v2-0-911fb7595e79@linux.microsoft.com> In-Reply-To: <20241115-converge-secs-to-jiffies-v2-0-911fb7595e79@linux.microsoft.com> To: Pablo Neira Ayuso , Jozsef Kadlecsik , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Julia Lawall , Nicolas Palix , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Ofir Bitton , Oded Gabbay , Lucas De Marchi , =?utf-8?q?Thomas_Hellstr=C3=B6?= =?utf-8?q?m?= , Rodrigo Vivi , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jeroen de Borst , Praveen Kaligineedi , Shailend Chand , Andrew Lunn , James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , =?utf-8?q?Roger_Pau_Mon?= =?utf-8?q?n=C3=A9?= , Jens Axboe , Kalle Valo , Jeff Johnson , Catalin Marinas , Andrew Morton , Jack Wang , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Greg Kroah-Hartman , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Xiubo Li , Ilya Dryomov , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , Jaroslav Kysela , Takashi Iwai , Lucas Stach , Russell King , Christian Gmeiner , Louis Peens , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, cocci@inria.fr, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-scsi@vger.kernel.org, xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, linux-mm@kvack.org, linux-bluetooth@vger.kernel.org, linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, ceph-devel@vger.kernel.org, live-patching@vger.kernel.org, linux-sound@vger.kernel.org, etnaviv@lists.freedesktop.org, oss-drivers@corigine.com, linuxppc-dev@lists.ozlabs.org, Anna-Maria Behnsen , Easwar Hariharan X-Mailer: b4 0.14.2 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: C91A518000B X-Stat-Signature: 3kqd9mfrowwzq6nh77s3gpyh8igni8bn X-Rspam-User: X-HE-Tag: 1731705976-931653 X-HE-Meta: U2FsdGVkX1+c12b2oKsYQYWc4bNFiOezEzMTSax/UMkoeTmetweJ+YCkDJvDHNR7hw8yqbfuHXJrGg/GEs8pEBFqItKu8suBvjvE0sVFYVUsbBdrHji0f1NhqSyGxH3hmGOxtsGQU53l8bgMlRuYzqANBOBfl1iePS9QKwhbm8DcAxdL7I+w91quNZtnAHgk4n7VuAtmIsF6Dc4sO3qsO8/v8h1uIMWvUvX+rgneIScYLOlhusBZFmTV/1wN21RPKzeNEgv5SGXmbSfy4BW8a3vg52aMcG1+FooPzWDa4XkAhaOZaDPeAdT7Yck2wm5tjOd7UauVujjydv4w43wajL2+npNMxKQBdSMr0AQsnx0LOHvcoaHTs7pi6C9BdYvsW4MQfxmKpHN3zrd3pBtJztLKbibYbwXyMX1eXtQ2dAlgd9rnQTpXnuvejMFs1CFG/sFEc2KqRdAVF/FLzgJTNBhhi3cvHFuJ2b1DfdMyjEc2nqq70sSgXKKaT/3SsyBvJmQlIFnwKo0INjjle2n+rW7tjsOYArTu1TJXgovRqwKwuMVLxv1GSSIfvNzzt0J3XkPzyETDutMpevLJqCAh8LuGidTtmbhE3pJtCVAQNwM6logOCXQuHO7nr20fvu2E3MXH4BJP6OPQwD5vtRG5KgZtAyOEUm6NA/yEhmkgMOJhECDk50SNhASbm1G7K8ZUglBjJu1hxHT+cguOvyyW0/5eiuGnpPAlflfq+TxiRTP0F+edT83BoaOpf6KifZjCaOmARe0Kd6Ze0wFUpPJBdKD8k8t0uRfTFsgUqJYk7k7SP0uq5YPJ7pNKC8RQ1ZlPjHFcqSaSFM/BFSEc86vjD4qSpifOa6FIBkG1E34ZP9yeSxphAXbMmsh33hyP3f7+rkaSRmYxGEF7IQrSLh1B1dG9ExLNioipIWp3C5Cp8YDGV5AcSBc+PSNPc5g1nsk7ajfI0j9AzIEuGjKq7LQ w/pbBWqO m7lMgkantJvCce03b9xS5/cLVOdB2Bvd5xoK8lIA6T3EqxorcKZiv2msUzEbBU+obqF6V9FJBFfVyNdhxUK9+N5kYeFdB6pwJueWiaTjpkI7NUqwA+FkZdyqmjkHhamJ7zpnLTQFvzSgimkuNQIDTpRPlNCih/r6X3byDsJ7Nmp0WQzWoIiSJcQpYiXjO+A+6HzjGJrgiEzyrbKBozoPp/5YZgR9gc9KJGyE7O8SsYMsKZ2sS14yJ937fD8CLSFqF/BACSZCv0hkzVxhDqAKw/PIM3Ziuc/UFviprzBX1csvNQDNk0v0ZbGBtQf+Z/TEWqyM7RDAkNhOFHWmQwH8AUqQcTuoI4TdXmZkuzEfpq5XP0cJVOJ7P5uDRj1qgWIWjiqjbKlOg6old2E54pdhx7Z4PPSKDTcCYPIHE1pwmxnqDSUQDmmxur2Zqkw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan Acked-by: Jeff Johnson --- drivers/net/wireless/ath/ath11k/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/debugfs.c b/drivers/net/wireless/ath/ath11k/debugfs.c index 57281a135dd7fa6b8610636f47873c8bba21053c..bf192529e3fe26a91e72105a77b4c6f849b905ec 100644 --- a/drivers/net/wireless/ath/ath11k/debugfs.c +++ b/drivers/net/wireless/ath/ath11k/debugfs.c @@ -178,7 +178,7 @@ static int ath11k_debugfs_fw_stats_request(struct ath11k *ar, * received 'update stats' event, we keep a 3 seconds timeout in case, * fw_stats_done is not marked yet */ - timeout = jiffies + msecs_to_jiffies(3 * 1000); + timeout = jiffies + secs_to_jiffies(3); ath11k_debugfs_fw_stats_reset(ar);