Re: RFC: PCI SD host controller driver & mmc/mmcsd modules improvements

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Thu, 06 Nov 2008 17:11:20 +0200
Lars Engels wrote:
> I just tried your latest version of mmc + sdhci but it does not detect
> any SD Card inserted:
> 
> sdhci0: <RICOH R5C822 SD> mem 0xe4003000-0xe40030ff irq 19 at device 6.3
> on pci2
> 
> Nothing happens when I insert a card.
> 
> The hardware is:
> sdhci0_at_pci0:2:6:3:      class=0x080500 card=0x30c3103c chip=0x08221180
> rev=0x20 hdr=0x00
>     vendor     = 'Ricoh Company, Ltd.'
>     device     = 'R5C832, R5C843 SDA Standard Compliant SD Host Controller'
>     class      = base peripheral
> none2_at_pci0:2:6:4:       class=0x088000 card=0x30c3103c chip=0x08431180
> rev=0x10 hdr=0x00
>     vendor     = 'Ricoh Company, Ltd.'
>     device     = 'unknown Ricoh MMC Host Controller'
>     class      = base peripheral
> none3_at_pci0:2:6:5:       class=0x088000 card=0x30c3103c chip=0x05921180
> rev=0x10 hdr=0x00
>     vendor     = 'Ricoh Company, Ltd.'
>     device     = '13871043 Ricoh Memory Stick Host Controller'
>     class      = base peripheral
> none4_at_pci0:2:6:6:       class=0x088000 card=0x30c3103c chip=0x08521180
> rev=0x10 hdr=0x00
>     vendor     = 'Ricoh Company, Ltd.'
>     device     = 'unknown Ricoh xD-Picture Card Host Controller'
>     class      = base peripheral

Looks like there is two MMC/SD controllers (first two devices) in your
chip while only one is detected as SD host controller. This thread looks
related to your problem:
http://list.drzeus.cx/pipermail/sdhci-devel/2007-September/002023.html

1. You may try to tune PCI configuration registers referred in that post.
2. Or (just an idea) you may try to power down unsupported devices with
setting hw.pci.do_power_nodriver=3 into the device.hints.
3. Or (it works fine for my ENE CB714 chip) you may try to add
0x08431180 chip ID into the list of supported SD controllers like it is
done for 0x08221180. They may be compatible enough.

If you try it, report please about results.

-- 
Alexander Motin
Received on Thu Nov 06 2008 - 14:11:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:37 UTC