[Arm-netbook] [flying squirrel] TODO list
luke.leighton
luke.leighton at gmail.com
Sat Sep 28 18:10:59 BST 2013
On Sat, Sep 28, 2013 at 5:54 PM, Arokux X <arokux at gmail.com> wrote:
> Hi Luke,
>
> On Sat, Sep 28, 2013 at 6:47 PM, luke.leighton <luke.leighton at gmail.com> wrote:
>> woo!
>>
>> root at debian:~# lsusb
>> Bus 002 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
>> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>> Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>> Bus 002 Device 003: ID 0bda:8176 Realtek Semiconductor Corp.
>> RTL8188CUS 802.11n WLAN Adapter
>
> here is status of the USB in mainline
>
> http://linux-sunxi.org/User:Arokux
>
> The on-board WLAN Adapter refuses to work with my Mele A1000. See
> Known issues section. Do you think you can try the mainline with
> flying squirrel?
... maybe. let me replicate where you've got up to, first. btw:
diff --git a/drivers/net/wireless/rtl8192cu/os_dep/linux/usb_intf.c b/drivers/ne
index 79eb196..6f29109 100644
--- a/drivers/net/wireless/rtl8192cu/os_dep/linux/usb_intf.c
+++ b/drivers/net/wireless/rtl8192cu/os_dep/linux/usb_intf.c
@@ -1090,7 +1090,7 @@ error_exit:
#include <plat/sys_config.h>
extern int sw_usb_disable_hcd(__u32 usbc_no);
extern int sw_usb_enable_hcd(__u32 usbc_no);
-static int usb_wifi_host = 2;
+static int usb_wifi_host = -1;
extern char* ifname;
/*
@@ -1434,14 +1434,15 @@ static int __init rtw_drv_entry(void)
/* ----------get usb_wifi_usbc_num------------- */
ret = script_parser_fetch("usb_wifi_para", "usb_wifi_usbc_num", (int *)&
if(ret != 0){
- ERR_8192C("ERR: script_parser_fetch usb_wifi_usbc_num failed\n")
- ret = -ENOMEM;
- return ret;
+ ERR_8192C("WARN: script_parser_fetch usb_wifi_usbc_num failed\n"
+ usb_wifi_host = -1;
}
#ifdef CONFIG_USB_SW_SUNXI_USB
- MSG_8192C("sw_usb_enable_hcd: usbc_num = %d\n", usb_wifi_host);
- sw_usb_enable_hcd(usb_wifi_host);
+ if (usb_wifi_host == -1) {
+ MSG_8192C("sw_usb_enable_hcd: usbc_num = %d\n", usb_wifi_host);
+ sw_usb_enable_hcd(usb_wifi_host);
+ }
#endif
DBG_8192C("\nrtw driver version=%s\n", DRIVERVERSION);
@@ -1467,8 +1468,10 @@ static void __exit rtw_drv_halt(void)
DBG_8192C("-rtw_drv_halt\n");
#ifdef CONFIG_USB_SW_SUNXI_USB
- MSG_8192C("sw_usb_disable_hcd: usbc_num = %d\n", usb_wifi_host);
- sw_usb_disable_hcd(usb_wifi_host);
+ if (usb_wifi_host == -1) {
+ MSG_8192C("sw_usb_disable_hcd: usbc_num = %d\n", usb_wifi_host);
+ sw_usb_disable_hcd(usb_wifi_host);
+ }
#endif
}
stops the code from fucking around with the usb hub that's connected
to the flying squirrel. why the fuck would i want the entire usb hub
disconnected just because the wifi happens not to be on??
*sigh*...
l.
More information about the arm-netbook
mailing list