Bug 105381 - MMC doesn't work because of Crystal Cove pinctrl
Summary: MMC doesn't work because of Crystal Cove pinctrl
Status: CLOSED OBSOLETE
Alias: None
Product: ACPI
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: acpi_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-02 12:31 UTC by Bastien Nocera
Modified: 2016-04-01 03:21 UTC (History)
3 users (show)

See Also:
Kernel Version: 4.2.0-300.fc23.x86_64
Subsystem:
Regression: No
Bisected commit-id:


Attachments
full boot (280.10 KB, text/plain)
2015-10-02 12:31 UTC, Bastien Nocera
Details

Description Bastien Nocera 2015-10-02 12:31:20 UTC
Created attachment 189321 [details]
full boot

This is on a Surface 3.

DSDT is available at:
https://bugzilla.kernel.org/attachment.cgi?id=187171

Oct 02 07:33:47 localhost kernel: sdhci: Secure Digital Host Controller Interface driver
Oct 02 07:33:47 localhost kernel: sdhci: Copyright(c) Pierre Ossman
Oct 02 07:33:47 localhost kernel: sdhci-acpi 80860F14:00: No vmmc regulator found
Oct 02 07:33:47 localhost kernel: sdhci-acpi 80860F14:00: No vqmmc regulator found
Oct 02 07:33:47 localhost kernel: genirq: Flags mismatch irq 0. 00000080 (mmc0) vs. 00002001 (Crystal Cove)
Oct 02 07:33:47 localhost kernel: CPU: 0 PID: 960 Comm: systemd-udevd Tainted: G        W       4.2.0-300.fc23.x86_64 #1
Oct 02 07:33:47 localhost kernel: Hardware name: Microsoft Corporation Surface 3/Surface 3, BIOS 1.50310.318 03/10/2015
Oct 02 07:33:47 localhost kernel:  0000000000000000 000000000130760d ffff880137c17988 ffffffff817712aa
Oct 02 07:33:47 localhost kernel:  0000000000000000 ffff8800b3a07f80 ffff880137c179e8 ffffffff810f7f00
Oct 02 07:33:47 localhost kernel:  0000000000000296 ffff88013a73a2a4 ffff8800b5895a20 000000000130760d
Oct 02 07:33:47 localhost kernel: Call Trace:
Oct 02 07:33:47 localhost kernel:  [<ffffffff817712aa>] dump_stack+0x45/0x57
Oct 02 07:33:47 localhost kernel:  [<ffffffff810f7f00>] __setup_irq+0x550/0x5a0
Oct 02 07:33:47 localhost kernel:  [<ffffffffa038b710>] ? sdhci_finish_command+0x140/0x140 [sdhci]
Oct 02 07:33:47 localhost kernel:  [<ffffffff810f80d7>] request_threaded_irq+0xf7/0x1a0
Oct 02 07:33:47 localhost kernel:  [<ffffffffa038941b>] sdhci_add_host+0x79b/0xe10 [sdhci]
Oct 02 07:33:47 localhost kernel:  [<ffffffffa039f561>] sdhci_acpi_probe+0x321/0x440 [sdhci_acpi]
Oct 02 07:33:47 localhost kernel:  [<ffffffff814d2254>] platform_drv_probe+0x34/0x90
Oct 02 07:33:47 localhost kernel:  [<ffffffff814d00c4>] driver_probe_device+0x1f4/0x450
Oct 02 07:33:47 localhost kernel:  [<ffffffff814d03b0>] __driver_attach+0x90/0xa0
Oct 02 07:33:47 localhost kernel:  [<ffffffff814d0320>] ? driver_probe_device+0x450/0x450
Oct 02 07:33:47 localhost kernel:  [<ffffffff814cdb8c>] bus_for_each_dev+0x6c/0xc0
Oct 02 07:33:47 localhost kernel:  [<ffffffff814cf8ce>] driver_attach+0x1e/0x20
Oct 02 07:33:47 localhost kernel:  [<ffffffff814cf41b>] bus_add_driver+0x1eb/0x280
Oct 02 07:33:47 localhost kernel:  [<ffffffffa0008000>] ? 0xffffffffa0008000
Oct 02 07:33:47 localhost kernel:  [<ffffffff814d0c20>] driver_register+0x60/0xe0
Oct 02 07:33:47 localhost kernel:  [<ffffffff814d219a>] __platform_driver_register+0x4a/0x50
Oct 02 07:33:47 localhost kernel:  [<ffffffffa0008017>] sdhci_acpi_driver_init+0x17/0x1000 [sdhci_acpi]
Oct 02 07:33:47 localhost kernel:  [<ffffffff81002123>] do_one_initcall+0xb3/0x200
Oct 02 07:33:47 localhost kernel:  [<ffffffff811ffb1e>] ? kmem_cache_alloc_trace+0x19e/0x220
Oct 02 07:33:47 localhost kernel:  [<ffffffff817704dc>] ? do_init_module+0x28/0x1e7
Oct 02 07:33:47 localhost kernel:  [<ffffffff81770514>] do_init_module+0x60/0x1e7
Oct 02 07:33:47 localhost kernel:  [<ffffffff8112306f>] load_module+0x20ef/0x2730
Oct 02 07:33:47 localhost kernel:  [<ffffffff8111f410>] ? __symbol_put+0x60/0x60
Oct 02 07:33:47 localhost kernel:  [<ffffffff81123804>] SyS_init_module+0x154/0x1a0
Oct 02 07:33:47 localhost kernel:  [<ffffffff81023885>] ? syscall_trace_leave+0xb5/0x110
Oct 02 07:33:47 localhost kernel:  [<ffffffff81777cae>] entry_SYSCALL_64_fastpath+0x12/0x71
Oct 02 07:33:47 localhost kernel: mmc0: Failed to request IRQ 0: -16
Oct 02 07:33:47 localhost kernel: sdhci-acpi: probe of 80860F14:00 failed with error -16
Oct 02 07:33:47 localhost kernel: sdhci-acpi 80860F14:01: failed to setup card detect gpio 
Oct 02 07:33:47 localhost kernel: sdhci-acpi 80860F14:01: No vmmc regulator found
Oct 02 07:33:47 localhost kernel: sdhci-acpi 80860F14:01: No vqmmc regulator found
Oct 02 07:33:47 localhost kernel: mmc0: SDHCI controller on ACPI [80860F14:01] using ADMA
Comment 1 Bastien Nocera 2015-10-02 12:36:44 UTC
genirq: Flags mismatch irq 0. 00000080 (mmc0) vs. 00002001 (Crystal Cove)

That would be:
MMC0 flags = IRQF_SHARED
and
Crystal Cove flags = IRQF_ONESHOT | IRQF_TRIGGER_RISING
Comment 2 Bastien Nocera 2015-10-02 12:43:53 UTC
CONFIG_GPIO_CRYSTAL_COVE=y is set in the config.
Comment 3 Bastien Nocera 2015-10-05 20:06:38 UTC
Looks fixed in newer kernels.

Note You need to log in before you can comment on or make changes to this bug.