mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-09-12 07:49:41 +00:00
Removed the following patches because they were upstreamed: bcm27xx/patches-5.15/950-0020-drm-probe-helper-Create-a-HPD-IRQ-event-helper-for-a.patch [0] bcm47xx/patches-5.15/701-bgmac-reduce-max-frame-size-to-support-just-MTU-1500.patch [1] bcm53xx/patches-5.15/700-bgmac-reduce-max-frame-size-to-support-just-MTU-1500.patch [1] Manually adapted the following patches: bcm27xx/patches-5.15/950-0151-usb-add-plumbing-for-updating-interrupt-endpoint-int.patch bcm27xx/patches-5.15/950-0600-xhci-quirks-add-link-TRB-quirk-for-VL805.patch [0]: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=5211d75e2cb75cb129602247e79058f26afb4104 [1]: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=3ce32a9fb1d210f1e8384ebbfc336b64d3c131bd Link: https://github.com/openwrt/openwrt/pull/18012 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
18 lines
712 B
Diff
18 lines
712 B
Diff
When the Ethernet controller is powered down and someone wants to
|
|
access the mdio bus like the witch driver (b53) the system crashed if
|
|
PCI_D3hot was set before. This patch deactivates this power sawing mode
|
|
when a switch driver is in use.
|
|
|
|
--- a/drivers/net/ethernet/broadcom/tg3.c
|
|
+++ b/drivers/net/ethernet/broadcom/tg3.c
|
|
@@ -4269,7 +4269,8 @@ static int tg3_power_down_prepare(struct
|
|
static void tg3_power_down(struct tg3 *tp)
|
|
{
|
|
pci_wake_from_d3(tp->pdev, tg3_flag(tp, WOL_ENABLE));
|
|
- pci_set_power_state(tp->pdev, PCI_D3hot);
|
|
+ if (!tg3_flag(tp, ROBOSWITCH))
|
|
+ pci_set_power_state(tp->pdev, PCI_D3hot);
|
|
}
|
|
|
|
static void tg3_aux_stat_to_speed_duplex(struct tg3 *tp, u32 val, u32 *speed, u8 *duplex)
|