From owner-freebsd-mobile@FreeBSD.ORG Mon Aug 24 07:41:35 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4850C106568B for ; Mon, 24 Aug 2009 07:41:35 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id C8A288FC12 for ; Mon, 24 Aug 2009 07:41:34 +0000 (UTC) Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 252334606; Mon, 24 Aug 2009 10:41:30 +0300 Message-ID: <4A9243E2.7000302@FreeBSD.org> Date: Mon, 24 Aug 2009 10:40:18 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.21 (X11/20090405) MIME-Version: 1.0 To: ales-76@seznam.cz References: <529.760-10303-5478473-1251043470@seznam.cz> In-Reply-To: <529.760-10303-5478473-1251043470@seznam.cz> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: mmc does not work on HP NC6220 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2009 07:41:35 -0000 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