|
@@ -121,7 +121,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
defect7374_enable_data_eps_zero(dev);
|
|
defect7374_enable_data_eps_zero(dev);
|
|
|
|
|
|
ep0_start(dev);
|
|
ep0_start(dev);
|
|
-@@ -3063,7 +3063,7 @@ static void handle_stat0_irqs(struct net
|
|
|
|
|
|
+@@ -3060,7 +3060,7 @@ static void handle_stat0_irqs(struct net
|
|
}
|
|
}
|
|
ep->stopped = 0;
|
|
ep->stopped = 0;
|
|
dev->protocol_stall = 0;
|
|
dev->protocol_stall = 0;
|
|
@@ -130,7 +130,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
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);
|
|
-@@ -3090,7 +3090,7 @@ static void handle_stat0_irqs(struct net
|
|
|
|
|
|
+@@ -3087,7 +3087,7 @@ static void handle_stat0_irqs(struct net
|
|
cpu_to_le32s(&u.raw[0]);
|
|
cpu_to_le32s(&u.raw[0]);
|
|
cpu_to_le32s(&u.raw[1]);
|
|
cpu_to_le32s(&u.raw[1]);
|
|
|
|
|
|
@@ -139,7 +139,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
defect7374_workaround(dev, u.r);
|
|
defect7374_workaround(dev, u.r);
|
|
|
|
|
|
tmp = 0;
|
|
tmp = 0;
|
|
-@@ -3173,7 +3173,7 @@ static void handle_stat0_irqs(struct net
|
|
|
|
|
|
+@@ -3170,7 +3170,7 @@ static void handle_stat0_irqs(struct net
|
|
} else {
|
|
} else {
|
|
ep_vdbg(dev, "%s clear halt\n", e->ep.name);
|
|
ep_vdbg(dev, "%s clear halt\n", e->ep.name);
|
|
clear_halt(e);
|
|
clear_halt(e);
|
|
@@ -148,7 +148,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
!list_empty(&e->queue) && e->td_dma)
|
|
!list_empty(&e->queue) && e->td_dma)
|
|
restart_dma(e);
|
|
restart_dma(e);
|
|
}
|
|
}
|
|
-@@ -3195,7 +3195,7 @@ static void handle_stat0_irqs(struct net
|
|
|
|
|
|
+@@ -3192,7 +3192,7 @@ static void handle_stat0_irqs(struct net
|
|
if (e->ep.name == ep0name)
|
|
if (e->ep.name == ep0name)
|
|
goto do_stall;
|
|
goto do_stall;
|
|
set_halt(e);
|
|
set_halt(e);
|
|
@@ -157,7 +157,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
abort_dma(e);
|
|
abort_dma(e);
|
|
allow_status(ep);
|
|
allow_status(ep);
|
|
ep_vdbg(dev, "%s set halt\n", ep->ep.name);
|
|
ep_vdbg(dev, "%s set halt\n", ep->ep.name);
|
|
-@@ -3234,7 +3234,7 @@ do_stall:
|
|
|
|
|
|
+@@ -3231,7 +3231,7 @@ do_stall:
|
|
#undef w_length
|
|
#undef w_length
|
|
|
|
|
|
next_endpoints:
|
|
next_endpoints:
|
|
@@ -166,7 +166,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
u32 mask = (BIT(ENDPOINT_0_INTERRUPT) |
|
|
u32 mask = (BIT(ENDPOINT_0_INTERRUPT) |
|
|
USB3380_IRQSTAT0_EP_INTR_MASK_IN |
|
|
USB3380_IRQSTAT0_EP_INTR_MASK_IN |
|
|
USB3380_IRQSTAT0_EP_INTR_MASK_OUT);
|
|
USB3380_IRQSTAT0_EP_INTR_MASK_OUT);
|
|
-@@ -3399,7 +3399,7 @@ __acquires(dev->lock)
|
|
|
|
|
|
+@@ -3392,7 +3392,7 @@ static void handle_stat1_irqs(struct net
|
|
writel(tmp, &dma->dmastat);
|
|
writel(tmp, &dma->dmastat);
|
|
|
|
|
|
/* dma sync*/
|
|
/* dma sync*/
|
|
@@ -175,7 +175,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
u32 r_dmacount = readl(&dma->dmacount);
|
|
u32 r_dmacount = readl(&dma->dmacount);
|
|
if (!ep->is_in && (r_dmacount & 0x00FFFFFF) &&
|
|
if (!ep->is_in && (r_dmacount & 0x00FFFFFF) &&
|
|
(tmp & BIT(DMA_TRANSACTION_DONE_INTERRUPT)))
|
|
(tmp & BIT(DMA_TRANSACTION_DONE_INTERRUPT)))
|
|
-@@ -3468,7 +3468,7 @@ static irqreturn_t net2280_irq(int irq,
|
|
|
|
|
|
+@@ -3461,7 +3461,7 @@ static irqreturn_t net2280_irq(int irq,
|
|
/* control requests and PIO */
|
|
/* control requests and PIO */
|
|
handle_stat0_irqs(dev, readl(&dev->regs->irqstat0));
|
|
handle_stat0_irqs(dev, readl(&dev->regs->irqstat0));
|
|
|
|
|
|
@@ -184,7 +184,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
/* re-enable interrupt to trigger any possible new interrupt */
|
|
/* re-enable interrupt to trigger any possible new interrupt */
|
|
u32 pciirqenb1 = readl(&dev->regs->pciirqenb1);
|
|
u32 pciirqenb1 = readl(&dev->regs->pciirqenb1);
|
|
writel(pciirqenb1 & 0x7FFFFFFF, &dev->regs->pciirqenb1);
|
|
writel(pciirqenb1 & 0x7FFFFFFF, &dev->regs->pciirqenb1);
|
|
-@@ -3513,7 +3513,7 @@ static void net2280_remove(struct pci_de
|
|
|
|
|
|
+@@ -3506,7 +3506,7 @@ static void net2280_remove(struct pci_de
|
|
}
|
|
}
|
|
if (dev->got_irq)
|
|
if (dev->got_irq)
|
|
free_irq(pdev->irq, dev);
|
|
free_irq(pdev->irq, dev);
|
|
@@ -193,7 +193,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
pci_disable_msi(pdev);
|
|
pci_disable_msi(pdev);
|
|
if (dev->regs)
|
|
if (dev->regs)
|
|
iounmap(dev->regs);
|
|
iounmap(dev->regs);
|
|
-@@ -3593,7 +3593,7 @@ static int net2280_probe(struct pci_dev
|
|
|
|
|
|
+@@ -3586,7 +3586,7 @@ static int net2280_probe(struct pci_dev
|
|
dev->dep = (struct net2280_dep_regs __iomem *) (base + 0x0200);
|
|
dev->dep = (struct net2280_dep_regs __iomem *) (base + 0x0200);
|
|
dev->epregs = (struct net2280_ep_regs __iomem *) (base + 0x0300);
|
|
dev->epregs = (struct net2280_ep_regs __iomem *) (base + 0x0300);
|
|
|
|
|
|
@@ -202,7 +202,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
u32 fsmvalue;
|
|
u32 fsmvalue;
|
|
u32 usbstat;
|
|
u32 usbstat;
|
|
dev->usb_ext = (struct usb338x_usb_ext_regs __iomem *)
|
|
dev->usb_ext = (struct usb338x_usb_ext_regs __iomem *)
|
|
-@@ -3637,7 +3637,7 @@ static int net2280_probe(struct pci_dev
|
|
|
|
|
|
+@@ -3630,7 +3630,7 @@ static int net2280_probe(struct pci_dev
|
|
goto done;
|
|
goto done;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -211,7 +211,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
if (pci_enable_msi(pdev))
|
|
if (pci_enable_msi(pdev))
|
|
ep_err(dev, "Failed to enable MSI mode\n");
|
|
ep_err(dev, "Failed to enable MSI mode\n");
|
|
|
|
|
|
-@@ -3755,10 +3755,19 @@ static const struct pci_device_id pci_id
|
|
|
|
|
|
+@@ -3748,10 +3748,19 @@ static const struct pci_device_id pci_id
|
|
.class = ((PCI_CLASS_SERIAL_USB << 8) | 0xfe),
|
|
.class = ((PCI_CLASS_SERIAL_USB << 8) | 0xfe),
|
|
.class_mask = ~0,
|
|
.class_mask = ~0,
|
|
.vendor = PCI_VENDOR_ID_PLX,
|
|
.vendor = PCI_VENDOR_ID_PLX,
|
|
@@ -232,7 +232,7 @@ Signed-off-by: Felipe Balbi <[email protected]>
|
|
},
|
|
},
|
|
{
|
|
{
|
|
.class = ((PCI_CLASS_SERIAL_USB << 8) | 0xfe),
|
|
.class = ((PCI_CLASS_SERIAL_USB << 8) | 0xfe),
|
|
-@@ -3767,7 +3776,7 @@ static const struct pci_device_id pci_id
|
|
|
|
|
|
+@@ -3760,7 +3769,7 @@ static const struct pci_device_id pci_id
|
|
.device = 0x3382,
|
|
.device = 0x3382,
|
|
.subvendor = PCI_ANY_ID,
|
|
.subvendor = PCI_ANY_ID,
|
|
.subdevice = PCI_ANY_ID,
|
|
.subdevice = PCI_ANY_ID,
|