|
@@ -356,23 +356,6 @@ static inline void start_out_naking(struct net2280_ep *ep)
|
|
|
readl(&ep->regs->ep_rsp);
|
|
|
}
|
|
|
|
|
|
-#ifdef DEBUG
|
|
|
-static inline void assert_out_naking(struct net2280_ep *ep, const char *where)
|
|
|
-{
|
|
|
- u32 tmp = readl(&ep->regs->ep_stat);
|
|
|
-
|
|
|
- if ((tmp & BIT(NAK_OUT_PACKETS)) == 0) {
|
|
|
- ep_dbg(ep->dev, "%s %s %08x !NAK\n",
|
|
|
- ep->ep.name, where, tmp);
|
|
|
- writel(BIT(SET_NAK_OUT_PACKETS),
|
|
|
- &ep->regs->ep_rsp);
|
|
|
- }
|
|
|
-}
|
|
|
-#define ASSERT_OUT_NAKING(ep) assert_out_naking(ep, __func__)
|
|
|
-#else
|
|
|
-#define ASSERT_OUT_NAKING(ep) do {} while (0)
|
|
|
-#endif
|
|
|
-
|
|
|
static inline void stop_out_naking(struct net2280_ep *ep)
|
|
|
{
|
|
|
u32 tmp;
|