[Gta04-owner] Linux 3.2-rc4 - now with wifi
NeilBrown
neilb at suse.de
Sat Dec 3 11:28:49 CET 2011
On Sat, 3 Dec 2011 10:50:30 +0100 Christoph Mair <christoph.mair at gmail.com>
wrote:
> On Sat, Dec 3, 2011 at 6:31 AM, NeilBrown <neilb at suse.de> wrote:
> >
> > hi all,
> >
> > I've updated my mainline gta04 kernel tree to 3.2-rc4.
> > git://neil.brown.name/gta04 merge
> Great! Thank you!
>
> > The main new functionality is wireless. The details for enabling wireless
> > are slightly different than with the hw-validation kernel.
> >
> > 1/ the reset line is /sys/class/gpio/gta04:wlan:reset
> > write 0 to reset, 1 to release the reset
> > The "reset" line is active-low.
> >
> > 2/ After power-on and reset you need to trigger a card-detect signal.
> > This requires making gpio/gta:wlan/cd go high, then low. Card-detect
> > is active-low too.
> >
> > so:
> >
> > VDD=3150000
> > # VDD=2800000
> > echo 1 > /sys/class/gpio/gta04:wlan:cd/value
> > echo "0" >/sys/class/gpio/gta04:wlan:reset/value # activate reset
> > echo "$VDD" >/sys/devices/platform/reg-virt-consumer.4/max_microvolts
> > echo "$VDD" >/sys/devices/platform/reg-virt-consumer.4/min_microvolts
> > echo "normal" >/sys/devices/platform/reg-virt-consumer.4/mode
> > echo "1" >/sys/class/gpio/gta04:wlan:reset/value # release reset
> > echo 0 > /sys/class/gpio/gta04:wlan:cd/value # edge triggers interrupt.
>
>
> I get this:
> [ 233.414855] device: 'mmc1:0001': device_add
> [ 233.419311] bus: 'mmc': add device mmc1:0001
> [ 233.423828] PM: Adding info for mmc:mmc1:0001
> [ 233.432250] bus: 'mmc': driver_probe_device: matched device
> mmc1:0001 with driver mmcblk
> [ 233.450561] bus: 'mmc': really_probe: probing driver mmcblk with
> device mmc1:0001
> [ 233.466156] mmcblk: probe of mmc1:0001 rejects match -19
> [ 233.472381] device: 'mmc1:0001:1': device_add
> [ 233.489593] bus: 'sdio': add device mmc1:0001:1
> [ 233.494445] PM: Adding info for sdio:mmc1:0001:1
> [ 233.502929] bus: 'sdio': driver_probe_device: matched device
> mmc1:0001:1 with driver libertas_sdio
> [ 233.532501] bus: 'sdio': really_probe: probing driver libertas_sdio
> with device mmc1:0001:1
> [ 233.595855] libertas_sdio: probe of mmc1:0001:1 failed with error -16
>
> Any hints?
Try commenting out
host->caps = MMC_CAP_POWER_OFF_CARD;
on line 315 of drivers/mmc/core/host.c
I needed to do that at first, but once I got various other issues finally
resolved I tried putting it back and it works with the setting there.
But the error you get is exactly the error I got which lead me to removing
that line.
NeilBrown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20111203/2a368cf3/attachment.bin>
More information about the Gta04-owner
mailing list