From: Sekhar Nori <nsekhar-l0cyMroinI0@public.gmane.org>
To: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
Cc: Chris Ball <cjb-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org>,
Benoit Cousson <bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>,
Grant Likely
<grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>,
Device Tree Mailing List
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Linux OMAP Mailing List
<linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Koen Kooi
<koen-QLwJDigV5abLmq1fohREcCpxlwaOVQ5f@public.gmane.org>,
Linux MMC Mailing List
<linux-mmc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 0/3] mmc: omap_hsmmc: get rid of ti,non-removable
Date: Mon, 16 Sep 2013 17:55:32 +0530 [thread overview]
Message-ID: <5236F8BC.1000305@ti.com> (raw)
In-Reply-To: <20130913153732.GO7189-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
On Friday 13 September 2013 09:07 PM, Tony Lindgren wrote:
> * Sekhar Nori <nsekhar-l0cyMroinI0@public.gmane.org> [130913 03:18]:
>> Get rid of TI specific binding ti,non-removable in favour of the
>> generic binding present for the same purpose.
>
> Looks like there's a different handling in the MMC driver
> for no_regulator_off_init that's needed for eMMC. That needs to
> be sorted out and tested first.
Okay. I couldn't really get the eMMC on my board to detect, but
apparently Koen has been able to get it to work. I am not really deep
into details of HSMMC driver so will check with Balaji on what needs to
be done here.
>> This patch set does not support the old binding anymore. So, yes,
>> it does introduce an ABI breakage. IMHO, it is not really worth
>> supporting both bindings ATM since DT-usage in OMAP is still very
>> nascent and almost always DTB and uImage are upgraded together.
>
> The old bindings must be supported. It's not like we can just drop
> them. We should just keep the old binding and parse it the same way
> as the generic binding. That's a minimal amount of code.
Yes, its minimal amount of code but its code that will very likely never
get exercised in future because of the reasons I mentioned above. I fear
in time we will accumulate a lot of unused code this way.
Anyway, since you don't feel its okay to remove the old binding, I will
go ahead and mark the old binding as deprecated. But perhaps we can
come-up with some time frame within which users of old .dtb can upgrade
their .dtb or consider never upgrading to a newer kernel? This sounds
eerily similar to feature-removal-schedule.txt and yeah I am aware of
what happened to that. But I still put it here since this problem of DTB
compatibility is not going to go away.
One thing that might help is a kernel configuration that does not
support deprecated bindings so users of old dtbs can actually see what
deprecated bindings they are using. This way they can probably plan for
a dtb upgrade better. So in driver you would do something like:
if (of_support_deprecated_bindings() &&
of_find_property(np, "ti,non-removable", NULL)) {
.. do something ..
}
of_support_deprecated_bindings() would return based on a config option.
Thanks,
Sekhar
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-09-16 12:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 10:09 [PATCH 0/3] mmc: omap_hsmmc: get rid of ti,non-removable Sekhar Nori
2013-09-13 10:09 ` [PATCH 1/3] mmc: omap_hsmmc: remove TI specific DT binding for non removable cards Sekhar Nori
[not found] ` <cover.1379066249.git.nsekhar-l0cyMroinI0@public.gmane.org>
2013-09-13 10:09 ` [PATCH 2/3] ARM: OMAP2+: DT: start using generic binding for non-removable mmc cards Sekhar Nori
2013-09-13 10:09 ` [PATCH 3/3] ARM: OMAP2+: BBB DT: mark eMMC as non removable Sekhar Nori
[not found] ` <f77adcf96d225b43e38058ddadcab76a9df6914a.1379066249.git.nsekhar-l0cyMroinI0@public.gmane.org>
2013-09-13 10:11 ` Koen Kooi
2013-09-13 11:03 ` Sekhar Nori
2013-09-13 15:37 ` [PATCH 0/3] mmc: omap_hsmmc: get rid of ti,non-removable Tony Lindgren
[not found] ` <20130913153732.GO7189-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2013-09-13 22:07 ` Balaji T K
[not found] ` <52338CB2.1040100-l0cyMroinI0@public.gmane.org>
2013-09-16 12:35 ` Sekhar Nori
2013-09-16 12:25 ` Sekhar Nori [this message]
2013-09-18 18:58 ` Tony Lindgren
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=5236F8BC.1000305@ti.com \
--to=nsekhar-l0cymroini0@public.gmane.org \
--cc=bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \
--cc=cjb-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=koen-QLwJDigV5abLmq1fohREcCpxlwaOVQ5f@public.gmane.org \
--cc=linux-mmc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org \
--cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@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).