Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10773
b: refs/heads/master
c: ccdcf77
h: refs/heads/master
i:
  10771: 6801eaa
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Oct 28, 2005
1 parent 13c4e10 commit bef9ba6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 27 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: a7f72abe8fac9b919135005e06216be8eef945a2
refs/heads/master: ccdcf77ae32e3d3347fdf3810b27f899e98c34fb
29 changes: 4 additions & 25 deletions trunk/drivers/usb/host/isp116x-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ static irqreturn_t isp116x_irq(struct usb_hcd *hcd, struct pt_regs *regs)
+ msecs_to_jiffies(20) + 1);
if (intstat & HCINT_RD) {
DBG("---- remote wakeup\n");
schedule_work(&isp116x->rh_resume);
usb_hcd_resume_root_hub(hcd);
ret = IRQ_HANDLED;
}
irqstat &= ~HCuPINT_OPR;
Expand Down Expand Up @@ -1263,22 +1263,12 @@ static int isp116x_hub_resume(struct usb_hcd *hcd)
return 0;
}

static void isp116x_rh_resume(void *_hcd)
{
struct usb_hcd *hcd = _hcd;

usb_resume_device(hcd->self.root_hub);
}

#else

#define isp116x_hub_suspend NULL
#define isp116x_hub_resume NULL

static void isp116x_rh_resume(void *_hcd)
{
}

#endif

/*-----------------------------------------------------------------*/
Expand Down Expand Up @@ -1732,7 +1722,6 @@ static int __init isp116x_probe(struct device *dev)
isp116x->addr_reg = addr_reg;
spin_lock_init(&isp116x->lock);
INIT_LIST_HEAD(&isp116x->async);
INIT_WORK(&isp116x->rh_resume, isp116x_rh_resume, hcd);
isp116x->board = dev->platform_data;

if (!isp116x->board) {
Expand Down Expand Up @@ -1777,16 +1766,10 @@ static int __init isp116x_probe(struct device *dev)
static int isp116x_suspend(struct device *dev, pm_message_t state)
{
int ret = 0;
struct usb_hcd *hcd = dev_get_drvdata(dev);

VDBG("%s: state %x\n", __func__, state);

ret = usb_suspend_device(hcd->self.root_hub);
if (!ret) {
dev->power.power_state = state;
INFO("%s suspended\n", hcd_name);
} else
ERR("%s suspend failed\n", hcd_name);
dev->power.power_state = state;

return ret;
}
Expand All @@ -1797,15 +1780,11 @@ static int isp116x_suspend(struct device *dev, pm_message_t state)
static int isp116x_resume(struct device *dev)
{
int ret = 0;
struct usb_hcd *hcd = dev_get_drvdata(dev);

VDBG("%s: state %x\n", __func__, dev->power.power_state);

ret = usb_resume_device(hcd->self.root_hub);
if (!ret) {
dev->power.power_state = PMSG_ON;
VDBG("%s resumed\n", (char *)hcd_name);
}
dev->power.power_state = PMSG_ON;

return ret;
}

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/usb/host/isp116x.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ static const int cc_to_error[16] = {

struct isp116x {
spinlock_t lock;
struct work_struct rh_resume;

void __iomem *addr_reg;
void __iomem *data_reg;
Expand Down

0 comments on commit bef9ba6

Please sign in to comment.