public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Stefan Agner <stefan@agner.ch>
Cc: miquel.raynal@bootlin.com, boris.brezillon@bootlin.com,
	computersforpeace@gmail.com, dwmw2@infradead.org,
	marek.vasut@gmail.com, cyrille.pitchen@wedev4u.fr,
	richard@nod.at, bpringlemeir@gmail.com,
	marcel.ziswiler@toradex.com, linux-mtd@lists.infradead.org
Subject: Re: [PATCH v5 1/3] mtd: nand: vf610_nfc: make use of ->exec_op()
Date: Mon, 26 Feb 2018 23:04:07 +0100	[thread overview]
Message-ID: <20180226230407.20cd8bfd@xps13> (raw)
In-Reply-To: <20180226211855.30015-2-stefan@agner.ch>

Hi Stefan,

On Mon, 26 Feb 2018 22:18:53 +0100, Stefan Agner <stefan@agner.ch>
wrote:

> This reworks the driver to make use of ->exec_op() callback. The
> command sequencer of the VF610 NFC aligns well with the new ops
> interface.
> 
> The operations are translated to a NFC command code while filling
> the necessary registers. Instead of using the special status and
> read ID command codes (which require to read status/ID from
> special registers instead of the regular data area) the driver
> now now uses the main data buffer for all commands. This
> simplifies the driver as no special casing is needed.
> 
> For control data (status byte, id bytes and parameter page) the
> driver needs to reverse byte order for little endian CPUs since
> the controller seems to store the bytes in big endian order in
> the data buffer.
> 
> The current state seems to pass MTD tests on a Colibri VF61.
> 
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> ---
>  drivers/mtd/nand/raw/vf610_nfc.c | 411 +++++++++++++++++++++++++++++++++++++--
>  1 file changed, 399 insertions(+), 12 deletions(-)

I am fine with this version.

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>

Thanks for your work,
Miquèl

-- 
Miquel Raynal, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-02-26 22:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-26 21:18 [PATCH v5 0/3] mtd: nand: vf610_nfc: make use of ->exec_op() Stefan Agner
2018-02-26 21:18 ` [PATCH v5 1/3] " Stefan Agner
2018-02-26 22:04   ` Miquel Raynal [this message]
2018-02-27 21:28   ` Boris Brezillon
2018-03-03 22:04     ` Stefan Agner
2018-02-26 21:18 ` [PATCH v5 2/3] mtd: nand: vf610_nfc: remove old hooks Stefan Agner
2018-02-26 21:18 ` [PATCH v5 3/3] mtd: nand: vf610_nfc: support ONFI SET/GET_FEATURES commands Stefan Agner

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=20180226230407.20cd8bfd@xps13 \
    --to=miquel.raynal@bootlin.com \
    --cc=boris.brezillon@bootlin.com \
    --cc=bpringlemeir@gmail.com \
    --cc=computersforpeace@gmail.com \
    --cc=cyrille.pitchen@wedev4u.fr \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=marcel.ziswiler@toradex.com \
    --cc=marek.vasut@gmail.com \
    --cc=richard@nod.at \
    --cc=stefan@agner.ch \
    /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