All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: Sanjay Tandel <sanjay.tandel@rockwellcollins.com>
Cc: Matt Weber <matthew.weber@rockwellcollins.com>,
	linux-mtd <linux-mtd@lists.infradead.org>,
	Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH v2] mtd: map: new driver for NXP IFC
Date: Thu, 31 Aug 2017 08:32:53 +0200	[thread overview]
Message-ID: <20170831083253.76a8d637@bbrezillon> (raw)
In-Reply-To: <CAB0kKmy+Lx-w=t=vzMJSbahTh9jHLZ2z3aAOJhVwg-t4MPVjAQ@mail.gmail.com>

On Wed, 30 Aug 2017 19:03:48 -0500
Sanjay Tandel <sanjay.tandel@rockwellcollins.com> wrote:

> Hi Boris,
> 
> On Wed, Aug 30, 2017 at 2:34 PM, Boris Brezillon
> <boris.brezillon@free-electrons.com> wrote:
> > Hi,
> >
> > On Tue, 29 Aug 2017 14:47:27 -0500
> > Matt Weber <matthew.weber@rockwellcollins.com> wrote:
> >  
> >> From: Sanjay Tandel <sanjay.tandel@rockwellcollins.com>
> >>
> >> This patch adds map driver for parallel flash chips interfaced over
> >> a NXP Integrated Flash Controller (IFC). This driver allows either
> >> 8-bit or 16-bit accesses, depending on bank-width, to parallel flash
> >> chips(like Everspin MR0A16A), which are physically mapped to CPU's
> >> memory space. For unaligned accesses, it performs read-modify-write
> >> operations to keep access size same as bank-width.
> >>  
> >
> > Did you consider re-using the physmap driver [1] and adjust it to your
> > needs like the gemini [2] or versatile [3] drivers do? If you did, what
> > prevents you from using this approach?  
> 
> That approach would have coupled my driver with physmap driver, which has been
> modified in newer version of kernel. So patch would not have been backward
> compatible.

Backward compatible? I guess you meant backport-able, and I don't think
this is a good argument. We want Fixes to be backportable if they
impact several releases, not new drivers. If you want to backport your
driver to previous versions of Linux you can do it but it will never be
included in the official stable releases.

> 
> I intended to create independent driver without changing any existing
> driver code.

Please look at the versatile and gemini driver, there's almost nothing
to change in the physmap_of_core.c file, and you'll have your own
source file (+ Kconfig option) where you can tweak the map hooks as you
wish.

Regards,

Boris

  reply	other threads:[~2017-08-31  6:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-29 19:47 [PATCH v2] mtd: map: new driver for NXP IFC Matt Weber
2017-08-30  0:37 ` Prabhakar Kushwaha
2017-08-30 18:48   ` Sanjay Tandel
2017-08-30 19:34 ` Boris Brezillon
2017-08-31  0:03   ` Sanjay Tandel
2017-08-31  6:32     ` Boris Brezillon [this message]
2017-08-31 16:24       ` Sanjay Tandel

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=20170831083253.76a8d637@bbrezillon \
    --to=boris.brezillon@free-electrons.com \
    --cc=arnd@arndb.de \
    --cc=linux-mtd@lists.infradead.org \
    --cc=matthew.weber@rockwellcollins.com \
    --cc=sanjay.tandel@rockwellcollins.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 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.