aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx
diff options
context:
space:
mode:
authorTeemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>2010-02-18 06:25:56 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-02-19 15:52:47 -0500
commit9b28072220d56fda3249cb7e4e164038b456414d (patch)
tree360bb491e73f3cdb08ba4341acf1d92a9411d409 /drivers/net/wireless/wl12xx
parent7b048c52d7283ebf07c826a45c631a6ba225c057 (diff)
wl1271: Added IO reset and init functions
Added reset and init functions to IO layer of the driver. Signed-off-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com> Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_io.c10
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_io.h2
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_main.c4
3 files changed, 14 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_io.c b/drivers/net/wireless/wl12xx/wl1271_io.c
index 00f98bdc48f7..5cd94d5666c2 100644
--- a/drivers/net/wireless/wl12xx/wl1271_io.c
+++ b/drivers/net/wireless/wl12xx/wl1271_io.c
@@ -115,6 +115,16 @@ int wl1271_set_partition(struct wl1271 *wl,
115 return 0; 115 return 0;
116} 116}
117 117
118void wl1271_io_reset(struct wl1271 *wl)
119{
120 wl1271_spi_reset(wl);
121}
122
123void wl1271_io_init(struct wl1271 *wl)
124{
125 wl1271_spi_init(wl);
126}
127
118void wl1271_raw_write(struct wl1271 *wl, int addr, void *buf, 128void wl1271_raw_write(struct wl1271 *wl, int addr, void *buf,
119 size_t len, bool fixed) 129 size_t len, bool fixed)
120{ 130{
diff --git a/drivers/net/wireless/wl12xx/wl1271_io.h b/drivers/net/wireless/wl12xx/wl1271_io.h
index 859d571dc413..fa9a0b35788f 100644
--- a/drivers/net/wireless/wl12xx/wl1271_io.h
+++ b/drivers/net/wireless/wl12xx/wl1271_io.h
@@ -27,6 +27,8 @@
27 27
28struct wl1271; 28struct wl1271;
29 29
30void wl1271_io_reset(struct wl1271 *wl);
31void wl1271_io_init(struct wl1271 *wl);
30 32
31/* Raw target IO, address is not translated */ 33/* Raw target IO, address is not translated */
32void wl1271_raw_write(struct wl1271 *wl, int addr, void *buf, 34void wl1271_raw_write(struct wl1271 *wl, int addr, void *buf,
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c
index 46968958aeff..66fb9a0a8efa 100644
--- a/drivers/net/wireless/wl12xx/wl1271_main.c
+++ b/drivers/net/wireless/wl12xx/wl1271_main.c
@@ -648,8 +648,8 @@ static int wl1271_chip_wakeup(struct wl1271 *wl)
648 msleep(WL1271_PRE_POWER_ON_SLEEP); 648 msleep(WL1271_PRE_POWER_ON_SLEEP);
649 wl1271_power_on(wl); 649 wl1271_power_on(wl);
650 msleep(WL1271_POWER_ON_SLEEP); 650 msleep(WL1271_POWER_ON_SLEEP);
651 wl1271_spi_reset(wl); 651 wl1271_io_reset(wl);
652 wl1271_spi_init(wl); 652 wl1271_io_init(wl);
653 653
654 /* We don't need a real memory partition here, because we only want 654 /* We don't need a real memory partition here, because we only want
655 * to use the registers at this point. */ 655 * to use the registers at this point. */