···7272 }73737474 /* turn off now-idle HC */7575+ del_timer_sync (&ehci->watchdog);7576 ehci_halt (ehci);7677 hcd->state = HC_STATE_SUSPENDED;7778
+8-4
drivers/usb/net/Kconfig
···219219 by some sample firmware from Epson.220220221221config USB_ZAURUS222222- boolean "Sharp Zaurus (stock ROMs)"222222+ boolean "Sharp Zaurus (stock ROMs) and compatible"223223 depends on USB_USBNET224224 select CRC32225225 default y226226 help227227 Choose this option to support the usb networking links used by228228 Zaurus models like the SL-5000D, SL-5500, SL-5600, A-300, B-500.229229+ This also supports some related device firmware, as used in some230230+ PDAs from Olympus and some cell phones from Motorola.229231230230- If you install an alternate ROM image, you may no longer need231231- to support this protocol. Only the "eth-fd" driver really needs232232- this non-conformant variant of CDC Ethernet protocol.232232+ If you install an alternate ROM image, such as the Linux 2.6 based233233+ versions of OpenZaurus, you should no longer need to support this234234+ protocol. Only the "eth-fd" or "net_fd" drivers in these devices235235+ really need this non-conformant variant of CDC Ethernet (or in236236+ some cases CDC MDLM) protocol, not "g_ether".233237234238config USB_CDCETHER235239 boolean "CDC Ethernet support (smart devices such as cable modems)"
+26-27
drivers/usb/net/usbnet.c
···15171517 }15181518}1519151915201520+#endif /* NEED_GENERIC_CDC */15211521+15221522+15231523+#ifdef CONFIG_USB_CDCETHER15241524+#define HAVE_HARDWARE15251525+15261526+/*-------------------------------------------------------------------------15271527+ *15281528+ * Communications Device Class, Ethernet Control model15291529+ *15301530+ * Takes two interfaces. The DATA interface is inactive till an altsetting15311531+ * is selected. Configuration data includes class descriptors.15321532+ *15331533+ * This should interop with whatever the 2.4 "CDCEther.c" driver15341534+ * (by Brad Hards) talked with.15351535+ *15361536+ *-------------------------------------------------------------------------*/15371537+15381538+#include <linux/ctype.h>15391539+1520154015211541static void dumpspeed (struct usbnet *dev, __le32 *speeds)15221542{···15861566 break;15871567 }15881568}15891589-15901590-#endif /* NEED_GENERIC_CDC */15911591-15921592-15931593-#ifdef CONFIG_USB_CDCETHER15941594-#define HAVE_HARDWARE15951595-15961596-/*-------------------------------------------------------------------------15971597- *15981598- * Communications Device Class, Ethernet Control model15991599- * 16001600- * Takes two interfaces. The DATA interface is inactive till an altsetting16011601- * is selected. Configuration data includes class descriptors.16021602- *16031603- * This should interop with whatever the 2.4 "CDCEther.c" driver16041604- * (by Brad Hards) talked with.16051605- *16061606- *-------------------------------------------------------------------------*/16071607-16081608-#include <linux/ctype.h>1609156916101570static u8 nibble (unsigned char c)16111571{···27652765 }27662766 /* expect bcdVersion 1.0, ignore */27672767 if (memcmp(&desc->bGUID, blan_guid, 16)27682768- || memcmp(&desc->bGUID, blan_guid, 16) ) {27682768+ && memcmp(&desc->bGUID, blan_guid, 16) ) {27692769 /* hey, this one might _really_ be MDLM! */27702770 dev_dbg (&intf->dev, "MDLM guid\n");27712771 goto bad_desc;···27972797 * - bPad (ignored, for PADAFTER -- BLAN-only)27982798 * bits are:27992799 * - 0x01 -- Zaurus framing (add CRC)28002800- * - 0x02 -- PADBEFORE28012801- * - 0x04 -- PADAFTER28002800+ * - 0x02 -- PADBEFORE (CRC includes some padding)28012801+ * - 0x04 -- PADAFTER (some padding after CRC)28022802 * - 0x08 -- "fermat" packet mangling (for hw bugs)28032803+ * the PADBEFORE appears not to matter; we interop28042804+ * with devices that use it and those that don't.28032805 */28042804- if (detail->bDetailData[1] != 0x01) {28062806+ if ((detail->bDetailData[1] & ~02) != 0x01) {28052807 /* bmDataCapabilites == 0 would be fine too,28062808 * but framing is minidriver-coupled for now.28072809 */···40724070}, {40734071 USB_DEVICE (0x8086, 0x07d3), // "blob" bootloader40744072 .driver_info = (unsigned long) &blob_info,40754075-}, {40764076- USB_DEVICE (0x22b8, 0x600c), // USBNET Motorola E68040774077- .driver_info = (unsigned long) &linuxdev_info,40784073}, {40794074 // Linux Ethernet/RNDIS gadget on pxa210/25x/26x40804075 // e.g. Gumstix, current OpenZaurus, ...