diff options
author | David Brownell <david-b@pacbell.net> | 2007-05-17 15:21:19 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 19:29:47 -0400 |
commit | 9c033e810eef0aff6d4d3bf028aa1e583c074f93 (patch) | |
tree | b7dfa412f7882fa90fd6bb8c5e8cbc2185bd12cf /drivers/usb/host/ehci.h | |
parent | 04d06ad0f1fdb499af84ae3d7969e2136a462f38 (diff) |
USB: ehci refcounts work on ppc7448
Remove atomic operations on the reference counter for EHCI queue heads.
On various platforms (including ppc7448), atomic operations are unusable
with dma-coherent memory.
Signed-off-by: Steven J. Hill <sjhill1@rockwellcollins.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r-- | drivers/usb/host/ehci.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 79ad2af5ef6a..6ef9d775775b 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h | |||
@@ -457,7 +457,14 @@ struct ehci_qh { | |||
457 | struct ehci_qh *reclaim; /* next to reclaim */ | 457 | struct ehci_qh *reclaim; /* next to reclaim */ |
458 | 458 | ||
459 | struct ehci_hcd *ehci; | 459 | struct ehci_hcd *ehci; |
460 | struct kref kref; | 460 | |
461 | /* | ||
462 | * Do NOT use atomic operations for QH refcounting. On some CPUs | ||
463 | * (PPC7448 for example), atomic operations cannot be performed on | ||
464 | * memory that is cache-inhibited (i.e. being used for DMA). | ||
465 | * Spinlocks are used to protect all QH fields. | ||
466 | */ | ||
467 | u32 refcount; | ||
461 | unsigned stamp; | 468 | unsigned stamp; |
462 | 469 | ||
463 | u8 qh_state; | 470 | u8 qh_state; |