linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Brian Norris <computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Scott Branden
	<scott.branden-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>,
	linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Yendapally Reddy Dhananjaya Reddy
	<yendapally.reddy-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>,
	Vikram Prakash
	<vikram.prakash-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>,
	Kamal Dasu <kdasu.kdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Jon Mason <jon.mason-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>,
	Andy Fung <andy.fung-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>,
	bcm-kernel-feedback-list
	<bcm-kernel-feedback-list-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>,
	linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH V2, 3/4] arm: dts: Add bcm-nsp and bcm958625k support
Date: Fri, 27 May 2016 14:29:57 -0700	[thread overview]
Message-ID: <5748BC55.5080507@gmail.com> (raw)
In-Reply-To: <20160527204731.GA121328-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>

On 05/27/2016 01:47 PM, Brian Norris wrote:
> Hi Florian,
> 
> (HTML mail. What is this??)

Made the mistake to reply with the Gmail application on my cellphone,
does not look like they addressed my feature request ;)


>>    > The partitions are applications specific so should be passed on the
>>    boot command line rather than embedded in the dts file.
> 
> Scott kinda has a point; they can be application specific, and so in
> some cases, you might want to avoid putting this description in DT, at
> least if there are good alternatives. The command line may or may not be
> a good alternative (I don't think it's a very good one).

Fair enough

> 
>>    Partitions are typically part of the platform definition and are
>>    suitable for being in Device Tree. AFAICT there is not a good way to
>>    supply partitions in an OF configuration other than putting them in DT
>>    at the moment. There is also a lot of platform inconsistency whether
>>    the command line is appended, extended or overrides the command line in
>>    the Device Tree, so I would not really consider this an issue here.
> 
> My intention is to allow cmdline to take priority, so you could have
> application-specific overrides. If that doesn't work correctly, then
> I'd consider it a bug. I know that has irked some people (e.g.,
> OpenWRT?), where they deal with products where they may not control the
> command line. But that's a separate issue IMO.

I think this behavior makes sense, my problem is more with the fact that
different architecture behave differently with respect to providing the
command line to the kernel, some support taking the bootloader argument
and merging it with the built-in/Device Tree bootargs command line, some
do not, it's not always obvious.

> 
> You might want to take a look at supporting a partition parser, if this
> really is so application-specific. I had all the pieces working late
> last year:
> 
> https://lkml.org/lkml/2015/12/5/9
> 
> but I unfortunately got distracted once the conversation on bindings
> derailed:
> 
> https://lkml.org/lkml/2015/12/12/31
> 
> I should probably revive that...
> 
> Anyway, if you utilize that, then you can specify which parser(s) are
> valid for your platform, rather than specifying the exact partition
> layout.

/me goes reading, thanks!
-- 
Florian
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2016-05-27 21:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-27 20:14 [PATCH V2, 1/4] dt: bindings: spi-bcm-qspi: NSP, NS2, BRCMSTB SoC bindings Kamal Dasu
     [not found] ` <1464380097-25125-1-git-send-email-kdasu.kdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-05-27 20:14   ` [PATCH V2, 2/4] spi: bcm-qspi: Add SPI flash and MSPI driver Kamal Dasu
     [not found]     ` <1464380097-25125-2-git-send-email-kdasu.kdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-05-27 20:31       ` Scott Branden
     [not found]         ` <5748AE99.8050303-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2016-05-27 20:42           ` Kamal Dasu
2016-05-27 20:14   ` [PATCH V2, 3/4] arm: dts: Add bcm-nsp and bcm958625k support Kamal Dasu
     [not found]     ` <1464380097-25125-3-git-send-email-kdasu.kdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-05-27 20:28       ` Scott Branden
     [not found]         ` <CAGVrzcZQMSVo4LvbqJ1jcx-f7M+psWQeHQfiRS3-L7JN+C_zuw@mail.gmail.com>
     [not found]           ` <CAGVrzcYfNTZWDAK8tW-HaALYXJo5zPjiWOxsB0mntCVdjnUwUg@mail.gmail.com>
     [not found]             ` <CAGVrzcbhoD1zDtvBXdm8DgzzXeP0MxAMtXduZMYv+BwpiwtgkQ@mail.gmail.com>
     [not found]               ` <CAGVrzcbhoD1zDtvBXdm8DgzzXeP0MxAMtXduZMYv+BwpiwtgkQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-27 20:47                 ` Brian Norris
     [not found]                   ` <20160527204731.GA121328-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2016-05-27 21:29                     ` Florian Fainelli [this message]
2016-05-27 20:14   ` [PATCH V2, 4/4] arm64: dts: Add ns2 SoC support Kamal Dasu
     [not found]     ` <1464380097-25125-4-git-send-email-kdasu.kdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-05-27 20:26       ` Scott Branden

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=5748BC55.5080507@gmail.com \
    --to=f.fainelli-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=andy.fung-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
    --cc=bcm-kernel-feedback-list-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
    --cc=computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=jon.mason-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
    --cc=kdasu.kdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=scott.branden-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
    --cc=vikram.prakash-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
    --cc=yendapally.reddy-dY08KVG/lbpWk0Htik3J/w@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).