diff options
Diffstat (limited to 'drivers/usb/gadget/udc/net2280.h')
-rw-r--r-- | drivers/usb/gadget/udc/net2280.h | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/drivers/usb/gadget/udc/net2280.h b/drivers/usb/gadget/udc/net2280.h index 03f15242d794..ac8d5a20a378 100644 --- a/drivers/usb/gadget/udc/net2280.h +++ b/drivers/usb/gadget/udc/net2280.h | |||
@@ -100,7 +100,6 @@ struct net2280_ep { | |||
100 | dma_addr_t td_dma; /* of dummy */ | 100 | dma_addr_t td_dma; /* of dummy */ |
101 | struct net2280 *dev; | 101 | struct net2280 *dev; |
102 | unsigned long irqs; | 102 | unsigned long irqs; |
103 | unsigned is_halt:1, dma_started:1; | ||
104 | 103 | ||
105 | /* analogous to a host-side qh */ | 104 | /* analogous to a host-side qh */ |
106 | struct list_head queue; | 105 | struct list_head queue; |
@@ -126,7 +125,7 @@ static inline void allow_status(struct net2280_ep *ep) | |||
126 | ep->stopped = 1; | 125 | ep->stopped = 1; |
127 | } | 126 | } |
128 | 127 | ||
129 | static void allow_status_338x(struct net2280_ep *ep) | 128 | static inline void allow_status_338x(struct net2280_ep *ep) |
130 | { | 129 | { |
131 | /* | 130 | /* |
132 | * Control Status Phase Handshake was set by the chip when the setup | 131 | * Control Status Phase Handshake was set by the chip when the setup |
@@ -165,8 +164,8 @@ struct net2280 { | |||
165 | u2_enable:1, | 164 | u2_enable:1, |
166 | ltm_enable:1, | 165 | ltm_enable:1, |
167 | wakeup_enable:1, | 166 | wakeup_enable:1, |
168 | selfpowered:1, | 167 | addressed_state:1, |
169 | addressed_state:1; | 168 | bug7734_patched:1; |
170 | u16 chiprev; | 169 | u16 chiprev; |
171 | int enhanced_mode; | 170 | int enhanced_mode; |
172 | int n_ep; | 171 | int n_ep; |
@@ -356,23 +355,6 @@ static inline void start_out_naking(struct net2280_ep *ep) | |||
356 | readl(&ep->regs->ep_rsp); | 355 | readl(&ep->regs->ep_rsp); |
357 | } | 356 | } |
358 | 357 | ||
359 | #ifdef DEBUG | ||
360 | static inline void assert_out_naking(struct net2280_ep *ep, const char *where) | ||
361 | { | ||
362 | u32 tmp = readl(&ep->regs->ep_stat); | ||
363 | |||
364 | if ((tmp & BIT(NAK_OUT_PACKETS)) == 0) { | ||
365 | ep_dbg(ep->dev, "%s %s %08x !NAK\n", | ||
366 | ep->ep.name, where, tmp); | ||
367 | writel(BIT(SET_NAK_OUT_PACKETS), | ||
368 | &ep->regs->ep_rsp); | ||
369 | } | ||
370 | } | ||
371 | #define ASSERT_OUT_NAKING(ep) assert_out_naking(ep, __func__) | ||
372 | #else | ||
373 | #define ASSERT_OUT_NAKING(ep) do {} while (0) | ||
374 | #endif | ||
375 | |||
376 | static inline void stop_out_naking(struct net2280_ep *ep) | 358 | static inline void stop_out_naking(struct net2280_ep *ep) |
377 | { | 359 | { |
378 | u32 tmp; | 360 | u32 tmp; |