From: Scott Wood <scottwood@freescale.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Lu Yangbo-B47093 <yangbo.lu@freescale.com>,
linux-mmc <linux-mmc@vger.kernel.org>,
Chris Ball <chrisball@gmail.com>
Subject: Re: [PATCH v2, 2/2] mmc: sdhci-pltfm: enable interrupt mode to detect card
Date: Wed, 20 May 2015 21:59:03 -0500 [thread overview]
Message-ID: <1432177143.27761.193.camel@freescale.com> (raw)
In-Reply-To: <CAPDyKFpw9Uk14Ovfwc7_Gfu78pZZMO4qeD_BiBOmojP5WSNm8Q@mail.gmail.com>
On Tue, 2015-05-19 at 09:46 +0200, Ulf Hansson wrote:
> [...]
>
> >> > Those platforms could still update their DT files and add "broken-cd",
> >> > since that would be the proper description of the HW. Once that's done,
> >> > it would enable you to remove the SDHCI_QUIRK_BROKEN_CARD_DETECTION as
> >> > default, right?
> >> >
> >> Yes, and if remove SDHCI_QUIRK_BROKEN_CARD_DETECTION as default, 'borken-cd' would be needed to be added for most platforms using esdhc.
> >
> > I was OK with changing the device tree if it just meant that things that
> > previously didn't work now work. I'm not OK with requiring the device
> > trees to change in order for things that already work to stay working.
>
> I get your point, but.. considering maintaince from mmc code point of
> view, I don't like the suggested approach in $subject patch.
>
> As this patch anyway requires updating DTBs,
Not in a way that causes things that used to work to stop working if
someone uses a new kernel with an old device tree.
> I would like to know the involved platforms and at what level of
> deployment the DTBs are in. In principle what I am asking is, how hard
> is it to update the DTBs?
The change you asked for would affect all platforms with esdhc that are
not on the list being excluded by this patch. I counted 29 files in
arch/powerpc/boot/dts with "esdhc". The oldest patch I see introducing
esdhc to a device tree is 5761bc5dae6 from 2008. This is not new
stuff.
The patch adding the quirk to the esdhc files is 3bb2a9f6a7c08 from
2011, so the driver behavior is also not new.
> BTW, is it only sdhci-of-esdhc.c we are discussing here?
It's only sdhci-of-esdhc.c that would be affected by this patch (though
sdhci-esdhc-imx also sets SDHCI_QUIRK_BROKEN_CARD_DETECTION by default).
If the tests are moved into that file, would you be OK with it?
-Scott
next prev parent reply other threads:[~2015-05-21 3:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-15 2:46 [PATCH v2, 2/2] mmc: sdhci-pltfm: enable interrupt mode to detect card Yangbo Lu
2015-05-18 9:03 ` Ulf Hansson
[not found] ` <BY1PR0301MB11920E68DD9C4B17F1B1373FF2C40@BY1PR0301MB1192.namprd03.prod.outlook.com>
2015-05-18 9:49 ` Ulf Hansson
[not found] ` <BY1PR0301MB1192B676B858B31C3B1893C1F2C40@BY1PR0301MB1192.namprd03.prod.outlook.com>
2015-05-18 20:43 ` Scott Wood
[not found] ` <DM2PR0301MB1199D37E394B9CF805CD220DF2C30@DM2PR0301MB1199.namprd03.prod.outlook.com>
2015-05-19 2:27 ` Scott Wood
[not found] ` <DM2PR0301MB1199F34464FC9F372A74ED60F2C30@DM2PR0301MB1199.namprd03.prod.outlook.com>
2015-05-19 3:06 ` Scott Wood
2015-05-19 7:46 ` Ulf Hansson
2015-05-21 2:59 ` Scott Wood [this message]
2015-05-22 13:28 ` Ulf Hansson
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=1432177143.27761.193.camel@freescale.com \
--to=scottwood@freescale.com \
--cc=chrisball@gmail.com \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=yangbo.lu@freescale.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