Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3697116pxf; Mon, 29 Mar 2021 09:00:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeSrZAnNmEaIoeGf/yGJYKtIuQib4LjoCkT0+akHz0UgCawqmm8NOu4mmVc2rxGRgwmwk5 X-Received: by 2002:a17:906:bfcc:: with SMTP id us12mr29774943ejb.266.1617033639601; Mon, 29 Mar 2021 09:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617033639; cv=none; d=google.com; s=arc-20160816; b=eSQ08fLCaPZwldsogc/6DYMap9EQhYSq5FEPEnPH3zc8ugnXKBt1B/Wwjgdu9gWJMT RH17lHhrMy0lewaUpdIWoGpbG8E5jtBfBZLjUvqO8ujHVKZZ3zq9Y+hbN5V+NJe/Cd4U pVT0/O+nm4IGfA2d81OgZsqg+bdRT3jfoy04LmP65LxigeT5gde9y/q2c5//OpsdWQIx GJYPgZqnh/CmBHikmSd9CqZ3gRCELrSwfi3SEhreUFIRGua6AgkVM71CgqZlQ0pCGR06 T4w4R5B6S+1Ntog2YE1dDVE8qLJNHYi0zrOsYN5xkiO+DnxtHS01gws3jQFKWDrYrCqc 4dUw== 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=3zv8Q+K/yzLb7bQs8dKtEvHJSds2DQPTZRxjzHxgB00=; b=zIBM2duu3wOqWLm2OyUAmNaEcrPCtTfc48wOL2FoXQloEKHDYz6J0+iA88ea0rj7dL 2DficC4KpEbQKsbE1OnEfTHf8u7D+Tw07woMJFe41qxG7acCcXqs+pxJrluzyPHonziI 4SXnLSbXQhliGrq1pOGZu756jJD2G1fKyqPc/neVacLtx31mNQ2f8/XGsAcMoeFqmYLw lEXn64EGuRyFBm7q/YDSfjhzUC23WzgWsWah+hq7i+p0AVHtTedCJ7Lqy3wRyvOOPWPo yiLd/ivsPZWVkUwdRs4/zlPguW1a9IV+OMuzdmgZx2Wdz9f0UaWv/8eZiU8/0MCSSSHQ 6F9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bpwP2d99; 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 lr15si13531927ejb.275.2021.03.29.09.00.16; Mon, 29 Mar 2021 09:00:39 -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=bpwP2d99; 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 S230286AbhC2P7U (ORCPT + 99 others); Mon, 29 Mar 2021 11:59:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:34356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbhC2P6y (ORCPT ); Mon, 29 Mar 2021 11:58:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4717B6148E; Mon, 29 Mar 2021 15:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617033533; bh=NnjETCPQpSIHF+fPiignvyEBk3xGcXLngA81Rv7A/3w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bpwP2d991M4o1SHyIp0bfBts73Vu1kWY5jw1JFxHh2cwKsDBbhJtodPxCYUO0gIAG iEBQcUphAXrNgM2jcCMB5vcMwxO46gd7BC6muPaG5EG3T2rYHMYwOMOWdvL1jcS+Rg IWOXvyJpjBtl1jyCSjl2vr0ZNIEK2QzFjS4bLY46PusaL+sTTDtw5b+Ljjy9UGGwCO sEY13lYr3Lpv8wXZK9tk1gYuLNreehI546NKSoba6Ur452JlliE6ILPDFCRDVZQ85H 5DUFu2zueiaXUdzWx8Ca9HKvFTO3pPGzDP4NHQiBIJxpvj4hvzAjBTHg2O4Mm0oQVf 3F2vo+2R90JXA== Date: Mon, 29 Mar 2021 16:58:43 +0100 From: Mark Brown To: Brad Larson Cc: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linus.walleij@linaro.org, bgolaszewski@baylibre.com, fancer.lancer@gmail.com, adrian.hunter@intel.com, ulf.hansson@linaro.org, olof@lixom.net, linux-gpio@vger.kernel.org, linux-spi@vger.kernel.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 03/13] spi: dw: Add support for Pensando Elba SoC SPI Message-ID: <20210329155843.GD5166@sirena.org.uk> References: <20210329015938.20316-1-brad@pensando.io> <20210329015938.20316-4-brad@pensando.io> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KdquIMZPjGJQvRdI" Content-Disposition: inline In-Reply-To: <20210329015938.20316-4-brad@pensando.io> X-Cookie: Never give an inch! User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --KdquIMZPjGJQvRdI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 28, 2021 at 06:59:28PM -0700, Brad Larson wrote: > @@ -56,7 +56,7 @@ struct dw_spi_mscc { > /* > * The Designware SPI controller (referred to as master in the documenta= tion) > * automatically deasserts chip select when the tx fifo is empty. The ch= ip > - * selects then needs to be either driven as GPIOs or, for the first 4 u= sing the > + * selects then needs to be either driven as GPIOs or, for the first 4 u= sing > * the SPI boot controller registers. the final chip select is an OR gate > * between the Designware SPI controller and the SPI boot controller. > */ This is an unrelated fix, please send as a separate patch as covered in submitting-patches.rst. > @@ -237,6 +237,31 @@ static int dw_spi_canaan_k210_init(struct platform_d= evice *pdev, > return 0; > } > =20 > +static void dw_spi_elba_set_cs(struct spi_device *spi, bool enable) > +{ > + struct dw_spi *dws =3D spi_master_get_devdata(spi->master); > + > + if (!enable) { > + /* > + * Using a GPIO-based chip-select, the DW SPI > + * controller still needs its own CS bit selected > + * to start the serial engine. On Elba the specific > + * CS doesn't matter to start the serial engine, > + * so using CS0. > + */ Why does this comment only apply to one branch of the conditional? --KdquIMZPjGJQvRdI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmBh+TIACgkQJNaLcl1U h9AT8Af/XdN+n+l5mAqCUJXpWq/mDrkEBdZmfQE2koLvAsnVW0/Z9eaodG0TkxrP bTvF8W1AUheE0TQ/szrur71ck/fldoZX2xnc6OKhwO18e5rr1sVnoqCIIyqlvdJ6 HPeGsJ9XWXWx/NZIV7Z3XaQxFV6c/L8ySwYbAy8iAkcr/WUYVThji4DddHgtSYkC 0WIxxF5HvRjz9TcGCvf7LdeX3k9kqgT2esVALZ+HMbRkB0iMQAkL53hziP/xVl45 5kyX5G+2mUE2bpxLX3Y9akKSvk5lj2fH2tBbLTjiFDiLVq4Kg8kMGvGscnQwqRL6 kDe1GVPDkT7ZxqfuUX7w1OAD1SZ5Og== =vwts -----END PGP SIGNATURE----- --KdquIMZPjGJQvRdI--