summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/at91_udc.h
diff options
context:
space:
mode:
authorHarro Haan <hrhaan@gmail.com>2010-03-01 18:01:56 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-06-16 23:00:00 +0100
commit4f4c5e36e7cd26c9b5bf89d66caeee5fc3d75362 (patch)
tree55a751f86e75d5f8e59b9a0dc610e701dba74917 /drivers/usb/gadget/at91_udc.h
parent7e27d6e778cd87b6f2415515d7127eba53fe5d02 (diff)
downloadblackbird-op-linux-4f4c5e36e7cd26c9b5bf89d66caeee5fc3d75362.tar.gz
blackbird-op-linux-4f4c5e36e7cd26c9b5bf89d66caeee5fc3d75362.zip
ARM: 5967/1: at91_udc.c use spinlocks instead of local_irq_xxx
The locking code of this driver is reworked for preempt-rt. For more info see: http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100203/09cdb3b4/attachment.el http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100203/3ad44e30/attachment.el First applied: "at91_udc HW glitch" http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=5966/1 Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Harro Haan <hrhaan@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/usb/gadget/at91_udc.h')
-rw-r--r--drivers/usb/gadget/at91_udc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/at91_udc.h b/drivers/usb/gadget/at91_udc.h
index c65d62295890..bc76a39c2bb1 100644
--- a/drivers/usb/gadget/at91_udc.h
+++ b/drivers/usb/gadget/at91_udc.h
@@ -144,6 +144,7 @@ struct at91_udc {
struct proc_dir_entry *pde;
void __iomem *udp_baseaddr;
int udp_irq;
+ spinlock_t lock;
};
static inline struct at91_udc *to_udc(struct usb_gadget *g)
OpenPOWER on IntegriCloud