From: Daniel Drake <dsd@laptop.org>
To: Jason Cooper <jason@lakedaemon.net>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>,
Bergmann Arnd <arnd@arndb.de>,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Grant Likely <grant.likely@linaro.org>,
Neil Zhang <zhangwm@marvell.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'
Date: Fri, 12 Jul 2013 10:05:45 -0600 [thread overview]
Message-ID: <CAMLZHHRrrHpSkNbabP9ALKBXemUw07=VmB6kBoD+4u05HQwQ_Q@mail.gmail.com> (raw)
In-Reply-To: <20130712155733.GZ11908@titan.lakedaemon.net>
On Fri, Jul 12, 2013 at 9:57 AM, Jason Cooper <jason@lakedaemon.net> wrote:
> This also means we should do a patch for stable v3.5+ appending the
> "mrvl,..." string to the drivers that had it removed improperly, as
> Daniel discovered. Daniel, since you are probably most familiar (and
> most able to test ;-) ), would you mind putting that patch together?
I will look at that. There was another case of a quiet mrvl->marvell
conversion that bit us around a year ago as well, so I will dig that
up too for consideration.
> So we don't have to keep it around forever, we could do as Arnd has
> suggested in the past (for an entirely different problem):
>
> /* assuming it goes in for v3.12 */
> if (WARN_ON(of_device_is_compatible(dev, "mrvl,..."))) {
> dev_info(&dev->dev, "compatible string \"mrvl,...\" being removed in v3.15\n");
> BUG_ON(LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0));
> }
>
> * I can't find where Arnd's suggestion was, so this hack is completely
> my own.
>
> Keep in mind, the above hack is just a suggestion, it makes my skin
> crawl just looking at it... I'm open to other ideas. Or, not doing it
> at all.
A new OpenFirmware or dtb file would want to keep the old mrvl
compatible string around in order to have compatibility with old
kernels. So I think that hack would have to be extended to "if device
is compatible with mrvl, but not marvell, then warn". And that seems
so ugly that my vote would be to avoid it. Especially while we don't
know of existing users who have a requirement of stability.
Daniel
next prev parent reply other threads:[~2013-07-12 16:05 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-09 6:42 [PATCH V3 0/3] bring up pxa988 with DT Neil Zhang
2013-07-09 6:42 ` [PATCH V3 1/3] dts: change Marvell prefix to 'marvell' Neil Zhang
[not found] ` <1373352166-10064-2-git-send-email-zhangwm-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
2013-07-09 12:49 ` Jason Cooper
2013-07-10 7:25 ` Neil Zhang
2013-07-10 12:20 ` Jason Cooper
2013-07-10 14:41 ` Daniel Drake
2013-07-10 8:19 ` Haojian Zhuang
2013-07-10 12:24 ` Jason Cooper
2013-07-10 14:08 ` Haojian Zhuang
[not found] ` <CAN1soZzMvront1-jcBW6-uRKNs0OZNGnmiOjKGZSM28bViB_8A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-10 21:50 ` Jason Cooper
2013-07-11 23:54 ` Haojian Zhuang
2013-07-12 15:10 ` Daniel Drake
2013-07-12 15:57 ` Jason Cooper
2013-07-12 16:05 ` Daniel Drake [this message]
2013-07-12 16:14 ` Jason Cooper
[not found] ` <CAMLZHHQGZvDssY-YxQ3ZW8FYhpG-H1-VbokOid33socRSPrMNw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-13 0:35 ` Haojian Zhuang
[not found] ` <CAN1soZzQz8PaHOwNf-Ec6G=ahhx_P8gaaX4fQnpX-Mqrepk_7g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-13 14:30 ` Daniel Drake
[not found] ` <20130710215041.GR11908-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-07-13 19:56 ` Olof Johansson
2013-07-15 4:39 ` Jason Cooper
2013-07-10 20:50 ` Matt Sealey
2013-07-10 21:49 ` Jason Cooper
2013-07-11 11:20 ` Neil Zhang
2013-07-14 19:29 ` Arnd Bergmann
[not found] ` <201307142129.43271.arnd-r2nGTMty4D4@public.gmane.org>
2013-07-17 13:37 ` Neil Zhang
2013-07-09 6:42 ` [PATCH V3 2/3] clocksource: mmp: support CLOCKSOURCE OF DECLARE Neil Zhang
2013-07-09 16:14 ` Thomas Petazzoni
2013-07-09 21:16 ` Arnd Bergmann
2013-07-10 5:58 ` Haojian Zhuang
2013-07-11 11:23 ` Neil Zhang
2013-07-11 23:51 ` Haojian Zhuang
2013-07-09 6:42 ` [PATCH V3 3/3] ARM: mmp: bring up pxa988 with device tree support Neil Zhang
2013-07-09 22:05 ` Arnd Bergmann
2013-07-11 11:35 ` Neil Zhang
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='CAMLZHHRrrHpSkNbabP9ALKBXemUw07=VmB6kBoD+4u05HQwQ_Q@mail.gmail.com' \
--to=dsd@laptop.org \
--cc=arnd@arndb.de \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@linaro.org \
--cc=haojian.zhuang@gmail.com \
--cc=jason@lakedaemon.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zhangwm@marvell.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 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).