From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Cheng Ming Lin <linchengming884@gmail.com>
Cc: vigneshr@ti.com, linux-mtd@lists.infradead.org,
linux-kernel@vger.kernel.org, richard@nod.at,
alvinzhou@mxic.com.tw, leoyu@mxic.com.tw,
Cheng Ming Lin <chengminglin@mxic.com.tw>
Subject: Re: [PATCH 0/3] Add fixups for two-plane serial NAND flash
Date: Wed, 17 Jul 2024 10:16:10 +0200 [thread overview]
Message-ID: <20240717101610.792a4a11@xps-13> (raw)
In-Reply-To: <20240710011541.342682-1-linchengming884@gmail.com>
Hi Cheng,
linchengming884@gmail.com wrote on Wed, 10 Jul 2024 09:15:38 +0800:
> From: Cheng Ming Lin <chengminglin@mxic.com.tw>
>
> Macronix serial NAND flash with a two-plane structure
> requires insertion of Plane Select bit into the column
> address during the write_to_cache operation.
>
> Additionally, for MX35{U,F}2G14AC, insertion of Plane
> Select bit into the column address is required during
> the read_from_cache operation.
>
> In spinand.h, add struct spi_nand_fixups as SPI NAND
> fixup hooks.
>
> In macronix.c, add fixup functions and update ID table.
>
> In core.c, add an if statement to determine whether to
> insert the Plane Select bit for the column address.
>
> These flashes have been validated on Xilinx zynq-picozed
> board which included Macronix SPI Host.
>
> Cheng Ming Lin (3):
> include/linux/mtd/spinand.h: Add fixups for spinand
> mtd: spinand: macronix: Fixups for PLANE_SELECT_BIT
> mtd: spinand: Insert Plane Select bit for the column address
I believe patches 1 and 3 should be squashed and come before patch 2.
In general in your code, please avoid camelCase.
Finally, I am not convinced yet by this implementation, I don't know
what to propose yet, but I am not particularly in favor of adding such
hooks. Can you point to a datasheet (url and page) where I could get
more information?
>
> drivers/mtd/nand/spi/core.c | 7 +++++
> drivers/mtd/nand/spi/macronix.c | 51 +++++++++++++++++++++++++++++----
> include/linux/mtd/spinand.h | 17 +++++++++++
> 3 files changed, 69 insertions(+), 6 deletions(-)
>
Thanks,
Miquèl
prev parent reply other threads:[~2024-07-17 8:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-10 1:15 [PATCH 0/3] Add fixups for two-plane serial NAND flash Cheng Ming Lin
2024-07-10 1:15 ` [PATCH 1/3] include/linux/mtd/spinand.h: Add fixups for spinand Cheng Ming Lin
2024-07-10 1:15 ` [PATCH 2/3] mtd: spinand: macronix: Fixups for PLANE_SELECT_BIT Cheng Ming Lin
2024-07-10 22:09 ` kernel test robot
2024-07-10 1:15 ` [PATCH 3/3] mtd: spinand: Insert Plane Select bit for the column address Cheng Ming Lin
2024-07-17 8:16 ` Miquel Raynal [this message]
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=20240717101610.792a4a11@xps-13 \
--to=miquel.raynal@bootlin.com \
--cc=alvinzhou@mxic.com.tw \
--cc=chengminglin@mxic.com.tw \
--cc=leoyu@mxic.com.tw \
--cc=linchengming884@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=richard@nod.at \
--cc=vigneshr@ti.com \
/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