diff options
| -rw-r--r-- | drivers/usb/chipidea/otg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/chipidea/otg.h b/drivers/usb/chipidea/otg.h index 2d9f090733bc..449bee07f4fe 100644 --- a/drivers/usb/chipidea/otg.h +++ b/drivers/usb/chipidea/otg.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (C) 2013 Freescale Semiconductor, Inc. | 2 | * Copyright (C) 2013-2014 Freescale Semiconductor, Inc. |
| 3 | * | 3 | * |
| 4 | * Author: Peter Chen | 4 | * Author: Peter Chen |
| 5 | * | 5 | * |
| @@ -19,12 +19,12 @@ static inline void ci_clear_otg_interrupt(struct ci_hdrc *ci, u32 bits) | |||
| 19 | 19 | ||
| 20 | static inline void ci_enable_otg_interrupt(struct ci_hdrc *ci, u32 bits) | 20 | static inline void ci_enable_otg_interrupt(struct ci_hdrc *ci, u32 bits) |
| 21 | { | 21 | { |
| 22 | hw_write(ci, OP_OTGSC, bits, bits); | 22 | hw_write(ci, OP_OTGSC, bits | OTGSC_INT_STATUS_BITS, bits); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | static inline void ci_disable_otg_interrupt(struct ci_hdrc *ci, u32 bits) | 25 | static inline void ci_disable_otg_interrupt(struct ci_hdrc *ci, u32 bits) |
| 26 | { | 26 | { |
| 27 | hw_write(ci, OP_OTGSC, bits, 0); | 27 | hw_write(ci, OP_OTGSC, bits | OTGSC_INT_STATUS_BITS, 0); |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | int ci_hdrc_otg_init(struct ci_hdrc *ci); | 30 | int ci_hdrc_otg_init(struct ci_hdrc *ci); |
