This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1471030 - mmc0: Unknown controller version (16). O2 Micro Integrated MMC/SD Controller (rev 01)
mmc0: Unknown controller version (16). O2 Micro Integrated MMC/SD Controller ...
Status: NEW
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
26
x86_64 Linux
unspecified Severity high
: ---
: ---
Assigned To: Kernel Maintainer List
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-14 05:43 EDT by feder
Modified: 2017-07-14 05:49 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description feder 2017-07-14 05:43:15 EDT
Description of problem:
O2 Micro, Inc. Integrated MMC/SD Controller (rev 01) does not work.


Version-Release number of selected component (if applicable):
kernel 4.11.9-300.fc26.x86_64


How reproducible:
It's reproducible on any hardware with integrated O2 Micro MMC/SD Controller (rev 01).


Steps to Reproduce:
1. Check dmesg after system boots up.
2. Insert the SD Card into the card reader slot.


Actual results:
During boot:
[    4.277691] mmc0: Unknown controller version (16). You may experience problems.
After inserting any SD Card:
[  716.767538] mmc0: Timeout waiting for hardware cmd interrupt.
[  716.767549] sdhci: =========== REGISTER DUMP (mmc0)===========
[  716.767557] sdhci: Sys addr: 0x00000000 | Version:  0x00001010
[  716.767563] sdhci: Blk size: 0x00000000 | Blk cnt:  0x00000000
[  716.767570] sdhci: Argument: 0x00000c00 | Trn mode: 0x00000000
[  716.767576] sdhci: Present:  0x01ff0001 | Host ctl: 0x00000001
[  716.767582] sdhci: Power:    0x0000000f | Blk gap:  0x00000000
[  716.767588] sdhci: Wake-up:  0x00000000 | Clock:    0x00002a07
[  716.767594] sdhci: Timeout:  0x00000000 | Int stat: 0x00000000
[  716.767601] sdhci: Int enab: 0x00ff0083 | Sig enab: 0x00ff0083
[  716.767607] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[  716.767613] sdhci: Caps:     0x038021a1 | Caps_1:   0x00000000
[  716.767619] sdhci: Cmd:      0x0000341a | Max curr: 0x00ffffff
[  716.767624] sdhci: Host ctl2: 0x00000000
[  716.767627] sdhci: ===========================================
And after extracting:
[  767.735355] mmc0: Card removed during transfer!
[  767.735364] mmc0: Resetting controller.


Expected results:
No error messages during boot and SD Card should work.


Additional info:
$ lspci
06:04.0 FireWire (IEEE 1394): O2 Micro, Inc. Firewire (IEEE 1394) (rev 02)
06:04.2 SD Host controller: O2 Micro, Inc. Integrated MMC/SD Controller (rev 01)
06:04.3 Mass storage controller: O2 Micro, Inc. Integrated MS/xD Controller (rev 01)

$ lsmod | grep mmc
mmc_core              139264  2 sdhci,sdhci_pci

$ modinfo mmc_core
filename:       /lib/modules/4.11.9-300.fc26.x86_64/kernel/drivers/mmc/core/mmc_core.ko.xz
license:        GPL
depends:        
intree:         Y
vermagic:       4.11.9-300.fc26.x86_64 SMP mod_unload 
signat:         PKCS#7
signer:         
sig_key:        
sig_hashalgo:   md4
parm:           use_spi_crc:bool

...

I tried to boot with options sdhci debug_quirks=0x40 ( http://www.adminempire.com/o2-sd-card-reader-fix-linux/ ) and sdhci debug_quirks2="0x4" ( http://www.0xf8.org/2016/01/workaround-for-broken-o2-micro-sd-card-reader-support-since-linux-kernel-version-4-1-8/ ), but it does not help.

Is there any solution for make this integrated SD-card reader to work (except to blacklisting sdhci and sdhci-pci mods)?

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