Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2884160pxb; Tue, 24 Aug 2021 09:49:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUrL1CJBpAXmj2AmHNOeAv2XyNoJuyr4DN4xYU+H9n/k8QDgqK2GH2oJx6zvQn30wvRyc6 X-Received: by 2002:a92:6802:: with SMTP id d2mr26809736ilc.40.1629823769141; Tue, 24 Aug 2021 09:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629823769; cv=none; d=google.com; s=arc-20160816; b=CWsB93AqPjR67yNwBZXxaduDAsBVfT6adM1Cg8GzcGTQwli9zgwNERwC7B7cg8kbpF cUfMKI2Va9wAc1fwVfi5jKLMFz43sWNU4puXT3RX7EOYORC5BF4q3YkO2l7ak9kqIgld +LJSBgl8aN3SGJ6YiZseEwHG79ymE4FFJXch1c+/cS+kaaJ27mZRmS9F7OEQKT2ur+q8 XQQQUuY6pn53KDNfpUjsNqyaJorx2HTz109SDDy2CGImhJ+SqOsh7tEOaZaAD1ZQPT4w PMdCuzUkT5Q/K98Jjc/RDf6rWhtqTAqH89KnDksma103hlcCSEg26O5CwjwEEnAX1O4O DRBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=sVoAwvLcoyVClOdpBkw4lt56765IBZ3t7x9ycSM52DM=; b=I/9CxkwdSTXERmLzcA/A86gHhJx47bQmDwc5kcT+WqSXzotj/gPZHeMTUGqkW9RkPX RSAmuyYe6T0EfYejg2uXYsB28qFbvXcLZomHG3veVRVjT8/BFnQ1DZa9xb766WUxLR41 70z/OjZmtzPhnKeJWDcDVBRgwm40zt4eloi55o/VnP1XHVEcOIZwSyPy5lHyNGTccL5m ZfHQATZrPesYtCb8BVP786fnONv3w0yoiV/445fRm1IpXZ4sMX8urOq3kLdUxr2Nq4xF TNcsjCBuj7FvFLz+/b0g/FcGMVW39bNdtQ9MsluR3DkTfuxfH3I1R5NpwHkf5yn+37i7 WCLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PT2VYda9; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v66si22606095iof.105.2021.08.24.09.49.17; Tue, 24 Aug 2021 09:49:29 -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=@kernel.org header.s=k20201202 header.b=PT2VYda9; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232300AbhHXQsD (ORCPT + 99 others); Tue, 24 Aug 2021 12:48:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:34198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229896AbhHXQsC (ORCPT ); Tue, 24 Aug 2021 12:48:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B6F9861183; Tue, 24 Aug 2021 16:47:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629823638; bh=ltTAxcnVq5FnPnHrkXah5AXz0yDZm3341oEzARJcVUQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PT2VYda9E2xax8AkiXdEoytVS2L91VCGtjstVoO1022oYAUHd03h3DOTwp0NhSOkb B9pfgtWu4fShp6lnZC6yAb9DmAE5ql4sMcaG7nCGpfspfk+PSDbRoHunXZ8zHOPaWC JjVOno0J+MtA318Mv2YOsM5nDCRwEqciJpKHIxqoCEDwd7E7nmYvM5d/RUCvGr+OYC FDOwzF1G1pAP8DlHOGI5cN/GVKwbUab7QxwG+O+dza0zsZxTXZOgun9EuvffxXOE23 xPTSm5PBH/EX/bsrQBRP8ccIFq2nDbgVIKcB44CM9YFx4DkipOBShmGJSo0o/F/Oll VXCOHPGLN5hhA== Date: Tue, 24 Aug 2021 17:46:50 +0100 From: Mark Brown To: Lucas Tanure Cc: Greg Kroah-Hartman , "Rafael J . Wysocki" , Sanjay R Mehta , Nehal Bakulchandra Shah , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, patches@opensource.cirrus.com Subject: Re: [PATCH 5/9] spi: amd: Refactor amd_spi_busy_wait to use readl_poll_timeout Message-ID: <20210824164650.GI4393@sirena.org.uk> References: <20210824104041.708945-1-tanureal@opensource.cirrus.com> <20210824104041.708945-6-tanureal@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="l0l+eSofNeLXHSnY" Content-Disposition: inline In-Reply-To: <20210824104041.708945-6-tanureal@opensource.cirrus.com> X-Cookie: Sentient plasmoids are a gas. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --l0l+eSofNeLXHSnY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 24, 2021 at 11:40:37AM +0100, Lucas Tanure wrote: > - spi_busy = (ioread32((u8 __iomem *)amd_spi->io_remap_addr + > - AMD_SPI_CTRL0_REG) & AMD_SPI_BUSY) == AMD_SPI_BUSY; This does ioread32() while readl_poll_timeout() does a readl(). These are almost but not quite equivalent and the differences apply to PCI devices like this one, see device-io.rst. --l0l+eSofNeLXHSnY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmElInkACgkQJNaLcl1U h9COxAf+Jb+svZhpIf8l5/k432oxnfrF2Pl9Yx76uGMzaUCoJWJOlD7x5EcGGRwV wwGzzofYp8ebrWAgBjCfvXuzHGmOxlr8kH9leBVWHQ6KEndheAHYZsYc30RqksMV u0Aig6UNC2IUW6LTCnpHSFFkcWwQlmCmGPBte+R933TzZq0YKAGQNhITIYg9iJ3q oVNbL478jWICmEPTDz9BXGUa5PDHnjgZTf3yvYipRLIUdXALR3hRQS5YYl7YydAF ExwQhuJoBdfTbrgt/Sp3h2Ov3jmIJZ46bzH0eF6IhNSfP7mgvFpWlta15a/jjpf+ mxyNsCnoa+7RJgvFgefUG1mkD+9luQ== =DIL2 -----END PGP SIGNATURE----- --l0l+eSofNeLXHSnY--