Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4613
b: refs/heads/master
c: 17f8bb7
h: refs/heads/master
i:
  4611: 6a996cd
v: v3
  • Loading branch information
Olav Kongas authored and Greg Kroah-Hartman committed Jul 12, 2005
1 parent 20aa20d commit 5d70fb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae0d6cceb20eec57e7196c22999c62c465ffd5bf
refs/heads/master: 17f8bb7312fa9b00f80c3c0f8d5a5d698eb97bbd
16 changes: 6 additions & 10 deletions trunk/drivers/usb/host/isp116x-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* The driver basically works. A number of people have used it with a range
* of devices.
*
*The driver passes all usbtests 1-14.
* The driver passes all usbtests 1-14.
*
* Suspending/resuming of root hub via sysfs works. Remote wakeup works too.
* And suspending/resuming of platform device works too. Suspend/resume
Expand Down Expand Up @@ -229,7 +229,7 @@ static void preproc_atl_queue(struct isp116x *isp116x)
struct isp116x_ep *ep;
struct urb *urb;
struct ptd *ptd;
u16 toggle, dir, len;
u16 toggle = 0, dir = PTD_DIR_SETUP, len;

for (ep = isp116x->atl_active; ep; ep = ep->active) {
BUG_ON(list_empty(&ep->hep->urb_list));
Expand All @@ -251,8 +251,6 @@ static void preproc_atl_queue(struct isp116x *isp116x)
dir = PTD_DIR_OUT;
break;
case USB_PID_SETUP:
toggle = 0;
dir = PTD_DIR_SETUP;
len = sizeof(struct usb_ctrlrequest);
ep->data = urb->setup_packet;
break;
Expand All @@ -264,11 +262,9 @@ static void preproc_atl_queue(struct isp116x *isp116x)
? PTD_DIR_OUT : PTD_DIR_IN;
break;
default:
/* To please gcc */
toggle = dir = 0;
ERR("%s %d: ep->nextpid %d\n", __func__, __LINE__,
ep->nextpid);
BUG_ON(1);
BUG();
}

ptd->count = PTD_CC_MSK | PTD_ACTIVE_MSK | PTD_TOGGLE(toggle);
Expand Down Expand Up @@ -1054,7 +1050,7 @@ static int isp116x_hub_control(struct usb_hcd *hcd,
break;
case GetHubStatus:
DBG("GetHubStatus\n");
*(__le32 *) buf = cpu_to_le32(0);
*(__le32 *) buf = 0;
break;
case GetPortStatus:
DBG("GetPortStatus\n");
Expand Down Expand Up @@ -1810,9 +1806,9 @@ static int isp116x_suspend(struct device *dev, pm_message_t state, u32 phase)
ret = usb_suspend_device(hcd->self.root_hub, state);
if (!ret) {
dev->power.power_state = state;
INFO("%s suspended\n", (char *)hcd_name);
INFO("%s suspended\n", hcd_name);
} else
ERR("%s suspend failed\n", (char *)hcd_name);
ERR("%s suspend failed\n", hcd_name);

return ret;
}
Expand Down

0 comments on commit 5d70fb3

Please sign in to comment.