Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1374386lqe; Mon, 8 Apr 2024 07:16:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW337EWL26hPavwNZ/holRBjEFkfWSy0wY3otVR/Kj0X1vov2kST+rYKkuEfMPrq4m/75NDq163udYidYGw/Gwqc8eNVAPPzGPkopSXRA== X-Google-Smtp-Source: AGHT+IEVPbP9N5Ryy2CnR3Xqt5tsEynfwD/KcGE4lmVDJeGOUWsrf5i6oyrBBnIWfTuaY8qLkQT0 X-Received: by 2002:a17:902:f548:b0:1e2:bb09:6270 with SMTP id h8-20020a170902f54800b001e2bb096270mr12908129plf.28.1712585816245; Mon, 08 Apr 2024 07:16:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712585816; cv=pass; d=google.com; s=arc-20160816; b=SqVhHe1G2R1xV3JF3sm3PcmboRisSqxgj5TM23ZEmjMniLFluxPO+jLIVNRliUGkdp cWPcNuceqnrL4hPB5OrRztSPS7we3pwyCHzdTTwgJCxXJZU1KdXnbc6+DHeOoGzNDhtD 30ELdRFwV9iG1G55wVx7ZnIHxaItEApuIgRWX+a0KbJ/C2gXe9n4ZjKAlwuDxQm78uqx U4OvhEE0HksHvoOh4Bux3bDS8JpBim+WjoLZuEywPPNVbQaVyWMBmEqtZtXtoGEryxpc UAUmRQ9DbhmsqKdjTECq7GC3le6yopzhxplOzknwEnP63ObEXkXSP9ZcPVG9r/Jz7Clu U1DQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X165AnuBYRCLHgg1FBFdg4DExbBHQa5z8zpoZFRqZc8=; fh=DaRc1I0aerNJ1m1jRSV9Ru1kzcZ7wqFTnEdNluRjXVs=; b=Fpazl2O+jT8/rHhI0W6XmLidiyBWRM7jOmEeBkz1GE+aR6OdYoivZ+0Em5aPr5538z LVphKvQBF1g2E8ktTBrTJeb9PdnMNo/1SNEkhlAfe8b3Ug2ZW2B2Rmvodc8B84ndGn/E WlNs/ghM/BXxL8+zsw6qKwPHlnrky/pHioAAlCnwF+ptFBCDXFT5dgPuhuZiAFSz4MTm YvG98rtHC28RbdVW6T08Ff8yAEBbAFYqEUJ7t7uOxRoLONj43ux61UXwdIJmAsD9hlrk yIc6C7tsCePfOEBIO634ZEjmgdU3K5Dx+mzGkiWRN/SWP+UMFNMNAe0d0mT1BzLQAUuX dU9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KmXhM+cj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-135494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n5-20020a170902f60500b001e0a22c7619si6575746plg.263.2024.04.08.07.16.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 07:16:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KmXhM+cj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-135494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6D37C282D77 for ; Mon, 8 Apr 2024 14:16:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69683127B78; Mon, 8 Apr 2024 14:16:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KmXhM+cj" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FA63126F0A; Mon, 8 Apr 2024 14:16:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712585795; cv=none; b=X8BSbLA08yn6hACCm/Z96ERXdigThJdiQxjH4Zzpa3jczNA/lZ6K7yZVTzq23+oL9hLZKKl3S0cLMhR7QxcreIM2eRDWvSQPvZw9tB3/rFRFlyu23yEmzxv6UTJtFv/tFu+aP5Cm34DA9/+XI9m8FlT4JjPuVlyWaUdkjaGeNe8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712585795; c=relaxed/simple; bh=X165AnuBYRCLHgg1FBFdg4DExbBHQa5z8zpoZFRqZc8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jbAtJ2dVy6GyU1P/3aKdMM3ZE1vjWSnU8VRGCfrl+7OoWJC7b0PwyMy/eYgliy72YOjo0mE+j4sWHv5yCDNCS/EHvx8LoW7HjGUxdlTsGLyM/le4wJ3Wk+1id/T77RkBZp2eS3/7kQwJTLSQNte4J9ww9+/xrZ0HR1DvE+UdMXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KmXhM+cj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF22AC433C7; Mon, 8 Apr 2024 14:16:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712585795; bh=X165AnuBYRCLHgg1FBFdg4DExbBHQa5z8zpoZFRqZc8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KmXhM+cj2OPb3adXuSg4edYNC0GHkDzr9jQhOPgzYHgxP7oalPHLskK8lw2xJlZ8m RxTpWeSEPRLXsaQSg+wCB2PqVGr+0sNbuHHzZWojgt7EZ8D+vjRYYMGbcpcQlhvoSu oITPvZ9sZDp+tkkSpQWbBgq+8TF+3CHnPfcxJ7dceIaTIYl9/KCWYwA8mXJ0RACXM0 MY5JOZjN7SX/GGmWgpy+HqwcTtk9jqHCWh7V8A+nEl5/cXTwrW0O/DDmYApFEgYT2H SIjuANUKwzGZrknnNcBipQ9xCHmSJ5uQ9p20157HSlLM0buWXQ8kq4uAl+klFo2eeN 41eE1k1B60YZw== Date: Mon, 8 Apr 2024 15:16:29 +0100 From: Mark Brown To: =?iso-8859-1?Q?Th=E9o?= Lebrun Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vaishnav Achath , Thomas Bogendoerfer , Rob Herring , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Vladimir Kondratiev , Gregory CLEMENT , Thomas Petazzoni , Tawfik Bayouk Subject: Re: [PATCH v2 08/11] spi: cadence-qspi: add early busywait to cqspi_wait_for_bit() Message-ID: <1f7087ad-824e-47fe-9953-ed5152c8f18f@sirena.org.uk> References: <20240405-cdns-qspi-mbly-v2-0-956679866d6d@bootlin.com> <20240405-cdns-qspi-mbly-v2-8-956679866d6d@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="M+xzRGuQWIs7ztiG" Content-Disposition: inline In-Reply-To: <20240405-cdns-qspi-mbly-v2-8-956679866d6d@bootlin.com> X-Cookie: Drive defensively. Buy a tank. --M+xzRGuQWIs7ztiG Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 05, 2024 at 05:02:18PM +0200, Th=E9o Lebrun wrote: > If the CQSPI_BUSYWAIT_EARLY quirk flag is on, call > readl_relaxed_poll_timeout() with no sleep at the start of > cqspi_wait_for_bit(). If its short timeout expires, a sleeping > readl_relaxed_poll_timeout() call takes the relay. >=20 > Behavior is hidden behind a quirk flag to keep the previous behavior the > same on all platforms. >=20 > The reason is to avoid hrtimer interrupts on the system. All read > operations take less than 100=B5s. Why would this be platform specific, this seems like a very standard optimisation technique? --M+xzRGuQWIs7ztiG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmYT/DwACgkQJNaLcl1U h9ANxgf+Mzi0qALbTQtJ/4YLKSo7Rz0O7xI80u/4JR5cdbLhKIR9wyfq/zYpC1ou GugX7jgji68/5rmgbPrXCgMFmfmy2h/EjN3t5sEUIMjtHum2Wxo7AMvAE3l4SPvw MsrJvoxg975ApHEXE9CZlzKHaof5nQ7xK4j2tyqCK/1TkUh2zXKFhG0uB/AnIQJg jqC0+lTHXviEqqjqx0CM5wcmuzkx19rxpVNsa6wgVy1z9Iy2BF+gR9c04CLiA438 Og1GynxgfKht138oDVWMEyx9YnMW4DcN8Z8VG82u52z/G/2fUFVGYuy77gNrt9f5 nbsZFB8X1UwZHCYA+oX1w5wz/xt4nQ== =/C1O -----END PGP SIGNATURE----- --M+xzRGuQWIs7ztiG--