From: Andre Przywara <andre.przywara@arm.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [linux-sunxi] [PATCH 7/9] mmc: sunxi: Honour non-removable property in DT
Date: Fri, 25 Jan 2019 09:28:23 +0000 [thread overview]
Message-ID: <20190125092823.4dfc40ea@donnerap.cambridge.arm.com> (raw)
In-Reply-To: <CAMty3ZBm9Nrt1bnGM9-WigB2WgLL5-Q+S077M6pyhTEJ8z-ZAQ@mail.gmail.com>
On Fri, 25 Jan 2019 12:46:38 +0530
Jagan Teki <jagan@amarulasolutions.com> wrote:
> On Sat, Jan 19, 2019 at 7:03 AM Andre Przywara
> <andre.przywara@arm.com> wrote:
> >
> > If a board DT describes a cd-gpios property, but also marks the
> > storage as non-removable, we must ignore the GPIO (as Linux does).
> >
> > Teach the DM_MMC part of the Allwinner MMC driver about the
> > non-removable DT property, to fix DM_MMC access on the SoPine and
> > Pine64-LTS board.
> >
> > Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> > ---
> > drivers/mmc/sunxi_mmc.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
> > index 87424c23dc..374775194d 100644
> > --- a/drivers/mmc/sunxi_mmc.c
> > +++ b/drivers/mmc/sunxi_mmc.c
> > @@ -658,7 +658,8 @@ static int sunxi_mmc_probe(struct udevice *dev)
> > return ret;
> >
> > /* This GPIO is optional */
> > - if (!gpio_request_by_name(dev, "cd-gpios", 0,
> > &priv->cd_gpio,
> > + if (!dev_read_bool(dev, "non-removable") &&
> > + !gpio_request_by_name(dev, "cd-gpios", 0,
> > &priv->cd_gpio,
>
> How about fixing this in dts?
Sure, eventually, once I confirmed that there is really no CD wire
connected. But since Linux can cope with that, U-Boot should do so as
well.
Cheers,
Andre.
next prev parent reply other threads:[~2019-01-25 9:28 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-19 1:30 [U-Boot] [PATCH 0/9] sunxi: enable DM_MMC Andre Przywara
2019-01-19 1:30 ` [U-Boot] [PATCH 1/9] sunxi: clk: add MMC gates/resets Andre Przywara
2019-01-19 1:30 ` [U-Boot] [PATCH 2/9] sunxi: clk: A80: add MMC clock support Andre Przywara
2019-01-21 9:31 ` [U-Boot] [linux-sunxi] " Jagan Teki
2019-01-21 9:34 ` Chen-Yu Tsai
2019-01-21 9:38 ` Andre Przywara
2019-01-21 10:02 ` Chen-Yu Tsai
2019-01-21 10:12 ` Andre Przywara
2019-01-21 10:29 ` Chen-Yu Tsai
2019-01-19 1:30 ` [U-Boot] [PATCH 3/9] mmc: sunxi: Add DM clk and reset support Andre Przywara
2019-01-19 1:30 ` [U-Boot] [PATCH 4/9] mmc: sunxi: Add H6 support Andre Przywara
2019-01-19 1:30 ` [U-Boot] [PATCH 5/9] mmc: sunxi: Add missing compatible strings Andre Przywara
2019-01-19 1:30 ` [U-Boot] [PATCH 6/9] mmc: sunxi: Add A80 support Andre Przywara
2019-01-19 1:30 ` [U-Boot] [PATCH 7/9] mmc: sunxi: Honour non-removable property in DT Andre Przywara
2019-01-25 7:16 ` [U-Boot] [linux-sunxi] " Jagan Teki
2019-01-25 9:28 ` Andre Przywara [this message]
2019-01-29 18:20 ` Jagan Teki
2019-01-19 1:30 ` [U-Boot] [PATCH 8/9] arm: sunxi: Enable DM_MMC Andre Przywara
2019-01-31 10:04 ` Simon Glass
2019-01-19 1:30 ` [U-Boot] [PATCH 9/9] mmc: sunxi: Mark end of DM_MMC #ifdefs Andre Przywara
2019-01-31 10:04 ` Simon Glass
2019-01-31 14:55 ` Andre Przywara
2019-01-19 18:32 ` [U-Boot] [PATCH 0/9] sunxi: enable DM_MMC Vasily Khoruzhick
2019-01-19 20:33 ` André Przywara
2019-01-19 23:42 ` Vasily Khoruzhick
2019-01-20 19:51 ` [U-Boot] [linux-sunxi] " Priit Laes
2019-01-21 0:54 ` André Przywara
2019-01-21 8:22 ` Priit Laes
2019-01-21 8:51 ` Andre Przywara
2019-01-21 9:10 ` Priit Laes
2019-01-22 9:49 ` Lukasz Majewski
2019-01-21 9:22 ` Jagan Teki
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=20190125092823.4dfc40ea@donnerap.cambridge.arm.com \
--to=andre.przywara@arm.com \
--cc=u-boot@lists.denx.de \
/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