From patchwork Fri Nov 15 21:26:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877139 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 B8EFFD68BD7 for ; Fri, 15 Nov 2024 21:27:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C85938D0013; Fri, 15 Nov 2024 16:26:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C100F8D0015; Fri, 15 Nov 2024 16:26:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9CEBB8D0013; Fri, 15 Nov 2024 16:26:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 7AB3D8D0014 for ; Fri, 15 Nov 2024 16:26:52 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 38B1AAC627 for ; Fri, 15 Nov 2024 21:26:52 +0000 (UTC) X-FDA: 82789612962.12.55A389B Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf15.hostedemail.com (Postfix) with ESMTP id 84BFBA0036 for ; Fri, 15 Nov 2024 21:26:03 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=OvSN4ExT; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf15.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=MZD84UDGPneDJVJGl9pw1yAQEiyimX+UOhqEoWqAsyn9XotWttfpEckLnejdZql84xzWut qjt7oigZrRysEY/G13AfiJkEM3/DNsJUEejWksSTLf7IHm9INkTkcCI7JbEkNuW/7b0gbI Qy6gbcD2cxDkkMoAtmSuD75uvuih+7o= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=OvSN4ExT; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf15.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=kyIMdoD81WSCHIuRs3t1IxAuP6vGJ5R59VD+r/6KKK0=; b=ZRl3hOEvPrTQx4w2W/3zKIXsQmZghMFy49Dz8Oh4ugCZivQzG7vayAe/qL7Kdhau3Cw6Iu 9jt4pJganGqOn0j5EGPx33RT6n5q1osslyoE6TEgtm15pxtMsnrLX7prAEjM7fCS7BtiGw smlzEbgN35qYYxXctJra8O4LNhP+T4g= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id E068E2064AE1; Fri, 15 Nov 2024 13:26:44 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E068E2064AE1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706005; bh=kyIMdoD81WSCHIuRs3t1IxAuP6vGJ5R59VD+r/6KKK0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=OvSN4ExTI3ztYwv8z22+okCfYqet5Vamjrrd8DLniE8bXBLrrqlExhm9XqqhqVQAv K9X4eAD6Lklhy7dtiZRCgteR1YNNFWOyXJy0qOlBw+SNmEx9GYlOniMke213AVuk1H UgCfCoB89XARJTc4CqTz96UEBf2hkM8Effwv9vsg= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:34 +0000 Subject: [PATCH v2 17/21] staging: vc04_services: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-17-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-Stat-Signature: 9kc1ht4bhqnq4yiyyik98deuu71ix3co X-Rspamd-Queue-Id: 84BFBA0036 X-Rspamd-Server: rspam08 X-Rspam-User: X-HE-Tag: 1731705963-954088 X-HE-Meta: U2FsdGVkX18JlPSj6nAdetOrpowRZxtV1Jupyhb1H8Mzv16O4teKQhI6D5ACFwqRff8lAg+0JxFYfSGzQ3s76ssxHECt21+3lFhrN2KdiHsTBN8Cckl39U/YSHCvoG74BffF1wRla66drJ6EqteQcQK5v3QU2u51lpey/sZ3cqE7DnbpRr4cAuwsD5pIahPoQBwx7H08a9HhFkhBJvOeZkXJeSAfTOdwDugl9goYUt6DL6bSrTCcjzX5QVK05mEiK+uARt6rVMNqzD7NVovk6Tk+kFeKbFdnxOT1TDe7hImdaWBkKHu2GZyOqsuM6m0hm5xXHfs2+k1PwKnYkdktyAKrnRlrceeNgAnZOcLBt1k4oqLz8PNoW52lm0RCXYJF4nSK1h1l892jE4CK2sf6HHExsK4fThPA9+ud5QwZ7PdRB3bFVgri9SN1yLWHYyy4EH2HZ4sMrgquhr6Y4fqU2j0raqBtRsvTmuUkLbF+B0IkdlhY24HaG/hZMga8/lklWJeeZ+oZM0zSVmkCphRNM0FEiLt3mLTNvw92do8TnEqC9OFeiRj+KyKCIPaJ7PMep2DiLbFtGsT++duRoHFpsvRLGi8dwSu8B/waWRP2ACzdgv2KEnPiOHHTpgQZahqA8qzTYl40aalQrTo8O7D3Sm5N0xeLSBnFOQzD9o96/JGUOUl3+T9JlL9X/eAZTJlxocZHH9vFmfmBuGyYdTpfatmnP9yXAjfy1JR4aGACu3RABzOAa5kuTn611dKkiuPmGeZ8t4tKeb2P6CTZ5ZdQhA2OLUkNWmBTSlaMzfJAAMf1npHLsFFV+eT3022nq7KtkGvyGK5OeO63YUmjGUupvftlfxyiaUyL3QbebXUDYjQ4KSg75pSxR8fedkECgAJ4EQAuTw0xTBg0foPp4252sPNwHOsJ38mactvVwM1BAo0Du2A6pnmC8/gVG1P178y3e8d5BuArkqnFVxJ1xYJ KBP4mdb2 dg3XOD22EAualeeF/mGehnulnYi2lRlQYkhr4Ct6cXDwc3fHSrcHQfZHKd8tUD28n/oacGI72nNVax3J/bQucul4TG86ukip7C/AXTJgJVQFXsp9empSk0JC/LTyCACJp1c1kwNKbA6mv/Y3vOopRXDGeIdX44Z64lJLN7HLcIKQP+/g508yiDz8Q33eDG8B2mCmEXnw9Pl4AOBoQzV4tRYK0q9+P8UvgFXcrUD3t3L20iHen6lPIEMM6H0OcIQ+Tz43R8z+mmwYACol0SqoBR7yfLA2BnCmQGg/n83O2SNh4MltkXTR4cBXk9JacXcbrR6dJ5MFFSnKmhok0oerv+22XtQenRDMUw39bhItBI1qqmGAzetw+tmf/rD3xsZuMxQ//hEsa0dJ5s0LObEMqPQc4lQoFRvYj3RIwOwCwXxZp2LevVqQYcsQg8SL1r6liZYQA 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 --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c index 133ed15f3dbcc07dc353c22d8522e11a08ee6f46..6bb2562e071c4e623e51852860c682e047f823df 100644 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c @@ -59,7 +59,7 @@ static int bcm2835_audio_send_msg_locked(struct bcm2835_audio_instance *instance if (wait) { if (!wait_for_completion_timeout(&instance->msg_avail_comp, - msecs_to_jiffies(10 * 1000))) { + secs_to_jiffies(10))) { dev_err(instance->dev, "vchi message timeout, msg=%d\n", m->type); return -ETIMEDOUT;