Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3040661pxb; Mon, 18 Oct 2021 07:07:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgjs5YgxU/XX9Z49SpN0xEf6451m0oNBMCXg/cHbM0P1EbZFPv6On/VFKkcxmWtthWwVq9 X-Received: by 2002:a63:b349:: with SMTP id x9mr23811471pgt.421.1634566077667; Mon, 18 Oct 2021 07:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634566077; cv=none; d=google.com; s=arc-20160816; b=E/dtrcxugcuxTkTSyuP6Gz6Y8g/KpIGjBuf09uGbK2kr2nqImtEKAnk718XhSuSxzO b9NgLSFn2glPK37hCT7P4xHnjC9J3mnEvhLl6ezDSMxCGGU6DrsgVZ19fNGhouiE6LpU CFu8R2kYUH+rAB8Er5MltHCmehQJGU9fBFU9fXWYK/Iq9irtLQwZtqgWJ1gtx6w+TBwk FCEFvJzlvQl6/9S8LLcUjF1rXiwvBDE8kC2j/cc+kpwd5+DHxa5BmVSbMX6u5e2Dkxcf EE6d0ayivizhPA6ceWPNv5hCDDPp+kYNmrUBXYZArovPnueJY7qNvzvlACfkDTlkBkCm g1eg== 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=i1QJbdbVFPhVkNLrZOaJ2HxqGZsV3pR++VJ9UbyWRYLXEr+fFtzVwfir8SJLaCMKRj wp6Zd0aDFb+1JcxVlxOJa6tI7Az9B76VAcbKdgibc820DiPthMQaTDhYlQPbfgGCnHnX xxJWfuRBxp3fW/RvzdPoBGMx+ML2RQcRRZVEpiCYUNnLvf7FOJ2WMJsVVBqkIzAiQIwc jqQhxkHf+VaKaE8368sofH2JwOV0qFUnbv1Ks9kYUE/3nm4hIkisLrGJg0Al1lmnmVMy c89/5RBX8QFqrJYDIL59oQsxCND0uXn8JA6WIdyxOffT6P0kbRRdPiMsCasIRj+eLwae cUwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jgA1sK0H; 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 z34si288444pgl.161.2021.10.18.07.07.44; Mon, 18 Oct 2021 07:07:57 -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=jgA1sK0H; 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 S233528AbhJROHM (ORCPT + 99 others); Mon, 18 Oct 2021 10:07:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:40702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233784AbhJROBo (ORCPT ); Mon, 18 Oct 2021 10:01:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C8D3B6147F; Mon, 18 Oct 2021 13:42:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564568; bh=PWW+rabaX/wNvoiL7AcF8POQE8b0xp3dMVs2LjsWSe4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jgA1sK0HDgwAuh0lXBPJpTlOmLH86UwHuQwXeefRVXAmA4mKuo4otSd6aw6egxCiH fJvcJ9eUt0VuDTlPjydPtk7t1wspndTIMWnSyKGOUrsVkqrseuz/LacAhDWcyLTEZV uOyCWVHOO2L/rT1R1yqzpKVUJ60pDu1t6glriI+A= 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.14 137/151] platform/x86: intel_scu_ipc: Fix busy loop expiry time Date: Mon, 18 Oct 2021 15:25:16 +0200 Message-Id: <20211018132345.119870795@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@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;