Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1065964imu; Tue, 11 Dec 2018 12:07:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/WkDPhyFJpdFNxSol0OnXAzKSvvrTN/3AR499/X9qTzNyMIBVzsvFnXasJpH08olbfVJBLZ X-Received: by 2002:a17:902:7588:: with SMTP id j8mr17497984pll.215.1544558835292; Tue, 11 Dec 2018 12:07:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544558835; cv=none; d=google.com; s=arc-20160816; b=LPSoaMcwIpvTk9ArkG9yospEfG8ZfGRMHmlIIstqdoqYQK+1D7bcgMagP4eln/auav /Rvvu932F0X+fwMYfUZCbZ0W0LvdvEteWDJHOq3P6EtjBap0vXA3kqgyvZZtWDI8r4gN o73r5qFZdpr8txKLEbcSyqgbejo5IsDA5qJTqtCBFRLO4mXuUenQTnjclMhJQ89LoGrO ude9CABccKr7M9Tl9LlgYYklajpm08OmfeY2hZuJnrP4Hgk/cuiSy2GzOave1VijoTIY iBKp4sZakpOokjsGVpcdNI5dT4ELBMfUBz6+W94R7iQUlnmadcnE3o/7DEBg4PJC28iF At6A== 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=rqxzHNlEgBeLs23HKEhTtJ5d7Yz4WTzg/8Xcz1QVY2Q=; b=gxgasYy+oyfUWnDx4D4NeLGltvzuNi/L8z1+F+LeiLit57SXgQL0P4IjcCgRpyydln 7b9Rrvd8g4+14UXwT/kSq/gErMd8iVBOTmS5RRg2cXAeZkgAhK1194VVEZPDtm4eEJfw R0nMqvH1NGzCb7t5NW6xm2WTr5A47X54KQRFzj7dcVeMt4gMrw7SjnuvlZs4dxyY5svm 6NyraoZMZdk+hSAcfWHcL2VEYhDZGl1hoMOFEOPsk11kc6ZLXcfrEtp+q6ysTYQCtjWL oqxKt/5XmlmCeSY4pE1E6siugCnVqn1yv6TlTGrDHYK24WPwyxAsdIPv7sAuBaKgql8C H2Ww== 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 a2si12262381pgm.154.2018.12.11.12.07.00; Tue, 11 Dec 2018 12:07:15 -0800 (PST) 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 S1726250AbeLKUEi (ORCPT + 99 others); Tue, 11 Dec 2018 15:04:38 -0500 Received: from sauhun.de ([88.99.104.3]:45336 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbeLKUEi (ORCPT ); Tue, 11 Dec 2018 15:04:38 -0500 Received: from localhost (p54B334A7.dip0.t-ipconnect.de [84.179.52.167]) by pokefinder.org (Postfix) with ESMTPSA id 9B7524C0E8F; Tue, 11 Dec 2018 21:04:36 +0100 (CET) Date: Tue, 11 Dec 2018 21:04:36 +0100 From: Wolfram Sang To: "Adamski, Krzysztof (Nokia - PL/Wroclaw)" Cc: "Sverdlin, Alexander (Nokia - DE/Ulm)" , "linux-i2c@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Linus Walleij , Guenter Roeck , Tobias Jordan , Peter Rosin Subject: Re: [PATCH 3/3] i2c-axxia: support sequence command mode Message-ID: <20181211200435.abk3jdsmltz7c26w@ninjato> References: <8515ba7093f5be3ad7bd31d68efedcbe17958282.1544453688.git.krzysztof.adamski@nokia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="c3m5n2s5rtnxudgq" Content-Disposition: inline In-Reply-To: <8515ba7093f5be3ad7bd31d68efedcbe17958282.1544453688.git.krzysztof.adamski@nokia.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --c3m5n2s5rtnxudgq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > +static void axxia_i2c_handle_seq_nak(struct axxia_i2c_dev *idev) > +{ > + while (readl(idev->base + MST_COMMAND) & CMD_BUSY) > + udelay(100); > +} My code checkers rightfully complain about this: CHECKPATCH CHECK: usleep_range is preferred over udelay; see Documentation/timers/timers-howto.txt SMATCH drivers/i2c/busses/i2c-axxia.c:382 axxia_i2c_handle_seq_nak() warn: this loop depends on readl() succeeding (and I get those as well, but not related to your patch; still while I am here) GCC drivers/i2c/busses/i2c-axxia.c:98: warning: cannot understand function prototype: 'struct axxia_i2c_dev ' drivers/i2c/busses/i2c-axxia.c:130: warning: Function parameter or member 'ns' not described in 'ns_to_clk' drivers/i2c/busses/i2c-axxia.c:130: warning: Function parameter or member 'clk_mhz' not described in 'ns_to_clk' drivers/i2c/busses/i2c-axxia.c:229: warning: Function parameter or member 'idev' not described in 'axxia_i2c_empty_rx_fifo' drivers/i2c/busses/i2c-axxia.c:261: warning: Function parameter or member 'idev' not described in 'axxia_i2c_fill_tx_fifo' Also, for $subject, please change the prefix to "i2c: axxia:" Thanks, Wolfram --c3m5n2s5rtnxudgq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlwQGFMACgkQFA3kzBSg KbZjBQ/+JKkZOieWNTHYtxct2MfgBqvV/GjQ2LNchV0lAsarOYL5+70J8ZRiX3e9 PB/cb5mkjw8muL0fl41fOonxiel/mxy8X9JdVrnPJj7xSbsbbn9s91dBmaKXr8Tp hGDfBdtTQm2EPwWWIeKsCbd6aRwXsCDdUiQLFSiw21F0QuGBJxywKT4V0rNkfBDK whew5E94SpVKO74DZZhUO3qT3zGbJIdwfgl3jU9aPAJbpD4GxLWDMenEVkI7bnIO SOMsmF6S6sp+O1ZSRARaO6qm28RYoi4I96hU/aoJxmT73LiUagbPuPFd9P9aV/vs ucxXDjQhscVbvqeY+EMLU05mwLicfhwT38j0au8Xa0zDLYCKyzUNa2F7gu82yMpS lL+LyUYsKWWLUp36pkriH3Hk24jjwXaxqv9JlTuuMf0/QuVRhoIexA9h/eUh/keB 7Xr2wHvGvLgY9VfIlXpC8PyJvnvBT6wxc/R0p8h1IRuOp234DagQhenDySV0htnx s+9Dl+HusBfufX7ACPa/l+PwIOGCBJ7oEHASq+E5NXJ4zdtSi4d1xZToldT2JBdj Sm0n6R2p+Gc0vegX9fmin0lqIynb9girYSl3LYbVY0ZE6eXg+8bWun4rJ3447OE7 QOFSN06zcuedwhaqcg6u2v1kBTRYJZ3qRYjMIbiSu9EwjHK9Jic= =Oulp -----END PGP SIGNATURE----- --c3m5n2s5rtnxudgq--