wl12xx: read chip ID and HW PG version during probe
authorLuciano Coelho <coelho@ti.com>
Wed, 18 Jan 2012 12:53:22 +0000 (14:53 +0200)
committerLuciano Coelho <coelho@ti.com>
Wed, 15 Feb 2012 06:38:29 +0000 (08:38 +0200)
commit30c5dbd1ee191dca1c04c70df0ba1adf0a9769c3
treeffa272050711b74d1abb4c91db2340a0978ecb21
parent0becb14ab42c2435402437a9dbc279599f6af8fb
wl12xx: read chip ID and HW PG version during probe

In order to read the MAC addresses from the fuse ROM, we need to know
the chip ID and the HW PG version.  We need to know the MAC address
during probe, because that's when we register our HW with mac80211.

To prepare for that, this patch reads the chip ID and HW PG version
during probe instead of doing it at boot time.  We power the chip on
briefly in order to do that.

Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/boot.c
drivers/net/wireless/wl12xx/debug.h
drivers/net/wireless/wl12xx/main.c