···72 }7374 /* turn off now-idle HC */075 ehci_halt (ehci);76 hcd->state = HC_STATE_SUSPENDED;77
···72 }7374 /* turn off now-idle HC */75+ del_timer_sync (&ehci->watchdog);76 ehci_halt (ehci);77 hcd->state = HC_STATE_SUSPENDED;78
+8-4
drivers/usb/net/Kconfig
···219 by some sample firmware from Epson.220221config USB_ZAURUS222- boolean "Sharp Zaurus (stock ROMs)"223 depends on USB_USBNET224 select CRC32225 default y226 help227 Choose this option to support the usb networking links used by228 Zaurus models like the SL-5000D, SL-5500, SL-5600, A-300, B-500.00229230- If you install an alternate ROM image, you may no longer need231- to support this protocol. Only the "eth-fd" driver really needs232- this non-conformant variant of CDC Ethernet protocol.00233234config USB_CDCETHER235 boolean "CDC Ethernet support (smart devices such as cable modems)"
···219 by some sample firmware from Epson.220221config USB_ZAURUS222+ boolean "Sharp Zaurus (stock ROMs) and compatible"223 depends on USB_USBNET224 select CRC32225 default y226 help227 Choose this option to support the usb networking links used by228 Zaurus models like the SL-5000D, SL-5500, SL-5600, A-300, B-500.229+ This also supports some related device firmware, as used in some230+ PDAs from Olympus and some cell phones from Motorola.231232+ If you install an alternate ROM image, such as the Linux 2.6 based233+ versions of OpenZaurus, you should no longer need to support this234+ protocol. Only the "eth-fd" or "net_fd" drivers in these devices235+ really need this non-conformant variant of CDC Ethernet (or in236+ some cases CDC MDLM) protocol, not "g_ether".237238config USB_CDCETHER239 boolean "CDC Ethernet support (smart devices such as cable modems)"
+26-27
drivers/usb/net/usbnet.c
···1517 }1518}15190000000000000000000015201521static void dumpspeed (struct usbnet *dev, __le32 *speeds)1522{···1586 break;1587 }1588}1589-1590-#endif /* NEED_GENERIC_CDC */1591-1592-1593-#ifdef CONFIG_USB_CDCETHER1594-#define HAVE_HARDWARE1595-1596-/*-------------------------------------------------------------------------1597- *1598- * Communications Device Class, Ethernet Control model1599- * 1600- * Takes two interfaces. The DATA interface is inactive till an altsetting1601- * is selected. Configuration data includes class descriptors.1602- *1603- * This should interop with whatever the 2.4 "CDCEther.c" driver1604- * (by Brad Hards) talked with.1605- *1606- *-------------------------------------------------------------------------*/1607-1608-#include <linux/ctype.h>16091610static u8 nibble (unsigned char c)1611{···2765 }2766 /* expect bcdVersion 1.0, ignore */2767 if (memcmp(&desc->bGUID, blan_guid, 16)2768- || memcmp(&desc->bGUID, blan_guid, 16) ) {2769 /* hey, this one might _really_ be MDLM! */2770 dev_dbg (&intf->dev, "MDLM guid\n");2771 goto bad_desc;···2797 * - bPad (ignored, for PADAFTER -- BLAN-only)2798 * bits are:2799 * - 0x01 -- Zaurus framing (add CRC)2800- * - 0x02 -- PADBEFORE2801- * - 0x04 -- PADAFTER2802 * - 0x08 -- "fermat" packet mangling (for hw bugs)002803 */2804- if (detail->bDetailData[1] != 0x01) {2805 /* bmDataCapabilites == 0 would be fine too,2806 * but framing is minidriver-coupled for now.2807 */···4072}, {4073 USB_DEVICE (0x8086, 0x07d3), // "blob" bootloader4074 .driver_info = (unsigned long) &blob_info,4075-}, {4076- USB_DEVICE (0x22b8, 0x600c), // USBNET Motorola E6804077- .driver_info = (unsigned long) &linuxdev_info,4078}, {4079 // Linux Ethernet/RNDIS gadget on pxa210/25x/26x4080 // e.g. Gumstix, current OpenZaurus, ...
···1517 }1518}15191520+#endif /* NEED_GENERIC_CDC */1521+1522+1523+#ifdef CONFIG_USB_CDCETHER1524+#define HAVE_HARDWARE1525+1526+/*-------------------------------------------------------------------------1527+ *1528+ * Communications Device Class, Ethernet Control model1529+ *1530+ * Takes two interfaces. The DATA interface is inactive till an altsetting1531+ * is selected. Configuration data includes class descriptors.1532+ *1533+ * This should interop with whatever the 2.4 "CDCEther.c" driver1534+ * (by Brad Hards) talked with.1535+ *1536+ *-------------------------------------------------------------------------*/1537+1538+#include <linux/ctype.h>1539+15401541static void dumpspeed (struct usbnet *dev, __le32 *speeds)1542{···1566 break;1567 }1568}0000000000000000000015691570static u8 nibble (unsigned char c)1571{···2765 }2766 /* expect bcdVersion 1.0, ignore */2767 if (memcmp(&desc->bGUID, blan_guid, 16)2768+ && memcmp(&desc->bGUID, blan_guid, 16) ) {2769 /* hey, this one might _really_ be MDLM! */2770 dev_dbg (&intf->dev, "MDLM guid\n");2771 goto bad_desc;···2797 * - bPad (ignored, for PADAFTER -- BLAN-only)2798 * bits are:2799 * - 0x01 -- Zaurus framing (add CRC)2800+ * - 0x02 -- PADBEFORE (CRC includes some padding)2801+ * - 0x04 -- PADAFTER (some padding after CRC)2802 * - 0x08 -- "fermat" packet mangling (for hw bugs)2803+ * the PADBEFORE appears not to matter; we interop2804+ * with devices that use it and those that don't.2805 */2806+ if ((detail->bDetailData[1] & ~02) != 0x01) {2807 /* bmDataCapabilites == 0 would be fine too,2808 * but framing is minidriver-coupled for now.2809 */···4070}, {4071 USB_DEVICE (0x8086, 0x07d3), // "blob" bootloader4072 .driver_info = (unsigned long) &blob_info,0004073}, {4074 // Linux Ethernet/RNDIS gadget on pxa210/25x/26x4075 // e.g. Gumstix, current OpenZaurus, ...