aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rb532/patches-4.14/106-dont-use-rx-overflow-and-tx-underflow-interrupts.patch
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-07 16:08:28 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-09-02 16:29:22 +0200
commit94198e2a1c26b75cc1b349f758273bc678569ce9 (patch)
treea1891b8b9d1474484b7faed35a8955203ccdc039 /target/linux/rb532/patches-4.14/106-dont-use-rx-overflow-and-tx-underflow-interrupts.patch
parent7d29a557140381ef1815329f6843b88b4126d490 (diff)
downloadupstream-94198e2a1c26b75cc1b349f758273bc678569ce9.tar.gz
upstream-94198e2a1c26b75cc1b349f758273bc678569ce9.tar.bz2
upstream-94198e2a1c26b75cc1b349f758273bc678569ce9.zip
rb532: drop target
This target is still on kernel 4.14, and recent attempts to move it to kernel 5.4 have not led to success. The device tester reported that it wouldn't boot with the following messages: From sysupgrade: Press any key within 4 seconds to enter setup.... loading kernel from nand... OK setting up elf image... OK jumping to kernel code At this point the system hangs. From CompactFlash: Press any key within 4 seconds to enter setup.... Booting CF Loading kernel... done setting up elf image... kernel out of range kernel loading failed The tester reported that the same was observed with current master (kernel 4.14) as well. This looks like some kernel size restriction. Since this target is quite old and only supports one device, and since nobody else seemed interested in working on this for quite some time, I decided to not put further work into analyzing the problem and drop this together with the other 4.14-only targets. Patchwork series: https://patchwork.ozlabs.org/project/openwrt/list/?series=197066&state=* Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/rb532/patches-4.14/106-dont-use-rx-overflow-and-tx-underflow-interrupts.patch')
-rw-r--r--target/linux/rb532/patches-4.14/106-dont-use-rx-overflow-and-tx-underflow-interrupts.patch156
1 files changed, 0 insertions, 156 deletions
diff --git a/target/linux/rb532/patches-4.14/106-dont-use-rx-overflow-and-tx-underflow-interrupts.patch b/target/linux/rb532/patches-4.14/106-dont-use-rx-overflow-and-tx-underflow-interrupts.patch
deleted file mode 100644
index 2bc2c1067e..0000000000
--- a/target/linux/rb532/patches-4.14/106-dont-use-rx-overflow-and-tx-underflow-interrupts.patch
+++ /dev/null
@@ -1,156 +0,0 @@
---- a/drivers/net/ethernet/korina.c
-+++ b/drivers/net/ethernet/korina.c
-@@ -122,8 +122,6 @@ struct korina_private {
-
- int rx_irq;
- int tx_irq;
-- int ovr_irq;
-- int und_irq;
-
- spinlock_t lock; /* NIC xmit lock */
-
-@@ -891,8 +889,6 @@ static void korina_restart_task(struct w
- */
- disable_irq(lp->rx_irq);
- disable_irq(lp->tx_irq);
-- disable_irq(lp->ovr_irq);
-- disable_irq(lp->und_irq);
-
- writel(readl(&lp->tx_dma_regs->dmasm) |
- DMA_STAT_FINI | DMA_STAT_ERR,
-@@ -911,40 +907,10 @@ static void korina_restart_task(struct w
- }
- korina_multicast_list(dev);
-
-- enable_irq(lp->und_irq);
-- enable_irq(lp->ovr_irq);
- enable_irq(lp->tx_irq);
- enable_irq(lp->rx_irq);
- }
-
--static void korina_clear_and_restart(struct net_device *dev, u32 value)
--{
-- struct korina_private *lp = netdev_priv(dev);
--
-- netif_stop_queue(dev);
-- writel(value, &lp->eth_regs->ethintfc);
-- schedule_work(&lp->restart_task);
--}
--
--/* Ethernet Tx Underflow interrupt */
--static irqreturn_t korina_und_interrupt(int irq, void *dev_id)
--{
-- struct net_device *dev = dev_id;
-- struct korina_private *lp = netdev_priv(dev);
-- unsigned int und;
--
-- spin_lock(&lp->lock);
--
-- und = readl(&lp->eth_regs->ethintfc);
--
-- if (und & ETH_INT_FC_UND)
-- korina_clear_and_restart(dev, und & ~ETH_INT_FC_UND);
--
-- spin_unlock(&lp->lock);
--
-- return IRQ_HANDLED;
--}
--
- static void korina_tx_timeout(struct net_device *dev)
- {
- struct korina_private *lp = netdev_priv(dev);
-@@ -952,25 +918,6 @@ static void korina_tx_timeout(struct net
- schedule_work(&lp->restart_task);
- }
-
--/* Ethernet Rx Overflow interrupt */
--static irqreturn_t
--korina_ovr_interrupt(int irq, void *dev_id)
--{
-- struct net_device *dev = dev_id;
-- struct korina_private *lp = netdev_priv(dev);
-- unsigned int ovr;
--
-- spin_lock(&lp->lock);
-- ovr = readl(&lp->eth_regs->ethintfc);
--
-- if (ovr & ETH_INT_FC_OVR)
-- korina_clear_and_restart(dev, ovr & ~ETH_INT_FC_OVR);
--
-- spin_unlock(&lp->lock);
--
-- return IRQ_HANDLED;
--}
--
- #ifdef CONFIG_NET_POLL_CONTROLLER
- static void korina_poll_controller(struct net_device *dev)
- {
-@@ -993,8 +940,7 @@ static int korina_open(struct net_device
- }
-
- /* Install the interrupt handler
-- * that handles the Done Finished
-- * Ovr and Und Events */
-+ * that handles the Done Finished */
- ret = request_irq(lp->rx_irq, korina_rx_dma_interrupt,
- 0, "Korina ethernet Rx", dev);
- if (ret < 0) {
-@@ -1010,31 +956,10 @@ static int korina_open(struct net_device
- goto err_free_rx_irq;
- }
-
-- /* Install handler for overrun error. */
-- ret = request_irq(lp->ovr_irq, korina_ovr_interrupt,
-- 0, "Ethernet Overflow", dev);
-- if (ret < 0) {
-- printk(KERN_ERR "%s: unable to get OVR IRQ %d\n",
-- dev->name, lp->ovr_irq);
-- goto err_free_tx_irq;
-- }
--
-- /* Install handler for underflow error. */
-- ret = request_irq(lp->und_irq, korina_und_interrupt,
-- 0, "Ethernet Underflow", dev);
-- if (ret < 0) {
-- printk(KERN_ERR "%s: unable to get UND IRQ %d\n",
-- dev->name, lp->und_irq);
-- goto err_free_ovr_irq;
-- }
- mod_timer(&lp->media_check_timer, jiffies + 1);
- out:
- return ret;
-
--err_free_ovr_irq:
-- free_irq(lp->ovr_irq, dev);
--err_free_tx_irq:
-- free_irq(lp->tx_irq, dev);
- err_free_rx_irq:
- free_irq(lp->rx_irq, dev);
- err_release:
-@@ -1052,8 +977,6 @@ static int korina_close(struct net_devic
- /* Disable interrupts */
- disable_irq(lp->rx_irq);
- disable_irq(lp->tx_irq);
-- disable_irq(lp->ovr_irq);
-- disable_irq(lp->und_irq);
-
- korina_abort_tx(dev);
- tmp = readl(&lp->tx_dma_regs->dmasm);
-@@ -1073,8 +996,6 @@ static int korina_close(struct net_devic
-
- free_irq(lp->rx_irq, dev);
- free_irq(lp->tx_irq, dev);
-- free_irq(lp->ovr_irq, dev);
-- free_irq(lp->und_irq, dev);
-
- return 0;
- }
-@@ -1113,8 +1034,6 @@ static int korina_probe(struct platform_
-
- lp->rx_irq = platform_get_irq_byname(pdev, "korina_rx");
- lp->tx_irq = platform_get_irq_byname(pdev, "korina_tx");
-- lp->ovr_irq = platform_get_irq_byname(pdev, "korina_ovr");
-- lp->und_irq = platform_get_irq_byname(pdev, "korina_und");
-
- r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "korina_regs");
- dev->base_addr = r->start;