Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5261665ybb; Tue, 24 Mar 2020 13:58:13 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvH/qgHPo2u2IHbE8vwIfCx/rSO2URGiR67HEFKI7YB+zu6Ef0zGokD9pCNdTVobyTapuvj X-Received: by 2002:aca:de42:: with SMTP id v63mr104629oig.99.1585083492919; Tue, 24 Mar 2020 13:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585083492; cv=none; d=google.com; s=arc-20160816; b=XxLoBsWBgoR5eRhS4bQ7OWJg7z14VyaLSUGaEFPauFFK2DjyGX/rFL0hY8H6n4ZFDx musmFZysXWegbqO+3DtkZmIN9r0I1jkpb4L27wvpetvwUmiuv41DRwMh01Ows9WDLBcP bRmtg1fSlIaxr3XBl4E1SIdYD9UF1t/vaGaFomqF/gBTi2wlPnZKS2coeehEjNFH+H23 +6p+WsvdWAD4zYUizo2LFoL38oPj/VUQ9q/mAED7k3o6a/f2EAID6f0Gsk61RAggCHzH yBeweikQ/e5lAaT7hjB/mJ8Wwlz0+45ocv6IlLUdiExtJcLD3ywUt2VnHYVrKefo7D7c uSGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SR1Mdp0ITEucv1sTaLYRBBNf8nme1NpTM+ZVxZFQlyk=; b=pmw8GcdAlZRQ8JUUdUN3StrpyaF/jRtmSq1gXgmJC+XwN++f/fCBAfLYnFjUeElVRm 0+/XurmFsvuG8r6Lz/RE5c+Rc4gYv0bORXs5WkjVxA9NPyQS2sVXYvlW7y1Q77lgKTjA FFZAXQJcj9V+ooVIfPTKihv8qaT/Cl1OdYHKx+ap/p8sflUe83EFJ3tlLplj/0XxiPy8 6RHLeNteFdVCIhW7sid08HzgZxNc6Wsn/TCEYTO1P6t6GhtEOvrbQpZFvjIunIbxO8F0 No26C1TgtfCRSgjCAJ5i/xa5HQO56vqYYIwG3Q8ANTv4QJy92Dt0MET2sD/1FO3XUKt8 jTcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l75si9232192oig.59.2020.03.24.13.58.00; Tue, 24 Mar 2020 13:58:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727664AbgCXU5f (ORCPT + 99 others); Tue, 24 Mar 2020 16:57:35 -0400 Received: from sauhun.de ([88.99.104.3]:54988 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgCXU5e (ORCPT ); Tue, 24 Mar 2020 16:57:34 -0400 Received: from localhost (p54B3339A.dip0.t-ipconnect.de [84.179.51.154]) by pokefinder.org (Postfix) with ESMTPSA id 4AF8B2C08EF; Tue, 24 Mar 2020 21:57:32 +0100 (CET) Date: Tue, 24 Mar 2020 21:57:31 +0100 From: Wolfram Sang To: Kai-Heng Feng Cc: ajayg@nvidia.com, Andy Shevchenko , "open list:I2C CONTROLLER DRIVER FOR NVIDIA GPU" , open list Subject: Re: [PATCH v3] i2c: nvidia-gpu: Handle timeout correctly in gpu_i2c_check_status() Message-ID: <20200324205731.GA7641@ninjato> References: <20200324152812.20231-1-kai.heng.feng@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <20200324152812.20231-1-kai.heng.feng@canonical.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 24, 2020 at 11:28:11PM +0800, Kai-Heng Feng wrote: > Nvidia card may come with a "phantom" UCSI device, and its driver gets > stuck in probe routine, prevents any system PM operations like suspend. >=20 > There's an unaccounted case that the target time can equal to jiffies in > gpu_i2c_check_status(), let's solve that by using readl_poll_timeout() > instead of jiffies comparison functions.=20 >=20 > Fixes: c71bcdcb42a7 ("i2c: add i2c bus driver for NVIDIA GPU") > Suggested-by: Andy Shevchenko > Signed-off-by: Kai-Heng Feng Looks good to me, thanks Andy for the suggestion! Waiting for the Rev-by from Ajay (driver maintainer). --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl56dDcACgkQFA3kzBSg Kbb8uBAAr4Rj+iNo4B83HNFlyS8aXWxRCoZFedr5/tcsGUWZpn/P9QnqEUwZytqA Duz4QoJc/qKZh1T9xW2f1LLDNC91v5SUVfDaVSDtvgnoq883ZwywMoX5XSwXBxKR zY7kRu9VI69omQS9HpeA0mXMMiaTTdj5FTJQWalhX23YwTevJ7uMyzaQzDb6Th55 pFYL1uAqAT/5s5qhrr18wZAR0IH2MtxVSQRs+Z3a5ZdmOXMNPpqt9Bdol7Xd9o+P 3W/nsAyybejOEgFU1ylMCmyIioCpEgrebjKc2szjzx8dmA94V1LBYPMhRJPJS5T+ DksosmGvkmJySlwZdltCbte3Q0Kj57PQVZ5KSCI6JQUnsGPnpC4+JgvixW2c/UWr TZIeF22qxBiHf2y3RQFK1QxHr+y03n0jLFSZ/NIWo4iS0YMK11nft0/8SVzlFWep fLjwx6DCR9rrhjV703eyaXxJQVsvhbz7QfpO97V6Mr9nQbTDr5qsnXa192HwCDlj JxFbpmeFG3tUXTTFLCv0+29/WIa8fQaAJZfBFpw1Ym//p3hhq/mT9jHvFm6uTVV3 53dUeJ5CqW/NNk/JPucQZA0nOLtrIflV0/E1BEfce2ew8EWF2v8IHv0menDqRV+O Ks0yGLDYcgmdAN0FOrZEp14YRTPS00riZLtkYu5oQZzoiIOi9O4= =2692 -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--