Merge branch 'r8169_6.1x' into 'stable-1.6'

[r8169] Do not write invalid MAC onto NIC on removal

See merge request etherlab.org/ethercat!195
This commit is contained in:
Florian Pose
2026-05-22 11:48:36 +02:00
6 changed files with 21 additions and 8 deletions
+3 -1
View File
@@ -5093,7 +5093,9 @@ static void rtl_remove_one(struct pci_dev *pdev)
rtl_release_firmware(tp);
/* restore original MAC address */
rtl_rar_set(tp, tp->dev->perm_addr);
if (is_valid_ether_addr(tp->dev->perm_addr)) {
rtl_rar_set(tp, tp->dev->perm_addr);
}
}
static const struct net_device_ops rtl_netdev_ops = {
+3 -1
View File
@@ -5071,7 +5071,9 @@ static void rtl_remove_one(struct pci_dev *pdev)
rtl_release_firmware(tp);
/* restore original MAC address */
rtl_rar_set(tp, tp->dev->perm_addr);
if (is_valid_ether_addr(tp->dev->perm_addr)) {
rtl_rar_set(tp, tp->dev->perm_addr);
}
}
static const struct net_device_ops rtl_netdev_ops = {
+3 -1
View File
@@ -5064,7 +5064,9 @@ static void rtl_remove_one(struct pci_dev *pdev)
rtl_release_firmware(tp);
/* restore original MAC address */
rtl_rar_set(tp, tp->dev->perm_addr);
if (is_valid_ether_addr(tp->dev->perm_addr)) {
rtl_rar_set(tp, tp->dev->perm_addr);
}
}
static const struct net_device_ops rtl_netdev_ops = {
+3 -1
View File
@@ -4942,7 +4942,9 @@ static void rtl_remove_one(struct pci_dev *pdev)
rtl_release_firmware(tp);
/* restore original MAC address */
rtl_rar_set(tp, tp->dev->perm_addr);
if (is_valid_ether_addr(tp->dev->perm_addr)) {
rtl_rar_set(tp, tp->dev->perm_addr);
}
}
static const struct net_device_ops rtl_netdev_ops = {
+6 -3
View File
@@ -5168,8 +5168,9 @@ static void rtl_shutdown(struct pci_dev *pdev)
rtnl_unlock();
/* Restore original MAC address */
rtl_rar_set(tp, tp->dev->perm_addr);
if (is_valid_ether_addr(tp->dev->perm_addr)) {
rtl_rar_set(tp, tp->dev->perm_addr);
}
if (system_state == SYSTEM_POWER_OFF && !tp->dash_enabled) {
pci_wake_from_d3(pdev, tp->saved_wolopts);
pci_set_power_state(pdev, PCI_D3hot);
@@ -5202,7 +5203,9 @@ static void rtl_remove_one(struct pci_dev *pdev)
rtl_release_firmware(tp);
/* restore original MAC address */
rtl_rar_set(tp, tp->dev->perm_addr);
if (is_valid_ether_addr(tp->dev->perm_addr)) {
rtl_rar_set(tp, tp->dev->perm_addr);
}
}
static const struct net_device_ops rtl_netdev_ops = {
+3 -1
View File
@@ -4984,7 +4984,9 @@ static void rtl_remove_one(struct pci_dev *pdev)
rtl_release_firmware(tp);
/* restore original MAC address */
rtl_rar_set(tp, tp->dev->perm_addr);
if (is_valid_ether_addr(tp->dev->perm_addr)) {
rtl_rar_set(tp, tp->dev->perm_addr);
}
}
static const struct net_device_ops rtl_netdev_ops = {