All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Sekhar Nori <nsekhar@ti.com>
Cc: Chris Ball <cjb@laptop.org>,
	Benoit Cousson <bcousson@baylibre.com>,
	Grant Likely <grant.likely@linaro.org>,
	Rob Herring <rob.herring@calxeda.com>,
	Device Tree Mailing List <devicetree@vger.kernel.org>,
	Linux OMAP Mailing List <linux-omap@vger.kernel.org>,
	Koen Kooi <koen@dominion.thruhere.net>,
	Linux MMC Mailing List <linux-mmc@vger.kernel.org>
Subject: Re: [PATCH 0/3] mmc: omap_hsmmc: get rid of ti,non-removable
Date: Wed, 18 Sep 2013 11:58:19 -0700	[thread overview]
Message-ID: <20130918185818.GC9994@atomide.com> (raw)
In-Reply-To: <5236F8BC.1000305@ti.com>

* Sekhar Nori <nsekhar@ti.com> [130916 05:33]:
> On Friday 13 September 2013 09:07 PM, Tony Lindgren wrote:
> > * Sekhar Nori <nsekhar@ti.com> [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.

I think the issue is that until we have a SCM driver module setting
up the PBIAS register as a regulator, eMMC cards won't work without
ti,non-removable.
 
> >> 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.

Hey it's an ABI :)
 
> 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.

But before doing that, we first must fix the issue for still
needing ti,non-removable.
 
> 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.

Hmm yeah maybe that should be discussed separately on the
device tree mailing list.

Regards,

Tony

      reply	other threads:[~2013-09-18 18:58 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
2013-09-18 18:58         ` Tony Lindgren [this message]

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=20130918185818.GC9994@atomide.com \
    --to=tony@atomide.com \
    --cc=bcousson@baylibre.com \
    --cc=cjb@laptop.org \
    --cc=devicetree@vger.kernel.org \
    --cc=grant.likely@linaro.org \
    --cc=koen@dominion.thruhere.net \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=nsekhar@ti.com \
    --cc=rob.herring@calxeda.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.