From: Boris Brezillon <boris.brezillon@bootlin.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Richard Weinberger <richard@nod.at>,
David Woodhouse <dwmw2@infradead.org>,
Brian Norris <computersforpeace@gmail.com>,
Marek Vasut <marek.vasut@gmail.com>,
Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>,
Han Xu <han.xu@nxp.com>,
juliensu@mxic.com.tw, linux-mtd@lists.infradead.org,
jocelyncarroue@macronix.com
Subject: Re: [PATCH RESEND v2 0/2] Migrate the GPMI driver to use NAND core timings
Date: Wed, 21 Mar 2018 10:52:00 +0100 [thread overview]
Message-ID: <20180321105200.417e2d0d@bbrezillon> (raw)
In-Reply-To: <20180302143840.3157-1-miquel.raynal@bootlin.com>
On Fri, 2 Mar 2018 15:38:38 +0100
Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> Hello,
>
> The GPMI NAND controller driver has its own timings logic while the core
> also has its own that should be preferred to avoid code duplication.
> This series migrates the driver to use the ->setup_data_interface()
> hook, preferred way to handle timings negotiation between controllers
> and NAND chips.
>
> This driver has stronger requirements in terms of respect of the ONFI
> specification than the core has, and last time I sent changes in the
> GPMI timings section, this was raised to me as a no go. Since then, I
> sent a series improving timings handling in the core, see [1] and [2],
> so this kind of change that moves the shared logic in the core can be
> applied safely.
Applied.
Thanks,
Boris
>
> [1] http://lists.infradead.org/pipermail/linux-mtd/2018-March/079456.html
> [2] http://lists.infradead.org/pipermail/linux-mtd/2018-March/079460.html
>
> Thank you,
> Miquèl
>
>
> Changes since v2:
> =================
> - Fix ->select_chip(): chipnr == 0 is valid.
> - Fix ->select_chip(): hw.must_apply_timings must be reset after a
> ->setup_data_interface().
>
> Changes since v1:
> =================
> - Removed inline on non-static gpmi_enable/disable_clk() functions.
> - Rewording some lines of the patch.
> - Use tREA_max value provided by the core instead of a locally defined
> value.
> - Check ->conf in gpmi_setup_data_interface() instead of
> ->onfi_timing_mode_default (use tRC).
> - Removed useless copy of hw.timing_mode.
> - Moved gpmi_nfc_apply_timings() to ->select_chip().
> - Canceled the useless move of one structure.
>
>
> Miquel Raynal (2):
> mtd: rawnand: gpmi: support ->setup_data_interface()
> mtd: rawnand: gpmi: use core timings instead of an empirical
> derivation
>
> drivers/mtd/nand/raw/gpmi-nand/gpmi-lib.c | 811 +++++------------------------
> drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 82 ++-
> drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h | 131 +----
> drivers/mtd/nand/raw/gpmi-nand/gpmi-regs.h | 5 +
> 4 files changed, 185 insertions(+), 844 deletions(-)
>
--
Boris Brezillon, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
prev parent reply other threads:[~2018-03-21 9:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-02 14:38 [PATCH RESEND v2 0/2] Migrate the GPMI driver to use NAND core timings Miquel Raynal
2018-03-02 14:38 ` [PATCH RESEND v2 1/2] mtd: rawnand: gpmi: support ->setup_data_interface() Miquel Raynal
2018-03-02 14:38 ` [PATCH RESEND v2 2/2] mtd: rawnand: gpmi: use core timings instead of an empirical derivation Miquel Raynal
2018-03-21 9:52 ` Boris Brezillon [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=20180321105200.417e2d0d@bbrezillon \
--to=boris.brezillon@bootlin.com \
--cc=computersforpeace@gmail.com \
--cc=cyrille.pitchen@wedev4u.fr \
--cc=dwmw2@infradead.org \
--cc=han.xu@nxp.com \
--cc=jocelyncarroue@macronix.com \
--cc=juliensu@mxic.com.tw \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.com \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
/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;
as well as URLs for NNTP newsgroup(s).