[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK9rFny3RZSP8=RnekcLNz0KrBfko8jkc4pyXpfiEyF2TUmr4w@mail.gmail.com>
Date: Mon, 29 Mar 2021 19:28:14 -0700
From: Brad Larson <brad@...sando.io>
To: Mark Brown <broonie@...nel.org>
Cc: Linux ARM <linux-arm-kernel@...ts.infradead.org>,
Arnd Bergmann <arnd@...db.de>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <bgolaszewski@...libre.com>,
Serge Semin <fancer.lancer@...il.com>,
Adrian Hunter <adrian.hunter@...el.com>,
Ulf Hansson <ulf.hansson@...aro.org>,
Olof Johansson <olof@...om.net>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
linux-spi <linux-spi@...r.kernel.org>,
linux-mmc <linux-mmc@...r.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 03/13] spi: dw: Add support for Pensando Elba SoC SPI
On Mon, Mar 29, 2021 at 8:58 AM Mark Brown <broonie@...nel.org> wrote:
>
> 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 documentation)
> > * automatically deasserts chip select when the tx fifo is empty. The chip
> > - * selects then needs to be either driven as GPIOs or, for the first 4 using the
> > + * selects then needs to be either driven as GPIOs or, for the first 4 using
> > * 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.
I'll remove this. Belongs in a trivial patch set.
> > @@ -237,6 +237,31 @@ static int dw_spi_canaan_k210_init(struct platform_device *pdev,
> > return 0;
> > }
> >
> > +static void dw_spi_elba_set_cs(struct spi_device *spi, bool enable)
> > +{
> > + struct dw_spi *dws = 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?
It doesn't, I'll move it outside the conditional.
Powered by blists - more mailing lists