Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Aug 2009 10:40:18 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        ales-76@seznam.cz
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: mmc does not work on HP NC6220
Message-ID:  <4A9243E2.7000302@FreeBSD.org>
In-Reply-To: <529.760-10303-5478473-1251043470@seznam.cz>
References:  <529.760-10303-5478473-1251043470@seznam.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
ales-76@seznam.cz wrote:
> I have tried the hack and it works. By changing the one register value 
> in pci config space of the FlashMedia one can reroute the card slot to 
> the SD controller. The config of the controller after the manipulation 
> looks like this:
> 
> The process of the reconfiguration is easy:
> 
> setpci -s 06.3 4c=0x22
> 
> My instistence on pciutils is due to my Linux background, pciconf can do 
> the trick as well:
> 
> pciconf -w pci0:2:6:3 76 34
> 
> You can check the result with:
> 
> lspci -s 02:6.3 -vvvxxx
> or
> pciconf -r pci0:2:6:3 76
> 
> Then I was able to see mmcsd0 device in /dev and mount the file system 
> on it.
> 
> Alexander, do you think you can incorporate this hack into the sdhci 
> driver? At least as an option, like hw.sdhci.ti_hack or something. Well, 
> I understand that driver poking in config space of a device that does 
> not belong to it is not very elegant, but it should not do any harm, at 
> least until there is a working FlashMedia driver. I also understand that 
> if it works for me does not necessarily mean it will work for everybody, 
> but as an option and with some safety checks it would be worthwhile.

I think it could be better done in form of dummy FlashMedia driver that 
will do nothing for now, except disabling it.

-- 
Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A9243E2.7000302>