From: Adrian Hunter <adrian.hunter@intel.com>
To: Laszlo Fiat <laszlo.fiat@gmail.com>, Nick Krause <xerofoify@gmail.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
linux-mmc <linux-mmc@vger.kernel.org>
Subject: Re: [PATCH] mmc: block: Use the mmc host device index as the mmcblk device index
Date: Mon, 16 May 2016 14:43:29 +0300 [thread overview]
Message-ID: <5739B261.2010009@intel.com> (raw)
In-Reply-To: <57398F0A.7070600@intel.com>
On 16/05/16 12:12, Adrian Hunter wrote:
> On 16/05/16 11:47, Ulf Hansson wrote:
>> + Nicholas Krause
>>
>> On 13 April 2016 at 20:19, Laszlo Fiat <laszlo.fiat@gmail.com> wrote:
>>> Adrian, Ulf,
>>>
>>> Here are the two v4.6-rc3 kernel dmesg with mmc-debug option, both
>>> without additional patches, one working case [1], one failing case
>>> [2], the working case has patch [3] reverted.
>>>
>>> I also uploaded the acpidump [4] for Teclast X80h Baytrail-T tablet.
>>>
>>> [1]: https://bugzilla.kernel.org/show_bug.cgi?id=112571#c11
>>> [2]: https://bugzilla.kernel.org/show_bug.cgi?id=112571#c10
>>> [3]: patch 520bd7a8b4152aacfbd34eb7f7a447354b631039 ("mmc: core:
>>> Optimize boot time by detecting cards simultaneously")
>>> [4]: https://bugzilla.kernel.org/show_bug.cgi?id=112571#c12
>>>
>>
>> Adrian, did you manage to get some time to look into the debug data
>> from this issue?
>
> Not yet.
>
>> I understand if you have been busy and no worries, although I don't
>> know who else to ping about this.
>
> I will have a look today.
>
>>
>> I don't want to us revert 520bd7a8b4152aacfbd34eb7f7a447354b631039,
>> because I believe it will just hide the problem in sdhci(-acpi).
>> Instead, I intend to wait for a proper fix, does that sounds
>> reasonable to you as well?
>
> Sure
Here is a patch that might help:
From: Adrian Hunter <adrian.hunter@intel.com>
Date: Mon, 16 May 2016 14:29:51 +0300
Subject: [PATCH] mmc: sdhci-acpi: Ensure connected devices are powered on
before probing
Some devices connected to the SDHCI controller may have
separate enabling lines that are controlled through GPIO.
These devices need to be powered on and enabled before
probing. This is to ensure all devices connected can be
seen by the controller.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
---
drivers/mmc/host/sdhci-acpi.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c
index b2d70ba6caa7..2d1c4870c285 100644
--- a/drivers/mmc/host/sdhci-acpi.c
+++ b/drivers/mmc/host/sdhci-acpi.c
@@ -378,7 +378,7 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
acpi_handle handle = ACPI_HANDLE(dev);
- struct acpi_device *device;
+ struct acpi_device *device, *child;
struct sdhci_acpi_host *c;
struct sdhci_host *host;
struct resource *iomem;
@@ -390,6 +390,11 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
if (acpi_bus_get_device(handle, &device))
return -ENODEV;
+ /* Power on the SDHCI controller and its children */
+ acpi_device_fix_up_power(device);
+ list_for_each_entry(child, &device->children, node)
+ acpi_device_fix_up_power(child);
+
if (acpi_bus_get_status(device) || !device->status.present)
return -ENODEV;
--
1.9.1
next prev parent reply other threads:[~2016-05-16 11:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-07 7:57 [PATCH] mmc: block: Use the mmc host device index as the mmcblk device index Ulf Hansson
2016-04-07 12:07 ` Jaehoon Chung
2016-04-07 13:07 ` Ulf Hansson
2016-04-14 1:25 ` Jaehoon Chung
2016-04-14 7:26 ` Ulf Hansson
2016-04-10 18:04 ` Laszlo Fiat
2016-04-11 8:25 ` Ulf Hansson
2016-04-11 12:46 ` Adrian Hunter
2016-04-12 18:15 ` Laszlo Fiat
2016-04-13 11:19 ` Adrian Hunter
2016-04-13 18:19 ` Laszlo Fiat
2016-05-16 8:47 ` Ulf Hansson
2016-05-16 9:12 ` Adrian Hunter
2016-05-16 11:43 ` Adrian Hunter [this message]
[not found] ` <5739F7C1.707@gmail.com>
2016-05-16 16:56 ` Laszlo Fiat
2016-05-16 20:30 ` Laszlo Fiat
2016-05-16 21:45 ` Ulf Hansson
2016-05-17 18:11 ` Laszlo Fiat
2016-04-12 6:59 ` 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=5739B261.2010009@intel.com \
--to=adrian.hunter@intel.com \
--cc=laszlo.fiat@gmail.com \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=xerofoify@gmail.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