All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo@kernel.org>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: linux-spi@vger.kernel.org, conor@kernel.org, broonie@kernel.org,
	lorenzo.bianconi83@gmail.com,
	linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org, nbd@nbd.name, john@phrozen.org,
	dd@embedd.com, catalin.marinas@arm.com, will@kernel.org,
	upstream@airoha.com, angelogioacchino.delregno@collabora.com
Subject: Re: [PATCH v5 3/3] spi: airoha: add SPI-NAND Flash controller driver
Date: Mon, 29 Apr 2024 11:50:47 +0200	[thread overview]
Message-ID: <Zi9tdz_VvhqIHnQI@lore-desk> (raw)
In-Reply-To: <CAHp75Vc0=bKk+D9ULPhfbVkgHpRTST_niNBYo4Jri_71XQa+dg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1322 bytes --]

> On Mon, Apr 29, 2024 at 11:13 AM Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> >
> > Introduce support for SPI-NAND driver of the Airoha NAND Flash Interface
> > found on Airoha ARM SoCs.
> 
> FWIW,
> Reviewed-by: Andy Shevchenko <andy@kernel.org>
> 
> ...
> 
> > +static void airoha_snand_cleanup(struct spi_device *spi)
> > +{
> > +       struct airoha_snand_dev *as_dev = spi_get_ctldata(spi);
> 
> > +       struct airoha_snand_ctrl *as_ctrl;
> > +
> > +       as_ctrl = spi_controller_get_devdata(spi->controller);
> 
> You may do it on one line above (the same way as for as_dev).
> Ditto for other similar cases around.

It was to avoid going beyond 79 columns, I do not have a strong opinion about
it.

> 
> > +       dma_unmap_single(as_ctrl->dev, as_dev->dma_addr,
> > +                        as_dev->buf_len, DMA_BIDIRECTIONAL);
> > +       spi_set_ctldata(spi, NULL);
> > +}
> 
> ...
> 
> > +static const struct of_device_id airoha_snand_ids[] = {
> > +       { .compatible   = "airoha,en7581-snand" },
> > +       { /* sentinel */ }
> > +};
> > +MODULE_DEVICE_TABLE(of, airoha_snand_ids);
> 
> No need to keep this block here, the first user is below the ->probe().

ack, I will fix it.

Regards,
Lorenzo

> 
> -- 
> With Best Regards,
> Andy Shevchenko

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Lorenzo Bianconi <lorenzo@kernel.org>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: linux-spi@vger.kernel.org, conor@kernel.org, broonie@kernel.org,
	lorenzo.bianconi83@gmail.com,
	linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org, nbd@nbd.name, john@phrozen.org,
	dd@embedd.com, catalin.marinas@arm.com, will@kernel.org,
	upstream@airoha.com, angelogioacchino.delregno@collabora.com
Subject: Re: [PATCH v5 3/3] spi: airoha: add SPI-NAND Flash controller driver
Date: Mon, 29 Apr 2024 11:50:47 +0200	[thread overview]
Message-ID: <Zi9tdz_VvhqIHnQI@lore-desk> (raw)
In-Reply-To: <CAHp75Vc0=bKk+D9ULPhfbVkgHpRTST_niNBYo4Jri_71XQa+dg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1322 bytes --]

> On Mon, Apr 29, 2024 at 11:13 AM Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> >
> > Introduce support for SPI-NAND driver of the Airoha NAND Flash Interface
> > found on Airoha ARM SoCs.
> 
> FWIW,
> Reviewed-by: Andy Shevchenko <andy@kernel.org>
> 
> ...
> 
> > +static void airoha_snand_cleanup(struct spi_device *spi)
> > +{
> > +       struct airoha_snand_dev *as_dev = spi_get_ctldata(spi);
> 
> > +       struct airoha_snand_ctrl *as_ctrl;
> > +
> > +       as_ctrl = spi_controller_get_devdata(spi->controller);
> 
> You may do it on one line above (the same way as for as_dev).
> Ditto for other similar cases around.

It was to avoid going beyond 79 columns, I do not have a strong opinion about
it.

> 
> > +       dma_unmap_single(as_ctrl->dev, as_dev->dma_addr,
> > +                        as_dev->buf_len, DMA_BIDIRECTIONAL);
> > +       spi_set_ctldata(spi, NULL);
> > +}
> 
> ...
> 
> > +static const struct of_device_id airoha_snand_ids[] = {
> > +       { .compatible   = "airoha,en7581-snand" },
> > +       { /* sentinel */ }
> > +};
> > +MODULE_DEVICE_TABLE(of, airoha_snand_ids);
> 
> No need to keep this block here, the first user is below the ->probe().

ack, I will fix it.

Regards,
Lorenzo

> 
> -- 
> With Best Regards,
> Andy Shevchenko

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2024-04-29  9:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-29  8:13 [PATCH v5 0/3] Add add SPI-NAND Flash controller driver for EN7581 Lorenzo Bianconi
2024-04-29  8:13 ` Lorenzo Bianconi
2024-04-29  8:13 ` [PATCH v5 1/3] dt-bindings: spi: airoha: Add YAML schema for SNFI controller Lorenzo Bianconi
2024-04-29  8:13   ` Lorenzo Bianconi
2024-04-29 15:12   ` Mark Brown
2024-04-29 15:12     ` Mark Brown
2024-04-29  8:13 ` [PATCH v5 2/3] arm64: dts: airoha: add EN7581 spi-nand node Lorenzo Bianconi
2024-04-29  8:13   ` Lorenzo Bianconi
2024-04-29  8:13 ` [PATCH v5 3/3] spi: airoha: add SPI-NAND Flash controller driver Lorenzo Bianconi
2024-04-29  8:13   ` Lorenzo Bianconi
2024-04-29  9:21   ` Andy Shevchenko
2024-04-29  9:21     ` Andy Shevchenko
2024-04-29  9:50     ` Lorenzo Bianconi [this message]
2024-04-29  9:50       ` Lorenzo Bianconi
2024-04-29  9:44   ` AngeloGioacchino Del Regno
2024-04-29  9:44     ` AngeloGioacchino Del Regno
2024-05-02  3:57 ` (subset) [PATCH v5 0/3] Add add SPI-NAND Flash controller driver for EN7581 Mark Brown
2024-05-02  3:57   ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Zi9tdz_VvhqIHnQI@lore-desk \
    --to=lorenzo@kernel.org \
    --cc=andy.shevchenko@gmail.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=broonie@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=conor+dt@kernel.org \
    --cc=conor@kernel.org \
    --cc=dd@embedd.com \
    --cc=devicetree@vger.kernel.org \
    --cc=john@phrozen.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=lorenzo.bianconi83@gmail.com \
    --cc=nbd@nbd.name \
    --cc=robh+dt@kernel.org \
    --cc=upstream@airoha.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.