⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1006.usb.patch

📁 sm86xx内核源包括补丁( GPL )的
💻 PATCH
📖 第 1 页 / 共 5 页
字号:
diff -Naur --exclude=CVS --exclude='*.o' --exclude='*.a' --exclude='*.so' --exclude='*.elf' --exclude=System.map --exclude=Makefile.d --exclude='*log' --exclude='*log2' --exclude='*~' --exclude='.*~' --exclude='.#*' --exclude='*.bak' --exclude='*.orig' --exclude='*.rej' --exclude='core.[0-9]*' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=vmlinux --exclude=vmlinux.bin --exclude=yamon-02.06-SIGMADESIGNS-01_el.bin linux-2.6.15.ref/arch/mips/configs/tango2_defconfig linux-2.6.15/arch/mips/configs/tango2_defconfig--- linux-2.6.15.ref/arch/mips/configs/tango2_defconfig	2007-06-20 12:12:43.000000000 -0700+++ linux-2.6.15/arch/mips/configs/tango2_defconfig	2007-06-20 12:15:13.000000000 -0700@@ -366,6 +366,7 @@ # CONFIG_BLK_DEV_LOOP is not set # CONFIG_BLK_DEV_NBD is not set # CONFIG_BLK_DEV_SX8 is not set+# CONFIG_BLK_DEV_UB is not set # CONFIG_BLK_DEV_RAM is not set CONFIG_BLK_DEV_RAM_COUNT=16 # CONFIG_CDROM_PKTCDVD is not set@@ -707,13 +708,122 @@ # CONFIG_USB_ARCH_HAS_HCD=y CONFIG_USB_ARCH_HAS_OHCI=y-# CONFIG_USB is not set+CONFIG_USB=y+# CONFIG_USB_DEBUG is not set++#+# Miscellaneous USB options+#+CONFIG_USB_DEVICEFS=y+CONFIG_USB_BANDWIDTH=y+CONFIG_USB_DYNAMIC_MINORS=y+# CONFIG_USB_OTG is not set++#+# USB Host Controller Drivers+#+CONFIG_TANGOX_EHCI_HCD=m+CONFIG_TANGOX_OHCI_HCD=m+CONFIG_USB_EHCI_HCD=m+# CONFIG_USB_EHCI_SPLIT_ISO is not set+CONFIG_USB_EHCI_ROOT_HUB_TT=y+# CONFIG_USB_ISP116X_HCD is not set+CONFIG_USB_OHCI_HCD=m+# CONFIG_USB_OHCI_BIG_ENDIAN is not set+CONFIG_USB_OHCI_LITTLE_ENDIAN=y+CONFIG_USB_UHCI_HCD=m+# CONFIG_USB_SL811_HCD is not set++#+# USB Device Class drivers+#+# CONFIG_USB_ACM is not set+# CONFIG_USB_PRINTER is not set  # # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' #  #+# may also be needed; see USB_STORAGE Help for more information+#+CONFIG_USB_STORAGE=m+# CONFIG_USB_STORAGE_DEBUG is not set+# CONFIG_USB_STORAGE_DATAFAB is not set+# CONFIG_USB_STORAGE_FREECOM is not set+# CONFIG_USB_STORAGE_ISD200 is not set+# CONFIG_USB_STORAGE_DPCM is not set+# CONFIG_USB_STORAGE_USBAT is not set+# CONFIG_USB_STORAGE_SDDR09 is not set+# CONFIG_USB_STORAGE_SDDR55 is not set+# CONFIG_USB_STORAGE_JUMPSHOT is not set++#+# USB Input Devices+#+# CONFIG_USB_HID is not set++#+# USB HID Boot Protocol drivers+#++#+# USB Imaging devices+#+# CONFIG_USB_MDC800 is not set+# CONFIG_USB_MICROTEK is not set++#+# USB Multimedia devices+#+# CONFIG_USB_DABUSB is not set++#+# Video4Linux support is needed for USB Multimedia device support+#++#+# USB Network Adapters+#+# CONFIG_USB_CATC is not set+# CONFIG_USB_KAWETH is not set+# CONFIG_USB_PEGASUS is not set+# CONFIG_USB_RTL8150 is not set+# CONFIG_USB_USBNET is not set+# CONFIG_USB_MON is not set++#+# USB port drivers+#++#+# USB Serial Converter support+#+# CONFIG_USB_SERIAL is not set++#+# USB Miscellaneous drivers+#+# CONFIG_USB_EMI62 is not set+# CONFIG_USB_EMI26 is not set+# CONFIG_USB_AUERSWALD is not set+# CONFIG_USB_RIO500 is not set+# CONFIG_USB_LEGOTOWER is not set+# CONFIG_USB_LCD is not set+# CONFIG_USB_LED is not set+# CONFIG_USB_CYTHERM is not set+# CONFIG_USB_PHIDGETKIT is not set+# CONFIG_USB_PHIDGETSERVO is not set+# CONFIG_USB_IDMOUSE is not set+# CONFIG_USB_SISUSBVGA is not set+# CONFIG_USB_LD is not set+# CONFIG_USB_TEST is not set++#+# USB DSL modem support+#++# # USB Gadget Support # # CONFIG_USB_GADGET is not setdiff -Naur --exclude=CVS --exclude='*.o' --exclude='*.a' --exclude='*.so' --exclude='*.elf' --exclude=System.map --exclude=Makefile.d --exclude='*log' --exclude='*log2' --exclude='*~' --exclude='.*~' --exclude='.#*' --exclude='*.bak' --exclude='*.orig' --exclude='*.rej' --exclude='core.[0-9]*' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=vmlinux --exclude=vmlinux.bin --exclude=yamon-02.06-SIGMADESIGNS-01_el.bin linux-2.6.15.ref/arch/mips/configs/tango3_defconfig linux-2.6.15/arch/mips/configs/tango3_defconfig--- linux-2.6.15.ref/arch/mips/configs/tango3_defconfig	2007-06-20 12:12:43.000000000 -0700+++ linux-2.6.15/arch/mips/configs/tango3_defconfig	2007-06-20 12:15:13.000000000 -0700@@ -362,6 +362,7 @@ # CONFIG_BLK_DEV_LOOP is not set # CONFIG_BLK_DEV_NBD is not set # CONFIG_BLK_DEV_SX8 is not set+# CONFIG_BLK_DEV_UB is not set # CONFIG_BLK_DEV_RAM is not set CONFIG_BLK_DEV_RAM_COUNT=16 # CONFIG_CDROM_PKTCDVD is not set@@ -702,13 +703,122 @@ # CONFIG_USB_ARCH_HAS_HCD=y CONFIG_USB_ARCH_HAS_OHCI=y-# CONFIG_USB is not set+CONFIG_USB=y+# CONFIG_USB_DEBUG is not set++#+# Miscellaneous USB options+#+CONFIG_USB_DEVICEFS=y+CONFIG_USB_BANDWIDTH=y+CONFIG_USB_DYNAMIC_MINORS=y+# CONFIG_USB_OTG is not set++#+# USB Host Controller Drivers+#+CONFIG_TANGOX_EHCI_HCD=m+CONFIG_TANGOX_OHCI_HCD=m+CONFIG_USB_EHCI_HCD=m+# CONFIG_USB_EHCI_SPLIT_ISO is not set+CONFIG_USB_EHCI_ROOT_HUB_TT=y+# CONFIG_USB_ISP116X_HCD is not set+CONFIG_USB_OHCI_HCD=m+# CONFIG_USB_OHCI_BIG_ENDIAN is not set+CONFIG_USB_OHCI_LITTLE_ENDIAN=y+CONFIG_USB_UHCI_HCD=m+# CONFIG_USB_SL811_HCD is not set++#+# USB Device Class drivers+#+# CONFIG_USB_ACM is not set+# CONFIG_USB_PRINTER is not set  # # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' #  #+# may also be needed; see USB_STORAGE Help for more information+#+CONFIG_USB_STORAGE=m+# CONFIG_USB_STORAGE_DEBUG is not set+# CONFIG_USB_STORAGE_DATAFAB is not set+# CONFIG_USB_STORAGE_FREECOM is not set+# CONFIG_USB_STORAGE_ISD200 is not set+# CONFIG_USB_STORAGE_DPCM is not set+# CONFIG_USB_STORAGE_USBAT is not set+# CONFIG_USB_STORAGE_SDDR09 is not set+# CONFIG_USB_STORAGE_SDDR55 is not set+# CONFIG_USB_STORAGE_JUMPSHOT is not set++#+# USB Input Devices+#+# CONFIG_USB_HID is not set++#+# USB HID Boot Protocol drivers+#++#+# USB Imaging devices+#+# CONFIG_USB_MDC800 is not set+# CONFIG_USB_MICROTEK is not set++#+# USB Multimedia devices+#+# CONFIG_USB_DABUSB is not set++#+# Video4Linux support is needed for USB Multimedia device support+#++#+# USB Network Adapters+#+# CONFIG_USB_CATC is not set+# CONFIG_USB_KAWETH is not set+# CONFIG_USB_PEGASUS is not set+# CONFIG_USB_RTL8150 is not set+# CONFIG_USB_USBNET is not set+# CONFIG_USB_MON is not set++#+# USB port drivers+#++#+# USB Serial Converter support+#+# CONFIG_USB_SERIAL is not set++#+# USB Miscellaneous drivers+#+# CONFIG_USB_EMI62 is not set+# CONFIG_USB_EMI26 is not set+# CONFIG_USB_AUERSWALD is not set+# CONFIG_USB_RIO500 is not set+# CONFIG_USB_LEGOTOWER is not set+# CONFIG_USB_LCD is not set+# CONFIG_USB_LED is not set+# CONFIG_USB_CYTHERM is not set+# CONFIG_USB_PHIDGETKIT is not set+# CONFIG_USB_PHIDGETSERVO is not set+# CONFIG_USB_IDMOUSE is not set+# CONFIG_USB_SISUSBVGA is not set+# CONFIG_USB_LD is not set+# CONFIG_USB_TEST is not set++#+# USB DSL modem support+#++# # USB Gadget Support # # CONFIG_USB_GADGET is not setdiff -Naur --exclude=CVS --exclude='*.o' --exclude='*.a' --exclude='*.so' --exclude='*.elf' --exclude=System.map --exclude=Makefile.d --exclude='*log' --exclude='*log2' --exclude='*~' --exclude='.*~' --exclude='.#*' --exclude='*.bak' --exclude='*.orig' --exclude='*.rej' --exclude='core.[0-9]*' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=vmlinux --exclude=vmlinux.bin --exclude=yamon-02.06-SIGMADESIGNS-01_el.bin linux-2.6.15.ref/drivers/usb/core/hcd.h linux-2.6.15/drivers/usb/core/hcd.h--- linux-2.6.15.ref/drivers/usb/core/hcd.h	2006-01-25 20:51:42.000000000 -0800+++ linux-2.6.15/drivers/usb/core/hcd.h	2007-06-20 12:15:13.000000000 -0700@@ -87,6 +87,7 @@ 	unsigned		uses_new_polling:1; 	unsigned		poll_rh:1;	/* poll for rh status? */ 	unsigned		poll_pending:1;	/* status has changed? */+        unsigned                EHSET_in_progress:1;  	int			irq;		/* irq allocated */ 	void __iomem		*regs;		/* device memory/io */diff -Naur --exclude=CVS --exclude='*.o' --exclude='*.a' --exclude='*.so' --exclude='*.elf' --exclude=System.map --exclude=Makefile.d --exclude='*log' --exclude='*log2' --exclude='*~' --exclude='.*~' --exclude='.#*' --exclude='*.bak' --exclude='*.orig' --exclude='*.rej' --exclude='core.[0-9]*' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=vmlinux --exclude=vmlinux.bin --exclude=yamon-02.06-SIGMADESIGNS-01_el.bin linux-2.6.15.ref/drivers/usb/core/hub.c linux-2.6.15/drivers/usb/core/hub.c--- linux-2.6.15.ref/drivers/usb/core/hub.c	2006-01-25 20:51:42.000000000 -0800+++ linux-2.6.15/drivers/usb/core/hub.c	2007-06-20 12:15:13.000000000 -0700@@ -75,6 +75,15 @@ 		"try the other device initialization scheme if the " 		"first one fails"); +#ifdef CONFIG_USB_EHSET+/* Semaphore used for Hi-Speed Host Electrical tests */+static DECLARE_MUTEX(ehset_sem);+static struct workqueue_struct *EHSET_workqueue = NULL;+#endif /* CONFIG_USB_EHSET */++static int hub_suspend(struct usb_interface *, pm_message_t);+static int hub_resume(struct usb_interface *);+  #ifdef	DEBUG static inline char *portspeed (int portstatus)@@ -1200,6 +1209,105 @@ #endif  +#ifdef CONFIG_USB_EHSET+static void EHSET_tests(void *data)+{+	struct usb_device       *udev = (struct usb_device *)data;+	struct usb_hcd          *hcd = udev->bus->hcpriv;+	int                     status, len;+	u8                      port = 0;+	char 		       c;++	/* Get one based port number, supposed it is one digit */+	len = strlen(udev->dev.bus_id);+	c = udev->dev.bus_id[len-1];+	port = c-'0'; ++	/*??? For testing  purpose: uncomment following line +	                            and select different test*/+	//udev->descriptor.idProduct = EHSET_TEST_PACKET;++	dev_info(&udev->dev, "running EHSET Test %x\n",+                udev->descriptor.idProduct);++	switch (udev->descriptor.idProduct) {+	case EHSET_TEST_SE0_NAK:+	        status = hcd->driver->hub_control(hcd, SetPortFeature,+	                        USB_PORT_FEAT_TEST,+	                        (USB_PORT_TEST_SE0_NAK<<8)|port,+	                        NULL, 0);+	        if (status)+	                dev_err(&udev->dev, "SetPortFeature Failed\n");+	        /* This test runs until the host is powered off */+	        break;+	case EHSET_TEST_J:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -