Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130708
b: refs/heads/master
c: 9a9b1d1
h: refs/heads/master
v: v3
  • Loading branch information
David Vrabel committed Jan 6, 2009
1 parent 5061501 commit 7873e75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2226b1c219a18804bc40e32a5d53c287a6c925d9
refs/heads/master: 9a9b1d17ba59b78e4bae67f7a7cf546986a42e7d
1 change: 1 addition & 0 deletions trunk/drivers/usb/wusbcore/devconnect.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ static void __wusbhc_dev_disconnect(struct wusbhc *wusbhc,
| USB_PORT_STAT_LOW_SPEED | USB_PORT_STAT_HIGH_SPEED);
port->change |= USB_PORT_STAT_C_CONNECTION | USB_PORT_STAT_C_ENABLE;
if (wusb_dev) {
dev_dbg(wusbhc->dev, "disconnecting device from port %d\n", wusb_dev->port_idx);
if (!list_empty(&wusb_dev->cack_node))
list_del_init(&wusb_dev->cack_node);
/* For the one in cack_add() */
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/usb/wusbcore/rh.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ static int wusbhc_rh_port_reset(struct wusbhc *wusbhc, u8 port_idx)
struct wusb_port *port = wusb_port_by_idx(wusbhc, port_idx);
struct wusb_dev *wusb_dev = port->wusb_dev;

if (wusb_dev == NULL)
return -ENOTCONN;

port->status |= USB_PORT_STAT_RESET;
port->change |= USB_PORT_STAT_C_RESET;

Expand Down

0 comments on commit 7873e75

Please sign in to comment.