Convert remaining HCDs to uses_new_polling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We have had the hcd->uses_new_polling flag for many years now, so by 
this time all the HCDs should be setting it.  But a few laggards 
aren't.  Accordingly, this patch adds the flag to the drivers that 
don't already set it.

I doubt this will make any difference in the drivers' behavior, but 
it would be good to test the patch just in case.  Please let me know if 
it causes any problems.

Alan Stern



Index: usb-2.6/drivers/usb/host/fhci-hcd.c
===================================================================
--- usb-2.6.orig/drivers/usb/host/fhci-hcd.c
+++ usb-2.6/drivers/usb/host/fhci-hcd.c
@@ -345,6 +345,7 @@ static int fhci_start(struct usb_hcd *hc
 	}
 
 	spin_lock_init(&fhci->lock);
+	hcd->uses_new_polling = 1;
 
 	/* connect the virtual root hub */
 	fhci->vroot_hub->dev_num = 1;	/* this field may be needed to fix */
Index: usb-2.6/drivers/usb/host/r8a66597-hcd.c
===================================================================
--- usb-2.6.orig/drivers/usb/host/r8a66597-hcd.c
+++ usb-2.6/drivers/usb/host/r8a66597-hcd.c
@@ -1808,6 +1808,7 @@ static int r8a66597_start(struct usb_hcd
 {
 	struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd);
 
+	hcd->uses_new_polling = 1;
 	hcd->state = HC_STATE_RUNNING;
 	return enable_controller(r8a66597);
 }
Index: usb-2.6/drivers/usb/host/sl811-hcd.c
===================================================================
--- usb-2.6.orig/drivers/usb/host/sl811-hcd.c
+++ usb-2.6/drivers/usb/host/sl811-hcd.c
@@ -1541,6 +1541,8 @@ sl811h_start(struct usb_hcd *hcd)
 {
 	struct sl811		*sl811 = hcd_to_sl811(hcd);
 
+	hcd->uses_new_polling = 1;
+
 	/* chip has been reset, VBUS power is off */
 	hcd->state = HC_STATE_RUNNING;
 
Index: usb-2.6/drivers/usb/host/u132-hcd.c
===================================================================
--- usb-2.6.orig/drivers/usb/host/u132-hcd.c
+++ usb-2.6/drivers/usb/host/u132-hcd.c
@@ -1825,6 +1825,7 @@ static int u132_hcd_start(struct usb_hcd
 				"ounds unavailable\n");
 		} else if (vendor == PCI_VENDOR_ID_COMPAQ && device == 0xa0f8)
 			u132->flags |= OHCI_QUIRK_ZFMICRO;
+		hcd->uses_new_polling = 1;
 		retval = u132_run(u132);
 		if (retval) {
 			u132_disable(u132);

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux