diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2015-01-06 14:47:02 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-12 12:13:29 -0600 |
commit | e3a912a124c380db61eff762faa0547ea4c90eb4 (patch) | |
tree | e5f07058d777a5cfe1de9be66a5b24c4c3fc6cad /drivers/usb/gadget/udc/atmel_usba_udc.h | |
parent | 9870d895ad87efae130b2990db9ba265271f113b (diff) | |
download | op-kernel-dev-e3a912a124c380db61eff762faa0547ea4c90eb4.zip op-kernel-dev-e3a912a124c380db61eff762faa0547ea4c90eb4.tar.gz |
usb: gadget: atmel_usba: Cache INT_ENB register value
Cache INT_ENB register value in order to avoid uncached iomem access, and
thus improve access time to INT_ENB value.
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc/atmel_usba_udc.h')
-rw-r--r-- | drivers/usb/gadget/udc/atmel_usba_udc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.h b/drivers/usb/gadget/udc/atmel_usba_udc.h index 72b3537..497cd18 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.h +++ b/drivers/usb/gadget/udc/atmel_usba_udc.h @@ -334,6 +334,8 @@ struct usba_udc { u16 test_mode; int vbus_prev; + u32 int_enb_cache; + #ifdef CONFIG_USB_GADGET_DEBUG_FS struct dentry *debugfs_root; struct dentry *debugfs_regs; |