Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200679
b: refs/heads/master
c: 1c81557
h: refs/heads/master
i:
  200677: eb634be
  200675: d2ecddf
  200671: 8833c4a
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Jun 30, 2010
1 parent a9869e7 commit 6179ca0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 9a49a14da4afe2c4ab7d7025a2f7f0f99a1c90e0
refs/heads/master: 1c815577823951ff082fe1201fdd5efec5e6e8ea
15 changes: 10 additions & 5 deletions trunk/drivers/usb/host/isp1362-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2224,12 +2224,9 @@ static void remove_debug_file(struct isp1362_hcd *isp1362_hcd)

/*-------------------------------------------------------------------------*/

static void isp1362_sw_reset(struct isp1362_hcd *isp1362_hcd)
static void __isp1362_sw_reset(struct isp1362_hcd *isp1362_hcd)
{
int tmp = 20;
unsigned long flags;

spin_lock_irqsave(&isp1362_hcd->lock, flags);

isp1362_write_reg16(isp1362_hcd, HCSWRES, HCSWRES_MAGIC);
isp1362_write_reg32(isp1362_hcd, HCCMDSTAT, OHCI_HCR);
Expand All @@ -2240,6 +2237,14 @@ static void isp1362_sw_reset(struct isp1362_hcd *isp1362_hcd)
}
if (!tmp)
pr_err("Software reset timeout\n");
}

static void isp1362_sw_reset(struct isp1362_hcd *isp1362_hcd)
{
unsigned long flags;

spin_lock_irqsave(&isp1362_hcd->lock, flags);
__isp1362_sw_reset(isp1362_hcd);
spin_unlock_irqrestore(&isp1362_hcd->lock, flags);
}

Expand Down Expand Up @@ -2418,7 +2423,7 @@ static void isp1362_hc_stop(struct usb_hcd *hcd)
if (isp1362_hcd->board && isp1362_hcd->board->reset)
isp1362_hcd->board->reset(hcd->self.controller, 1);
else
isp1362_sw_reset(isp1362_hcd);
__isp1362_sw_reset(isp1362_hcd);

if (isp1362_hcd->board && isp1362_hcd->board->clock)
isp1362_hcd->board->clock(hcd->self.controller, 0);
Expand Down

0 comments on commit 6179ca0

Please sign in to comment.