Commit 5d1b6840 authored by Ricardo Ribalda Delgado's avatar Ricardo Ribalda Delgado Committed by Felipe Balbi

usb: gadget: udc: net2280: Remove field is_halt

Field is_halt is never used by any function.
Signed-off-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent cf8b1cde
...@@ -2643,7 +2643,6 @@ static void ep_stall(struct net2280_ep *ep, int stall) ...@@ -2643,7 +2643,6 @@ static void ep_stall(struct net2280_ep *ep, int stall)
/* BIT(SET_NAK_PACKETS) | */ /* BIT(SET_NAK_PACKETS) | */
BIT(CLEAR_CONTROL_STATUS_PHASE_HANDSHAKE), BIT(CLEAR_CONTROL_STATUS_PHASE_HANDSHAKE),
&ep->regs->ep_rsp); &ep->regs->ep_rsp);
ep->is_halt = 1;
} else { } else {
if (dev->gadget.speed == USB_SPEED_SUPER) { if (dev->gadget.speed == USB_SPEED_SUPER) {
/* /*
...@@ -2663,7 +2662,6 @@ static void ep_stall(struct net2280_ep *ep, int stall) ...@@ -2663,7 +2662,6 @@ static void ep_stall(struct net2280_ep *ep, int stall)
writel(val, writel(val,
/* | BIT(CLEAR_NAK_PACKETS),*/ /* | BIT(CLEAR_NAK_PACKETS),*/
&ep->regs->ep_rsp); &ep->regs->ep_rsp);
ep->is_halt = 0;
val = readl(&ep->regs->ep_rsp); val = readl(&ep->regs->ep_rsp);
} }
} }
...@@ -2924,9 +2922,7 @@ static void handle_stat0_irqs(struct net2280 *dev, u32 stat) ...@@ -2924,9 +2922,7 @@ static void handle_stat0_irqs(struct net2280 *dev, u32 stat)
} }
ep->stopped = 0; ep->stopped = 0;
dev->protocol_stall = 0; dev->protocol_stall = 0;
if (dev->quirks & PLX_SUPERSPEED) if (!(dev->quirks & PLX_SUPERSPEED)) {
ep->is_halt = 0;
else{
if (ep->dev->quirks & PLX_2280) if (ep->dev->quirks & PLX_2280)
tmp = BIT(FIFO_OVERFLOW) | tmp = BIT(FIFO_OVERFLOW) |
BIT(FIFO_UNDERFLOW); BIT(FIFO_UNDERFLOW);
......
...@@ -100,7 +100,6 @@ struct net2280_ep { ...@@ -100,7 +100,6 @@ struct net2280_ep {
dma_addr_t td_dma; /* of dummy */ dma_addr_t td_dma; /* of dummy */
struct net2280 *dev; struct net2280 *dev;
unsigned long irqs; unsigned long irqs;
unsigned is_halt:1;
/* analogous to a host-side qh */ /* analogous to a host-side qh */
struct list_head queue; struct list_head queue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment