ARM: pxa/cm-x300: properly set bt_reset pin
Subsystems (3)
PATCH 1/1 ARM: pxa/cm-x300: properly set bt_reset pin
Fix below build warning and properly set bt_reset pin.
CC arch/arm/mach-pxa/cm-x300.oarch/arm/mach-pxa/cm-x300.c: In function 'cm_x300_init_wi2wi':arch/arm/mach-pxa/cm-x300.c:779: warning: unused variable 'wlan_en' arch/arm/mach-pxa/cm-x300.c:795: warning: 'bt_reset' may be used uninitialized in this function
--- arch/arm/mach-pxa/cm-x300.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
arch/arm/mach-pxa/cm-x300.c +3 -5
@@ -776,7 +776,6 @@ static struct gpio cm_x300_wi2wi_gpios[] __initdata = {static void __init cm_x300_init_wi2wi (void ) { -int bt_reset, wlan_en;int err;if (system_rev <130 ) {
@@ -792,12 +791,11 @@ static void __init cm_x300_init_wi2wi(void) }udelay (10 ); -gpio_set_value (bt_reset,0 ); +gpio_set_value (cm_x300_wi2wi_gpios[1 ].gpio,0 );udelay (10 ); -gpio_set_value (bt_reset,1 ); +gpio_set_value (cm_x300_wi2wi_gpios[1 ].gpio,1 ); -gpio_free (wlan_en); -gpio_free (bt_reset); +gpio_free_array (ARRAY_AND_SIZE (cm_x300_wi2wi_gpios)); }/* MFP */
Signature · 1 line
1.7.4.1
Hi Axel,
Quoted 6 lines · Axel Lin
Fix below build warning and properly set
bt_resetpin.CC
arch/arm/mach-pxa/cm-x300.oarch/arm/mach-pxa/cm-x300.c: In function 'cm_x300_init_wi2wi':arch/arm/mach-pxa/cm-x300.c:779: warning: unused variable 'wlan_en'arch/arm/mach-pxa/cm-x300.c:795: warning: 'bt_reset' may be used uninitialized in this function
What a shame...
My patch 5a009df1f200efa49658b0e9c7ad056d59fbefe4 (ARM: pxa/cm-x300: GPIO cleanup) was f*cked up, sorry... I should have not send it in a rush and I admit, I had no possibility to test it. Sorry again...
Quoted 2 lines
Signed-off-by Axel Lin <[email protected]>
Thanks for spotting this.
Also, this patch fixes a real regression since 5a009df1f200efa49658b0e9c7ad056d59fbefe4 (ARM: pxa/cm-x300: GPIO cleanup)
- Wifi and Bluetooth do not work without it, so please:
Quoted 32 lines
--- arch/arm/mach-pxa/cm-x300.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)arch/arm/mach-pxa/cm-x300.c +3
-5@@ -776,7 +776,6 @@ static struct gpio cm_x300_wi2wi_gpios[] __initdata = {static void __init cm_x300_init_wi2wi (void ) { -int bt_reset, wlan_en;int err;if (system_rev <130 ) {@@ -792,12 +791,11 @@ static void __init cm_x300_init_wi2wi(void) }udelay (10 ); -gpio_set_value (bt_reset,0 ); +gpio_set_value (cm_x300_wi2wi_gpios[1 ].gpio,0 );udelay (10 ); -gpio_set_value (bt_reset,1 ); +gpio_set_value (cm_x300_wi2wi_gpios[1 ].gpio,1 ); -gpio_free (wlan_en); -gpio_free (bt_reset); +gpio_free_array (ARRAY_AND_SIZE (cm_x300_wi2wi_gpios)); }/* MFP */
Signature · 2 lines
Regards, Igor.
2011/9/22 Igor Grinberg <[email protected]>:
Quoted 10 lines
Hi Axel,
Quoted 6 lines · Axel Lin
Fix below build warning and properly set
bt_resetpin.? CC ? ? ?arch/arm/mach-pxa/cm-x300.o
arch/arm/mach-pxa/cm-x300.c: In function 'cm_x300_init_wi2wi':arch/arm/mach-pxa/cm-x300.c:779: warning: unused variable 'wlan_en'arch/arm/mach-pxa/cm-x300.c:795: warning: 'bt_reset' may be used uninitialized in this function
Quoted 8 lines
Acked-by Igor Grinberg <[email protected]>Also, this patch fixes a real regression since
5a009df1f200efa49658b0e9c7ad056d59fbefe4(ARM: pxa/cm-x300: GPIO cleanup)
- Wifi and Bluetooth do not work without it, so please:Cc <[email protected]> [3.0.x]
Hi, Eric,
Just to pin the status of this patch. I think it should go for 3.1. Thanks,
Axel
ping
Quoted 24 lines · Axel Lin
2011/9/22 Igor Grinberg <[email protected]>:
Quoted 10 lines
Hi Axel,
Quoted 6 lines · Axel Lin
Fix below build warning and properly set
bt_resetpin.CC
arch/arm/mach-pxa/cm-x300.oarch/arm/mach-pxa/cm-x300.c: In function 'cm_x300_init_wi2wi':arch/arm/mach-pxa/cm-x300.c:779: warning: unused variable 'wlan_en'arch/arm/mach-pxa/cm-x300.c:795: warning: 'bt_reset' may be used uninitialized in this functionQuoted 8 lines
Acked-by Igor Grinberg <[email protected]>Also, this patch fixes a real regression since
5a009df1f200efa49658b0e9c7ad056d59fbefe4(ARM: pxa/cm-x300: GPIO cleanup)
- Wifi and Bluetooth do not work without it, so please:Cc <[email protected]> [3.0.x]Hi, Eric,
Just to pin the status of this patch. I think it should go for 3.1. Thanks,
Axel
Signature · 2 lines
Regards, Igor.
ping x2
Quoted 26 lines · Igor Grinberg
ping
Quoted 23 lines · Axel Lin
2011/9/22 Igor Grinberg <[email protected]>:
Quoted 9 lines
Hi Axel,
Quoted 6 lines · Axel Lin
Fix below build warning and properly set
bt_resetpin.CC
arch/arm/mach-pxa/cm-x300.oarch/arm/mach-pxa/cm-x300.c: In function 'cm_x300_init_wi2wi':arch/arm/mach-pxa/cm-x300.c:779: warning: unused variable 'wlan_en'arch/arm/mach-pxa/cm-x300.c:795: warning: 'bt_reset' may be used uninitialized in this functionQuoted 8 lines
Acked-by Igor Grinberg <[email protected]>Also, this patch fixes a real regression since
5a009df1f200efa49658b0e9c7ad056d59fbefe4(ARM: pxa/cm-x300: GPIO cleanup)
- Wifi and Bluetooth do not work without it, so please:Cc <[email protected]> [3.0.x]Hi, Eric,
Just to pin the status of this patch. I think it should go for 3.1. Thanks,
Axel
sorry x 3
Missed this, queued now.
Quoted 31 lines · Igor Grinberg
ping x2
Quoted 26 lines · Igor Grinberg
ping
Quoted 23 lines · Axel Lin
2011/9/22 Igor Grinberg <[email protected]>:
Quoted 9 lines
Hi Axel,
Quoted 6 lines · Axel Lin
Fix below build warning and properly set
bt_resetpin.? CC ? ? ?arch/arm/mach-pxa/cm-x300.o
arch/arm/mach-pxa/cm-x300.c: In function 'cm_x300_init_wi2wi':arch/arm/mach-pxa/cm-x300.c:779: warning: unused variable 'wlan_en'arch/arm/mach-pxa/cm-x300.c:795: warning: 'bt_reset' may be used uninitialized in this functionQuoted 8 lines
Acked-by Igor Grinberg <[email protected]>Also, this patch fixes a real regression since
5a009df1f200efa49658b0e9c7ad056d59fbefe4(ARM: pxa/cm-x300: GPIO cleanup)
- Wifi and Bluetooth do not work without it, so please:Cc <[email protected]> [3.0.x]Hi, Eric,
Just to pin the status of this patch. I think it should go for 3.1. Thanks,
Axel