From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Michael Turquette <mturquette@baylibre.com>
Cc: Fabio Estevam <festevam@gmail.com>,
Laszlo Fiat <laszlo.fiat@gmail.com>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Subject: Re: SDIO wifi card is not detected with 4.5-rc kernels
Date: Wed, 17 Feb 2016 22:11:36 +0000 [thread overview]
Message-ID: <20160217221136.GL19428@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <CAEG3pNDW6FefMhrgmJAFj+hGcoOZTuFDOx+NaA9sNSfD-ko+dQ@mail.gmail.com>
On Wed, Feb 17, 2016 at 02:03:47PM -0800, Michael Turquette wrote:
> Hi Russell, all,
>
> On Wed, Feb 17, 2016 at 1:18 PM, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
> > [ 52.175162] match->alloc failed: -517
> > [ 52.178874] sdhci-esdhc-imx 2190000.usdhc: mmc_of_parse failed: -517
> > [ 52.185271] sdhci-esdhc-imx 2190000.usdhc: imx probe failed
> >
> > -517 is -EPROBE_DEFER, and looking at what's in the clk_summary
> > debugfs file, my guess is that the clk_sdio gpio-gate-clock is not
> > being registered for some unknown reason. Adding Michael - any
> > ideas why gpio-gate-clock has stopped working between 4.4 and
> > present?
>
> So you are missing a gpio-gate clk in v4.5-rc1 that is present in v4.4?
It seems so.
arch/arm/boot/dts/imx6qdl-microsom.dtsi has:
clk_sdio: sdio-clock {
compatible = "gpio-gate-clock";
#clock-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_microsom_brcm_osc>;
enable-gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
};
and if I boot the kernel with that:
# grep sdio /sys/kernel/debug/clk/clk_summary
#
If I look at a system with v4.4 booted:
# grep sdio /sys/kernel/debug/clk/clk_summary
sdio-clock 1 1 0 0 0
So, this appears to be a regression.
> There isn't much to go on here, but mmc_of_parse can fail with
> mmc_gpiod_request_cd and mmc_gpiod_request_ro, in addition to
> mmc_pwrseq_alloc. I didn't follow the call chain to see if either of
> those are capable of spitting out -EPROBE_DEFER.
Yes, there's other possible failures, but:
[ 52.175162] match->alloc failed: -517
points to the mmc_pwrseq_alloc stuff - because that message is printed
from inside there. The pwrseq stuff consists of:
usdhc1_pwrseq: usdhc1_pwrseq {
compatible = "mmc-pwrseq-simple";
reset-gpios = <&gpio5 26 GPIO_ACTIVE_LOW>,
<&gpio6 0 GPIO_ACTIVE_LOW>;
clocks = <&clk_sdio>;
clock-names = "ext_clock";
};
some GPIOs, and that clock - the GPIOs are definitely present, and the
sdio clock is clearly missing from clk_summary.
> clk patches affecting the gpio-gate from 4.4 to 4.5-rc1 are:
>
> 7ed88aa clk: fix clk-gpio.c with optional clock= DT property
> 0b2e788 clk: gpio: handle error codes for of_clk_get_parent_count()
> c76eb11 clk: gpio: fix memory leak
> f66541b clk: gpio: Get parent clk names in of_gpio_clk_setup()
>
> Anyone that can reproduce, care to bisect?
This isn't -next, this is 4.5-rc4 that I'm seeing the failure on.
4.5-rc4 still has clk-gpio.c with:
CLK_OF_DECLARE(gpio_gate_clk, "gpio-gate-clock", of_gpio_gate_clk_setup);
Annoyingly, it's silent in the boot log about what's going on wrt
this clock.
--
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
next prev parent reply other threads:[~2016-02-17 22:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-17 18:06 SDIO wifi card is not detected with 4.5-rc kernels Laszlo Fiat
2016-02-17 18:41 ` Fabio Estevam
2016-02-17 21:18 ` Russell King - ARM Linux
2016-02-17 22:03 ` Michael Turquette
2016-02-17 22:11 ` Russell King - ARM Linux [this message]
2016-02-17 22:59 ` Michael Turquette
2016-02-17 23:02 ` Russell King - ARM Linux
2016-02-17 23:35 ` Russell King - ARM Linux
2016-03-24 17:45 ` Laszlo Fiat
2016-03-24 17:50 ` Fabio Estevam
2016-03-29 10:31 ` Ulf Hansson
2016-03-29 18:24 ` Laszlo Fiat
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=20160217221136.GL19428@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=festevam@gmail.com \
--cc=laszlo.fiat@gmail.com \
--cc=linux-mmc@vger.kernel.org \
--cc=mturquette@baylibre.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).