FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 10-18-2010, 04:00 PM
Sebastien Jan
 
Default wlan: register wlan device only on pandaboard

Registering the wlan device on blaze triggers the loading
of user-space wlan drivers for 1271 chip. These user-space
drivers are not compatible with the 1283 chip of the blaze and
cause a kernel crash.

The event is the same whatever the wlan controller, which
prevents managing different wlan drivers in user-space.

This patch registers the wlan device only on pandaboard.
Long term, we would like to generate different events depending
on the wlan controller.

Signed-off-by: Sebastien Jan <s-jan@ti.com>
---
arch/arm/mach-omap2/board-4430sdp-wifi.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/board-4430sdp-wifi.c b/arch/arm/mach-omap2/board-4430sdp-wifi.c
index aa731ef..eea7cad 100644
--- a/arch/arm/mach-omap2/board-4430sdp-wifi.c
+++ b/arch/arm/mach-omap2/board-4430sdp-wifi.c
@@ -129,7 +129,8 @@ static int __init sdp4430_wifi_init(void)
}
gpio_direction_input(SDP4430_WIFI_IRQ_GPIO);
#ifdef CONFIG_WIFI_CONTROL_FUNC
- ret = platform_device_register(&sdp4430_wifi_device);
+ if (machine_is_omap4_panda())
+ ret = platform_device_register(&sdp4430_wifi_device);
#endif
out:
return ret;
--
1.7.0.4


--------------060309090401060907060503
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team

--------------060309090401060907060503--
 
Old 10-18-2010, 04:00 PM
Sebastien Jan
 
Default wlan: register wlan device only on pandaboard

Registering the wlan device on blaze triggers the loading
of user-space wlan drivers for 1271 chip. These user-space
drivers are not compatible with the 1283 chip of the blaze and
cause a kernel crash.

The event is the same whatever the wlan controller, which
prevents managing different wlan drivers in user-space.

This patch registers the wlan device only on pandaboard.
Long term, we would like to generate different events depending
on the wlan controller.

Signed-off-by: Sebastien Jan <s-jan@ti.com>
---
arch/arm/mach-omap2/board-4430sdp-wifi.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/board-4430sdp-wifi.c b/arch/arm/mach-omap2/board-4430sdp-wifi.c
index aa731ef..63da1b7 100644
--- a/arch/arm/mach-omap2/board-4430sdp-wifi.c
+++ b/arch/arm/mach-omap2/board-4430sdp-wifi.c
@@ -25,6 +25,7 @@

#include <asm/gpio.h>
#include <asm/io.h>
+#include <asm/mach-types.h>
#include <plat/wifi_tiwlan.h>

#define SDP4430_WIFI_PMENA_GPIO 43
@@ -129,7 +130,8 @@ static int __init sdp4430_wifi_init(void)
}
gpio_direction_input(SDP4430_WIFI_IRQ_GPIO);
#ifdef CONFIG_WIFI_CONTROL_FUNC
- ret = platform_device_register(&sdp4430_wifi_device);
+ if (machine_is_omap4_panda())
+ ret = platform_device_register(&sdp4430_wifi_device);
#endif
out:
return ret;
--
1.7.0.4


--------------060504010007030507040801
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team

--------------060504010007030507040801--
 
Old 10-18-2010, 04:00 PM
Sebastien Jan
 
Default wlan: register wlan device only on pandaboard

BugLink: https://bugs.launchpad.net/bugs/665039

Registering the wlan device on blaze triggers the loading
of user-space wlan drivers for 1271 chip. These user-space
drivers are not compatible with the 1283 chip of the blaze and
cause a kernel crash.

The event is the same whatever the wlan controller, which
prevents managing different wlan drivers in user-space.

This patch registers the wlan device only on pandaboard.
Long term, we would like to generate different events depending
on the wlan controller.

Signed-off-by: Sebastien Jan <s-jan@ti.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
arch/arm/mach-omap2/board-4430sdp-wifi.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-4430sdp-wifi.c b/arch/arm/mach-omap2/board-4430sdp-wifi.c
index aa731ef..a950f45 100644
--- a/arch/arm/mach-omap2/board-4430sdp-wifi.c
+++ b/arch/arm/mach-omap2/board-4430sdp-wifi.c
@@ -25,6 +25,7 @@

#include <asm/gpio.h>
#include <asm/io.h>
+#include <asm/mach-types.h>
#include <plat/wifi_tiwlan.h>

#define SDP4430_WIFI_PMENA_GPIO 43
@@ -120,6 +121,9 @@ static int __init sdp4430_wifi_init(void)
{
int ret;

+ if (!machine_is_omap4_panda())
+ return -ENODEV;
+
printk(KERN_WARNING"%s: start
", __func__);
ret = gpio_request(SDP4430_WIFI_IRQ_GPIO, "wifi_irq");
if (ret < 0) {
--
1.7.0.4


--------------060008090109040001070205
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team

--------------060008090109040001070205--
 

Thread Tools




All times are GMT. The time now is 11:41 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org