Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3023613pxb; Mon, 18 Oct 2021 06:48:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEGFczLYzp+8cFFRiFjEFedc1oZiScjmZ3AV+XcqupLNpieMAnn6SJhRBvXEqcMON34EIA X-Received: by 2002:a05:6a00:1703:b0:44c:caeb:482b with SMTP id h3-20020a056a00170300b0044ccaeb482bmr28557635pfc.60.1634564929873; Mon, 18 Oct 2021 06:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634564929; cv=none; d=google.com; s=arc-20160816; b=il6dE+d3nJXUdJ1ZWYBLw1DAGfQUzSKynRo9kz0J2Tn6SkHKWX8dU38IaQEmtfc+NE J3Sb8NpVWoTsxtSAzejczED7R5+tpIGYSExZRFz2maNZg6uYLQ9edhzJm1JhQgmkEzLU tKgTlqsEo4ChJsV6/DRl7dZgp4lxSkqtWhqEBOqfKwShKjVxcH4oCE7e6YiqQ+rHqENl 8Vcf/BLWJGn0+khkqHJlBYKIWcP0ncsR7E7jEOa6+awaHMzyM96NxfHu3A18rApT/9+e wVjBIIzFu5cp2u4isIifqGfezWA6CmNpWfeDJT38TXJ8MrbYpBxW4tuK+aUoQLAoFLch lX6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qtwAxly3TtTREM2mtSXCnaAcdw7gTK+qMun3yRqdQiI=; b=Xyk/Bn+C+nwif/dZ2ZccUegw7ad6lexw0iiZ6iYiE2WF4IiYyQ8rLkey7R51Ew/hWN C2oJGwx4s2UM/kb3Fy/Bmf4zpJNlsQa7I54msMd6REGFTuuX+m7OczBjpPsVVQeBVnDZ KfUUEGzWixcwlThHAMBVmzWmtyvbwG8mecBiRG1hvRfE+2UY7h32OfrhUii11DF06Xrr gwEniuW96RnlD31YahInK7tmXbsGsfxJ9C1JRswlXGfu41QYNbA4WgRPobTtHytTmS90 rTquuxMvTJa/nWgdtXofcJtOKB4wWQKBK/00DXfUEGTqElpHYu9alF1bpbCJwYSG3QsP VN6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kO9ypItm; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw10si22923701pjb.168.2021.10.18.06.48.36; Mon, 18 Oct 2021 06:48:49 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=kO9ypItm; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233320AbhJRNtX (ORCPT + 99 others); Mon, 18 Oct 2021 09:49:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:49074 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232846AbhJRNrX (ORCPT ); Mon, 18 Oct 2021 09:47:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 24DF7613D0; Mon, 18 Oct 2021 13:36:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564180; bh=PWW+rabaX/wNvoiL7AcF8POQE8b0xp3dMVs2LjsWSe4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kO9ypItmP6HktJ2ieclq3XwYndsCoRVdvKPIHf6BvdJUQGqB9VrftYEw5v6rQmfOa 4vvWUfThW45+72Xa1yTH22vsdVDdpO6oPuKxK+TLekOBquJpsPUsrmp5g+J6yAw9QV iCEJX3A7NecKCXcf483pzZjJzz5wf9jf/nNRLX7Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Prashant Malani , Benson Leung , Mika Westerberg , Hans de Goede Subject: [PATCH 5.10 096/103] platform/x86: intel_scu_ipc: Fix busy loop expiry time Date: Mon, 18 Oct 2021 15:25:12 +0200 Message-Id: <20211018132337.969316573@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132334.702559133@linuxfoundation.org> References: <20211018132334.702559133@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Prashant Malani commit 41512e4dc0b84525495e784295092592adb87f1b upstream. The macro IPC_TIMEOUT is already in jiffies (it is also used like that elsewhere in the file when calling wait_for_completion_timeout()). Don’t convert it using helper functions for the purposes of calculating the busy loop expiry time. Fixes: e7b7ab3847c9 (“platform/x86: intel_scu_ipc: Sleeping is fine when polling”) Signed-off-by: Prashant Malani Cc: Benson Leung Reviewed-by: Mika Westerberg Link: https://lore.kernel.org/r/20210928101932.2543937-2-pmalani@chromium.org Signed-off-by: Hans de Goede Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/intel_scu_ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/platform/x86/intel_scu_ipc.c +++ b/drivers/platform/x86/intel_scu_ipc.c @@ -232,7 +232,7 @@ static inline u32 ipc_data_readl(struct /* Wait till scu status is busy */ static inline int busy_loop(struct intel_scu_ipc_dev *scu) { - unsigned long end = jiffies + msecs_to_jiffies(IPC_TIMEOUT); + unsigned long end = jiffies + IPC_TIMEOUT; do { u32 status;