linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Jonas Gorski <jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
Cc: Florian Fainelli
	<florian-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>,
	linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 5/6] spi/bcm63xx: move register definitions into the driver
Date: Fri, 11 Sep 2015 12:22:04 +0100	[thread overview]
Message-ID: <20150911112204.GG12027@sirena.org.uk> (raw)
In-Reply-To: <CAOiHx=mXBnfMx1SO+iG=BB6038c99YS8MkM8Nn-itHOoHzAJiQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

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

On Fri, Sep 11, 2015 at 12:27:02PM +0200, Jonas Gorski wrote:
> On Thu, Sep 10, 2015 at 9:10 PM, Florian Fainelli <florian-p3rKhJxN3npAfugRpC6u6w@public.gmane.org> wrote:

> > This is a little fragile, I would rather create more specialized
> > platform_id names, like "bcm6348-spi" and "bcm6358-spi", very much like
> > what the FEC driver does, such that:

> Can we even associate more than one name with a driver? Else I would
> need to split this driver into two, and that sounds like a lot more
> work for IMHO not much gain, and a lot more opportunities to
> accidentially break things ;-)

Yes, of course - like Florian says look at the FEC driver for one
example.  Just set id_table.

> I'm also trying to not touch arch stuff, to keep the changes local to
> spi (easier merging). Apart from that, this is the legacy platform
> device registration route where we know exactly which values to
> expect, and the device tree path won't go there, so I would think this
> is okay for devices where we have full control over this (i.e. within
> the kernel).

Making the code more obscure and fragile to avoid such a minor issue
with integrating changes sounds like it's going in the wrong direction -
it creates long term complexity for a short term gain.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  parent reply	other threads:[~2015-09-11 11:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10 14:11 [PATCH 0/6] spi/bcm63xx: cleanup and decouple from arch code Jonas Gorski
     [not found] ` <1441894304-22316-1-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2015-09-10 14:11   ` [PATCH 1/6] spi/bcm63xx: remove unused rx_tail variable Jonas Gorski
     [not found]     ` <1441894304-22316-2-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2015-09-14 18:54       ` Applied "spi/bcm63xx: remove unused rx_tail variable" to the spi tree Mark Brown
2015-09-10 14:11   ` [PATCH 2/6] spi/bcm63xx: always use a fixed number of CS Jonas Gorski
     [not found]     ` <1441894304-22316-3-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2015-09-14 18:54       ` Applied "spi/bcm63xx: always use a fixed number of CS" to the spi tree Mark Brown
2015-09-10 14:11   ` [PATCH 3/6] spi/bcm63xx: hardcode busnum to 0 Jonas Gorski
     [not found]     ` <1441894304-22316-4-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2015-09-14 18:54       ` Applied "spi/bcm63xx: hardcode busnum to 0" to the spi tree Mark Brown
2015-09-10 14:11   ` [PATCH 4/6] spi/bcm63xx: replace custom io accessors with standard ones Jonas Gorski
     [not found]     ` <1441894304-22316-5-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2015-09-14 18:54       ` Applied "spi/bcm63xx: replace custom io accessors with standard ones" to the spi tree Mark Brown
2015-09-10 14:11   ` [PATCH 5/6] spi/bcm63xx: move register definitions into the driver Jonas Gorski
     [not found]     ` <1441894304-22316-6-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2015-09-10 19:10       ` Florian Fainelli
     [not found]         ` <55F1D5AC.5020407-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2015-09-11 10:27           ` Jonas Gorski
     [not found]             ` <CAOiHx=mXBnfMx1SO+iG=BB6038c99YS8MkM8Nn-itHOoHzAJiQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-11 11:22               ` Mark Brown [this message]
2015-09-10 14:11   ` [PATCH 6/6] spi/bcm63xx: move message control word description to register offsets Jonas Gorski

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=20150911112204.GG12027@sirena.org.uk \
    --to=broonie-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=florian-p3rKhJxN3npAfugRpC6u6w@public.gmane.org \
    --cc=jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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).