From e61ed9f57e549f0ebb4c4689e61598944c4e1720 Mon Sep 17 00:00:00 2001 From: Alan Stern Date: Sat, 1 Mar 2003 17:48:38 -0800 Subject: [PATCH] [PATCH] Fix USB address setting You wouldn't expect that an innocent two-line patch would practically destroy the entire functionality of the USB subsystem. But that's what my last patch did. I didn't realize until I saw it in Greg's list of patches forwarded to Linus; that patch includes a mistakenly unreverted prior change. This explains the problems I was having yesterday, and probably also the problems a great many people are having today. Anyway, here's the correction -- it puts things back to what they should have been in the first place. Greg, please apply this and send it to Linus for his tree as soon as reasonably possible. --- drivers/usb/core/hcd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/core/hcd.h b/drivers/usb/core/hcd.h index 671a87ef51454..a648a2d7b7f5f 100644 --- a/drivers/usb/core/hcd.h +++ b/drivers/usb/core/hcd.h @@ -255,8 +255,8 @@ extern void usb_destroy_configuration(struct usb_device *dev); extern int usb_set_address(struct usb_device *dev); /* use these only before the device's address has been set */ -#define usb_snddefctrl(dev) ((PIPE_CONTROL << 30) | __create_pipe(dev,0)) -#define usb_rcvdefctrl(dev) ((PIPE_CONTROL << 30) | __create_pipe(dev,0) | USB_DIR_IN) +#define usb_snddefctrl(dev) ((PIPE_CONTROL << 30)) +#define usb_rcvdefctrl(dev) ((PIPE_CONTROL << 30) | USB_DIR_IN) /*-------------------------------------------------------------------------*/ -- 2.53.0