From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C13BC433FE for ; Tue, 28 Sep 2021 10:54:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5336561131 for ; Tue, 28 Sep 2021 10:54:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240281AbhI1K4S (ORCPT ); Tue, 28 Sep 2021 06:56:18 -0400 Received: from mga01.intel.com ([192.55.52.88]:49172 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240268AbhI1K4Q (ORCPT ); Tue, 28 Sep 2021 06:56:16 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10120"; a="247178588" X-IronPort-AV: E=Sophos;i="5.85,329,1624345200"; d="scan'208";a="247178588" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2021 03:54:36 -0700 X-IronPort-AV: E=Sophos;i="5.85,329,1624345200"; d="scan'208";a="437162852" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.163]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2021 03:54:33 -0700 Received: by lahna (sSMTP sendmail emulation); Tue, 28 Sep 2021 13:54:31 +0300 Date: Tue, 28 Sep 2021 13:54:31 +0300 From: Mika Westerberg To: Prashant Malani Cc: linux-kernel@vger.kernel.org, bleung@chromium.org, Andy Shevchenko , Hans de Goede , Mark Gross , "open list:X86 PLATFORM DRIVERS" Subject: Re: [PATCH 1/3] platform/x86: intel_scu_ipc: Fix busy loop expiry time Message-ID: References: <20210928101932.2543937-1-pmalani@chromium.org> <20210928101932.2543937-2-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210928101932.2543937-2-pmalani@chromium.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 03:19:30AM -0700, Prashant Malani wrote: > 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