Received: by 10.192.165.148 with SMTP id m20csp804766imm; Wed, 25 Apr 2018 07:58:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrgdHZbJL3Rf8kZzcAoHuGvn3xy9HZSusf+2qIUOEHN8Bhi7FM3cOotXak+/kNtfv6GzwMs X-Received: by 2002:a17:902:aa03:: with SMTP id be3-v6mr8631147plb.215.1524668292013; Wed, 25 Apr 2018 07:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524668291; cv=none; d=google.com; s=arc-20160816; b=I9UlSq5l4RB1Da15ip3Y2VB13YFXj0FM/6GPApmQzcGr4Pq1A55K1/HCQzAgPrzDVv Xn3u5qMtvwaZgJkZvHzav84sAFsuDW8XsnWnHDh0jKnGp8azRf58bweHxCWI6AOLeUpK EVd20aNi+ekOnF/5WRfr8WzOQhKXUqupDYlVS/JgOoecQWMnmMI++9eFevupBsUl9ve9 HD4xlE6kpUKttTD9frpBvVL75vOAoclQMnh68BCVFxbyGRCoVXvQovwilfe/j1qWJXRm itBMtJms/JZzgklvq1mdsFXrwXS5nRmSkbB9sUjtqk1OU7pc8wAG2qymbCb7CHFEn9me duGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :arc-authentication-results; bh=VPcCbCLJz4lax5W1OkGjkB6L5jlBE2bcdxQNZy2KFJo=; b=kQUvr9m/MNExP8vZ13661WdV0taG0rPmiH0aj+GYRxRfDEKOZJB2VOkDrg4ecVlmUv 9rYlLuQcEUIzeoxyq1EaRNfAWiWU83kTdK5LR4lMY9aizdVA6X5F8JzKeTRrDPB+pDP6 Ow0JuonhdEPm7OZXHegDyORnNHFcK0yanvQNeukEgcx5kTwlQgg9npAh6SmcIBXUTs9l RdxWS4W5r6Z2itfibH9W5jdE922HglGfzAVIFGt5sZk8ILssg09ilCbXN+DYlYJNqiHc 1Po0ync8T5kIUFE91F4xPOR4zNtqFmnefvw6itbfs5nQfYGXzXDDUYl4kCqVWr0qPVXP BaYQ== 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 e65si15827799pfa.74.2018.04.25.07.57.26; Wed, 25 Apr 2018 07:58:11 -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 S1754781AbeDYOxW (ORCPT + 99 others); Wed, 25 Apr 2018 10:53:22 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:38807 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753571AbeDYOxR (ORCPT ); Wed, 25 Apr 2018 10:53:17 -0400 Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBLnG-0000Ji-O0; Wed, 25 Apr 2018 16:53:14 +0200 Received: from [IPv6:2001:470:7eea:1122:e87f:77a6:b683:7657] (unknown [IPv6:2001:470:7eea:1122:e87f:77a6:b683:7657]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (Client CN "mkl@blackshift.org", Issuer "StartCom Class 1 Primary Intermediate Client CA" (not verified)) (Authenticated sender: mkl@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id AFAAA30A49B; Wed, 25 Apr 2018 14:53:13 +0000 (UTC) Subject: Re: [PATCH 1/2] net: can: sja1000: Replace mdelay with usleep_range in peak_pci_probe To: Jia-Ju Bai , wg@grandegger.com Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1523410978-1834-1-git-send-email-baijiaju1990@gmail.com> From: Marc Kleine-Budde Openpgp: preference=signencrypt Autocrypt: addr=mkl@pengutronix.de; keydata= xsFNBFFVq30BEACtnSvtXHoeHJxG6nRULcvlkW6RuNwHKmrqoksispp43X8+nwqIFYgb8UaX zu8T6kZP2wEIpM9RjEL3jdBjZNCsjSS6x1qzpc2+2ivjdiJsqeaagIgvy2JWy7vUa4/PyGfx QyUeXOxdj59DvLwAx8I6hOgeHx2X/ntKAMUxwawYfPZpP3gwTNKc27dJWSomOLgp+gbmOmgc 6U5KwhAxPTEb3CsT5RicsC+uQQFumdl5I6XS+pbeXZndXwnj5t84M+HEj7RN6bUfV2WZO/AB Xt5+qFkC/AVUcj/dcHvZwQJlGeZxoi4veCoOT2MYqfR0ax1MmN+LVRvKm29oSyD4Ts/97cbs XsZDRxnEG3z/7Winiv0ZanclA7v7CQwrzsbpCv+oj+zokGuKasofzKdpywkjAfSE1zTyF+8K nxBAmzwEqeQ3iKqBc3AcCseqSPX53mPqmwvNVS2GqBpnOfY7Mxr1AEmxdEcRYbhG6Xdn+ACq Dq0Db3A++3PhMSaOu125uIAIwMXRJIzCXYSqXo8NIeo9tobk0C/9w3fUfMTrBDtSviLHqlp8 eQEP8+TDSmRP/CwmFHv36jd+XGmBHzW5I7qw0OORRwNFYBeEuiOIgxAfjjbLGHh9SRwEqXAL kw+WVTwh0MN1k7I9/CDVlGvc3yIKS0sA+wudYiselXzgLuP5cQARAQABzSZNYXJjIEtsZWlu ZS1CdWRkZSA8bWtsQGJsYWNrc2hpZnQub3JnPsLBlwQTAQoAQQIbAwIeAQIXgAIZAQULCQgH AwUVC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D2u l7P6AGUbUQghaf5khgYpBfTi4YbQgKyxOZoYYfh8ssPVABEBAAHCwXwEGAEKACYWIQTBQAug s5ieb7x9W1wrXuIRxYrqVAUCWm5BPgIbDAUJAeXlcgAKCRArXuIRxYrqVL9ZD/oD+32+N0ij ZQ8p/RaRjPtSnAs6irNRGE1ZKcKpiM76eRFJrN7HvfFiDFmUpSh+8bDyM5kc/Z1AXhXlf0VB T24NZLBXXaFl/M4HKkJTc+PA3yYgb06ChfMWst5h8rfa7htqAhLUby2MTyfJ0xcAptCWTnW0 OCGjEL4ZKr8Ml/fjKYP7hp37iBXwwQF3lSSdjMsEjMT/9/9Ip2+uJ559F8pCmFV5wNgHRH+j nxIIiUILoQMDn42cygozxfh14GwCqUSPW+EqBb7YOWreWA3D3kbXtIwV7/ZXT7L0n/0OTx9p K9K/C2jleQxaep8bHmHqTEEqkrC0rNhocTcrnOYviEO0TkHvSqtNMaM3KnOL3Nsb6rgqDpj2 BVWkrIqMPi0aXfBu/ArZsAios/0QHB56Id3BshIbs1A2VNmFgrxkhKjwJ8A7geD5PXn0cur0 8byy64Kk7ii0iwbJZasPfVLPLmMEVjiSOgZv4hbKyecWVwtlMh3k4rkMuSVDDr+2E9KQXS2R Efe7jTF9WUzFhm0HYiYSiiQyHuZPLc6t/L9OqvrNVTdYaEkBsm/LVv6h6rqpklJLQhU/2KtL bImH8IQK6+7up2rtwyqeehbNdsiqyDA6Sso5eKCoxKKbAFM7PtEYMC2Kv6wAca5SqEOUtRHU /6jKeO1yNpD5UgI9bzazBn1mwg== Message-ID: <82c41390-982e-c05f-79ba-9bf14697df18@pengutronix.de> Date: Wed, 25 Apr 2018 16:53:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1523410978-1834-1-git-send-email-baijiaju1990@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kzscgHpQcq2btGk02eClp5JxUqeKLEMOF" X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --kzscgHpQcq2btGk02eClp5JxUqeKLEMOF Content-Type: multipart/mixed; boundary="f6c4iPjbmcY8z6dkBMGsFlLbFXrQfqfTq"; protected-headers="v1" From: Marc Kleine-Budde To: Jia-Ju Bai , wg@grandegger.com Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <82c41390-982e-c05f-79ba-9bf14697df18@pengutronix.de> Subject: Re: [PATCH 1/2] net: can: sja1000: Replace mdelay with usleep_range in peak_pci_probe References: <1523410978-1834-1-git-send-email-baijiaju1990@gmail.com> In-Reply-To: <1523410978-1834-1-git-send-email-baijiaju1990@gmail.com> --f6c4iPjbmcY8z6dkBMGsFlLbFXrQfqfTq Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable On 04/11/2018 03:42 AM, Jia-Ju Bai wrote: > peak_pci_probe() is never called in atomic context. >=20 > peak_pci_probe() is set as ".probe" in struct pci_driver. >=20 > Despite never getting called from atomic context, peak_pci_probe() > calls mdelay() to busily wait. > This is not necessary and can be replaced with usleep_range() to > avoid busy waiting. >=20 > This is found by a static analysis tool named DCNS written by myself. > And I also manually check it. >=20 > Signed-off-by: Jia-Ju Bai Applied both to linux-can-next. tnx, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --f6c4iPjbmcY8z6dkBMGsFlLbFXrQfqfTq-- --kzscgHpQcq2btGk02eClp5JxUqeKLEMOF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEENrCndlB/VnAEWuH5k9IU1zQoZfEFAlrgllYACgkQk9IU1zQo ZfG9RwgAhMCquisobaLm20AhILqPj2qfpZ2zNmipP1hzKcrBZT2cRb8WYteG6V23 CQVJ2+C1RASY7B4jLNaJt2y7lh6589HtBcjHDj3cISyzHg47RGwO5lqktrYzgwVP pPnquQpUpn5bRPssahLH64Mm7Wa7WYb6gZHaBg6r4xi+ERFiDf1UIHAX+wvaTMwt 923HyvBD8j/McPxvl4GBGAz3jclgl0FlogGLgTpcY0kK16xv2w6l96hfx/Kxs7R6 VSgVDmakNwK4CYsT25MDGZUidYpYQlrKyLLUEuEZl5ytuLIHONGrv4MOZZMsDAg/ COS4dQR7JStsclEvHPHMg1SP1jSNqw== =/ejb -----END PGP SIGNATURE----- --kzscgHpQcq2btGk02eClp5JxUqeKLEMOF--