All pastes #820861 Raw Edit

Stuff

public text v1 · immutable
·published 2007-12-17 19:59 UTC
rendered paste body
Index: htcuniversal_acx.c
===================================================================
RCS file: /cvs/linux/kernel26/drivers/net/wireless/acx/htcuniversal_acx.c,v
retrieving revision 1.4
diff -u -r1.4 htcuniversal_acx.c
--- htcuniversal_acx.c	18 Jul 2007 13:23:35 -0000	1.4
+++ htcuniversal_acx.c	17 Dec 2007 19:57:09 -0000
@@ -31,6 +31,7 @@
 static int
 htcuniversal_wlan_start( void )
 {
+	printk("htcuniversal_wlan_start called\n");
 	htcuniversal_egpio_enable(1<<EGPIO6_WIFI_ON);
 	asic3_set_gpio_out_c(&htcuniversal_asic3.dev, 1<<GPIOC_WIFI_PWR1_ON, 1<<GPIOC_WIFI_PWR1_ON);
 	asic3_set_gpio_out_d(&htcuniversal_asic3.dev, 1<<GPIOD_WIFI_PWR3_ON, 1<<GPIOD_WIFI_PWR3_ON);
@@ -47,6 +48,7 @@
 static int
 htcuniversal_wlan_stop( void )
 {
+	printk("htcuniversal_wlan_stop called\n");
 	asic3_set_gpio_out_c(&htcuniversal_asic3.dev, 1<<GPIOC_WIFI_RESET, 0);
 
 	htcuniversal_egpio_disable(1<<EGPIO6_WIFI_ON);
3A@@ -87,6 +89,10 @@
 htcuniversal_wlan_init( void )
 {
 	printk( "htcuniversal_wlan_init: acx-mem platform_device_register\n" );
+	printk( "htcuniversal_wlan_init: forcing power off !\n");
+	asic3_set_gpio_out_c(&htcuniversal_asic3.dev, 1<<GPIOC_WIFI_PWR1_ON, 0);
+	asic3_set_gpio_out_d(&htcuniversal_asic3.dev, 1<<GPIOD_WIFI_PWR2_ON, 0);
+	asic3_set_gpio_out_d(&htcuniversal_asic3.dev, 1<<GPIOD_WIFI_PWR3_ON, 0);
 	acx_device.resource[1].start = asic3_irq_base(&htcuniversal_asic3.dev) + ASIC3_GPIOC_IRQ_BASE+GPIOC_WIFI_IRQ_N;
 	acx_device.resource[1].end = asic3_irq_base(&htcuniversal_asic3.dev) + ASIC3_GPIOC_IRQ_BASE+GPIOC_WIFI_IRQ_N;
 	return platform_device_register( &acx_device );