U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: William Zhang <william.zhang@broadcom.com>
To: Linus Walleij <linus.walleij@linaro.org>,
	david regan <dregan@broadcom.com>
Cc: u-boot <u-boot@lists.denx.de>,
	 Dario Binacchi <dario.binacchi@amarulasolutions.com>,
	 Michael Trimarchi <michael@amarulasolutions.com>,
	Anand Gore <anand.gore@broadcom.com>,
	 Kursad Oney <kursad.oney@broadcom.com>,
	Philippe Reynes <philippe.reynes@softathome.com>,
	 Florian Fainelli <florian.fainelli@broadcom.com>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	 Kamal Dasu <kamal.dasu@broadcom.com>,
	David Regan <dregan@mail.com>, Tom Rini <trini@konsulko.com>,
	Jiaxun Yang <jiaxun.yang@flygoat.com>
Subject: RE: [PATCH 3/4] mtd: rawnand: brcmnand: Add BCMBCA read data bus interface
Date: Thu, 7 Nov 2024 18:22:43 -0800	[thread overview]
Message-ID: <50f852ca0d50e518dc40b1545bc78d38@mail.gmail.com> (raw)
In-Reply-To: <CACRpkdYt64S=X2_-VO5h=0kgZ5hcoVWOnzYRK5k39AX0cMkD_A@mail.gmail.com>

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

Hi Linus,

> -----Original Message-----
> From: Linus Walleij <linus.walleij@linaro.org>
> Sent: Thursday, November 7, 2024 6:16 AM
> To: david regan <dregan@broadcom.com>
> Cc: u-boot <u-boot@lists.denx.de>; Dario Binacchi
> <dario.binacchi@amarulasolutions.com>; Michael Trimarchi
> <michael@amarulasolutions.com>; Anand Gore
> <anand.gore@broadcom.com>; William Zhang
> <william.zhang@broadcom.com>; Kursad Oney
> <kursad.oney@broadcom.com>; Philippe Reynes
> <philippe.reynes@softathome.com>; Florian Fainelli
> <florian.fainelli@broadcom.com>; Miquel Raynal
> <miquel.raynal@bootlin.com>; Kamal Dasu <kamal.dasu@broadcom.com>;
> David Regan <dregan@mail.com>; Tom Rini <trini@konsulko.com>; Jiaxun
> Yang <jiaxun.yang@flygoat.com>
> Subject: Re: [PATCH 3/4] mtd: rawnand: brcmnand: Add BCMBCA read data
> bus interface
>
> On Wed, Nov 6, 2024 at 10:04 PM david regan <dregan@broadcom.com>
> wrote:
>
> > The BCMBCA broadband SoC integrates the NAND controller differently than
> > STB, iProc and other SoCs.  It has different endianness for NAND cache
> > data.
> >
> > Add a SoC read data bus shim for BCMBCA to meet the specific SoC need
> > and performance improvement using the optimized memcpy function on
> NAND
> > cache memory.
> >
> > This is a port of the upstream Linux patch to U-Boot.
> >
> > https://lore.kernel.org/linux-mtd/20240223034758.13753-12-
> william.zhang@broadcom.com/
> >
> > Signed-off-by: david regan <dregan@broadcom.com>
>
> The patch looks fine, but shouldn't the existing brcmnand_read_data_bus()
> in drivers/mtd/nand/raw/brcmnand/brcmnand.c also be replaced with
> brcmnand_soc_data_bus_read()?
>
> Maybe this is a problem in the upstream kernel driver though :/
>
The upstream kernel driver is correct because it uses exec_op to read the
parameter
page/ONFI data but exec_op is not available to the u-boot code base.  So
this new function
brcmnand_soc_data_bus_read tries to do that in generic way to handle the
endianness
difference between platforms. But I agree it causes confusing to existing
brcmnand_read_data_bus.

We are working on a better solution and will update.

> Yours,
> Linus Walleij

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4212 bytes --]

  reply	other threads:[~2024-11-08  2:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-06 21:03 [PATCH 0/4] Broadcom BCMBCA nand updates david regan
2024-11-06 21:03 ` [PATCH 1/4] mtd: nand: brcmnand: remove device specific nand driver files david regan
2024-11-07 14:09   ` Linus Walleij
2024-11-06 21:03 ` [PATCH 2/4] arm: dts: Use upstream dts david regan
2024-11-07 14:10   ` Linus Walleij
2024-11-07 14:58   ` Sumit Garg
2024-11-06 21:03 ` [PATCH 3/4] mtd: rawnand: brcmnand: Add BCMBCA read data bus interface david regan
2024-11-07 14:16   ` Linus Walleij
2024-11-08  2:22     ` William Zhang [this message]
2024-11-08  8:19       ` Michael Nazzareno Trimarchi
2024-11-06 21:03 ` [PATCH 4/4] mtd: rawnand: brcmnand: update log level messages david regan
2024-11-07 14:17   ` Linus Walleij

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=50f852ca0d50e518dc40b1545bc78d38@mail.gmail.com \
    --to=william.zhang@broadcom.com \
    --cc=anand.gore@broadcom.com \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=dregan@broadcom.com \
    --cc=dregan@mail.com \
    --cc=florian.fainelli@broadcom.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=kamal.dasu@broadcom.com \
    --cc=kursad.oney@broadcom.com \
    --cc=linus.walleij@linaro.org \
    --cc=michael@amarulasolutions.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=philippe.reynes@softathome.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox