wimax/i2400m: do bootmode buffer management in i2400m_setup/release()
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Thu, 17 Sep 2009 01:33:26 +0000 (18:33 -0700)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Mon, 19 Oct 2009 06:56:09 +0000 (15:56 +0900)
commit2869da8587604e3fea5f85aeade486a08e8313bf
treee5894e5ffbc7eea4c3dc01406abfbbcfd8022467
parent0856ccf29dfbaf957e4be80dd3eb88d97810b633
wimax/i2400m: do bootmode buffer management in i2400m_setup/release()

After the introduction of i2400m->bus_setup/release, there is no more
race condition where the bootmode buffers are needed before
i2400m_setup() is called.

Before, the SDIO driver would setup RX before calling i2400m_setup()
and thus need those buffers; now RX setup is done in
i2400m->bus_setup(), which is called by i2400m_setup().

Thus, all the bootmode buffer management can now be done completely
inside i2400m_setup()/i2400m_release(), removing complexity from the
bus-specific drivers.

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