forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'openwrt:main' into mx4300-dev
- Loading branch information
Showing
131 changed files
with
307 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-6.6 = .57 | ||
LINUX_KERNEL_HASH-6.6.57 = 66ce426ef96f99b8e1ef7ac72e780c730ef8b970f7aa5708501c4274d7abb7b3 | ||
LINUX_VERSION-6.6 = .58 | ||
LINUX_KERNEL_HASH-6.6.58 = e7df81e588d70fab5ec3ec3bb04ac53d51f0860fc3b1ec45e0a4167a026899db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,15 +191,15 @@ Signed-off-by: Jonathan Bell <[email protected]> | |
static void macb_init_buffers(struct macb *bp) | ||
{ | ||
struct macb_queue *queue; | ||
@@ -969,6 +985,7 @@ static int macb_mii_init(struct macb *bp | ||
@@ -977,6 +993,7 @@ static int macb_mii_init(struct macb *bp | ||
bp->mii_bus->write = &macb_mdio_write_c22; | ||
bp->mii_bus->read_c45 = &macb_mdio_read_c45; | ||
bp->mii_bus->write_c45 = &macb_mdio_write_c45; | ||
+ bp->mii_bus->reset = &macb_mdio_reset; | ||
snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", | ||
bp->pdev->name, bp->pdev->id); | ||
bp->mii_bus->priv = bp; | ||
@@ -1640,6 +1657,11 @@ static int macb_rx(struct macb_queue *qu | ||
@@ -1648,6 +1665,11 @@ static int macb_rx(struct macb_queue *qu | ||
|
||
macb_init_rx_ring(queue); | ||
queue_writel(queue, RBQP, queue->rx_ring_dma); | ||
|
@@ -211,7 +211,7 @@ Signed-off-by: Jonathan Bell <[email protected]> | |
|
||
macb_writel(bp, NCR, ctrl | MACB_BIT(RE)); | ||
|
||
@@ -1940,8 +1962,9 @@ static irqreturn_t macb_interrupt(int ir | ||
@@ -1948,8 +1970,9 @@ static irqreturn_t macb_interrupt(int ir | ||
queue_writel(queue, ISR, MACB_BIT(TCOMP) | | ||
MACB_BIT(TXUBR)); | ||
|
||
|
@@ -222,7 +222,7 @@ Signed-off-by: Jonathan Bell <[email protected]> | |
wmb(); // ensure softirq can see update | ||
} | ||
|
||
@@ -2394,6 +2417,11 @@ static netdev_tx_t macb_start_xmit(struc | ||
@@ -2402,6 +2425,11 @@ static netdev_tx_t macb_start_xmit(struc | ||
skb_tx_timestamp(skb); | ||
|
||
spin_lock_irq(&bp->lock); | ||
|
@@ -234,7 +234,7 @@ Signed-off-by: Jonathan Bell <[email protected]> | |
macb_writel(bp, NCR, macb_readl(bp, NCR) | MACB_BIT(TSTART)); | ||
spin_unlock_irq(&bp->lock); | ||
|
||
@@ -2768,6 +2796,37 @@ static void macb_configure_dma(struct ma | ||
@@ -2776,6 +2804,37 @@ static void macb_configure_dma(struct ma | ||
} | ||
} | ||
|
||
|
@@ -272,7 +272,7 @@ Signed-off-by: Jonathan Bell <[email protected]> | |
static void macb_init_hw(struct macb *bp) | ||
{ | ||
u32 config; | ||
@@ -2796,6 +2855,11 @@ static void macb_init_hw(struct macb *bp | ||
@@ -2804,6 +2863,11 @@ static void macb_init_hw(struct macb *bp | ||
if (bp->caps & MACB_CAPS_JUMBO) | ||
bp->rx_frm_len_mask = MACB_RX_JFRMLEN_MASK; | ||
|
||
|
@@ -284,7 +284,7 @@ Signed-off-by: Jonathan Bell <[email protected]> | |
macb_configure_dma(bp); | ||
|
||
/* Enable RX partial store and forward and set watermark */ | ||
@@ -3157,6 +3221,52 @@ static void gem_get_ethtool_strings(stru | ||
@@ -3165,6 +3229,52 @@ static void gem_get_ethtool_strings(stru | ||
} | ||
} | ||
|
||
|
@@ -337,7 +337,7 @@ Signed-off-by: Jonathan Bell <[email protected]> | |
static struct net_device_stats *macb_get_stats(struct net_device *dev) | ||
{ | ||
struct macb *bp = netdev_priv(dev); | ||
@@ -3749,6 +3859,8 @@ static const struct ethtool_ops macb_eth | ||
@@ -3757,6 +3867,8 @@ static const struct ethtool_ops macb_eth | ||
}; | ||
|
||
static const struct ethtool_ops gem_ethtool_ops = { | ||
|
@@ -346,7 +346,7 @@ Signed-off-by: Jonathan Bell <[email protected]> | |
.get_regs_len = macb_get_regs_len, | ||
.get_regs = macb_get_regs, | ||
.get_wol = macb_get_wol, | ||
@@ -3758,6 +3870,8 @@ static const struct ethtool_ops gem_etht | ||
@@ -3766,6 +3878,8 @@ static const struct ethtool_ops gem_etht | ||
.get_ethtool_stats = gem_get_ethtool_stats, | ||
.get_strings = gem_get_ethtool_strings, | ||
.get_sset_count = gem_get_sset_count, | ||
|
@@ -355,7 +355,7 @@ Signed-off-by: Jonathan Bell <[email protected]> | |
.get_link_ksettings = macb_get_link_ksettings, | ||
.set_link_ksettings = macb_set_link_ksettings, | ||
.get_ringparam = macb_get_ringparam, | ||
@@ -5054,6 +5168,11 @@ static int macb_probe(struct platform_de | ||
@@ -5062,6 +5176,11 @@ static int macb_probe(struct platform_de | ||
} | ||
} | ||
} | ||
|
@@ -367,7 +367,7 @@ Signed-off-by: Jonathan Bell <[email protected]> | |
spin_lock_init(&bp->lock); | ||
|
||
/* setup capabilities */ | ||
@@ -5109,6 +5228,21 @@ static int macb_probe(struct platform_de | ||
@@ -5117,6 +5236,21 @@ static int macb_probe(struct platform_de | ||
else | ||
bp->phy_interface = interface; | ||
|
||
|
@@ -389,7 +389,7 @@ Signed-off-by: Jonathan Bell <[email protected]> | |
/* IP specific init */ | ||
err = init(pdev); | ||
if (err) | ||
@@ -5185,6 +5319,19 @@ static int macb_remove(struct platform_d | ||
@@ -5193,6 +5327,19 @@ static int macb_remove(struct platform_d | ||
return 0; | ||
} | ||
|
||
|
@@ -409,7 +409,7 @@ Signed-off-by: Jonathan Bell <[email protected]> | |
static int __maybe_unused macb_suspend(struct device *dev) | ||
{ | ||
struct net_device *netdev = dev_get_drvdata(dev); | ||
@@ -5399,6 +5546,7 @@ static const struct dev_pm_ops macb_pm_o | ||
@@ -5407,6 +5554,7 @@ static const struct dev_pm_ops macb_pm_o | ||
static struct platform_driver macb_driver = { | ||
.probe = macb_probe, | ||
.remove = macb_remove, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.