wimax/i2400m: introduce i2400m->bus_setup/release
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Thu, 17 Sep 2009 01:23:27 +0000 (18:23 -0700)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Mon, 19 Oct 2009 06:56:08 +0000 (15:56 +0900)
commit0856ccf29dfbaf957e4be80dd3eb88d97810b633
treea33cf96b010ce3814747b67eb60743554af2070f
parentc2315b4ea9ac9c3f8caf03c3511d86fabe4a5fcd
wimax/i2400m: introduce i2400m->bus_setup/release

The SDIO subdriver of the i2400m requires certain steps to be done
before we do any acces to the device, even for doing firmware upload.

This lead to a few ugly hacks, which basically involve doing those
steps in probe() before calling i2400m_setup() and undoing them in
disconnect() after claling i2400m_release(); but then, much of those
steps have to be repeated when resetting the device, suspending, etc
(in upcoming pre/post reset support).

Thus, a new pair of optional, bus-specific calls
i2400m->bus_{setup/release} are introduced. These are used to setup
basic infrastructure needed to load firmware onto the device.

This commit also updates the SDIO subdriver to use said calls.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
drivers/net/wimax/i2400m/driver.c
drivers/net/wimax/i2400m/i2400m.h
drivers/net/wimax/i2400m/sdio.c
drivers/net/wimax/i2400m/usb.c