r8169: read MAC address from EEPROM on init
Subsystems (2)
Applied to net-next-2.6
David Miller <[email protected]> :
Quoted 2 lines
Applied to net-next-2.6
rtl8169_init_one
-> rtl_init_mac_address
-> rtl_rar_set
-> spin_lock_irq(&tp->lock);
[...]
-> spin_lock_init(&tp->lock);
I am used to respin my patch kit anyway.
Signature · 1 line
Ueimor
David Miller
maintainerFrom: Francois Romieu <[email protected]>
Date: Thu, 9 Oct 2008 22:16:07 +0200
Quoted 10 lines
David Miller <[email protected]> :
Quoted 2 lines
Applied to net-next-2.6
rtl8169_init_one
->rtl_init_mac_address
->rtl_rar_set-> spin_lock_irq(&tp->lock);[...]
->spin_lock_init(&tp->lock);
Grrr...
Quoted 1 line
I am used to respin my patch kit anyway.
Please send it to me, I'd _REALLY_ appreciate this as the only patches in the queue were posted by other people and you're only mention or r8169 changes is you posting a pointer to some GIT tree or patch set without any "dave/jeff please pull this".
I'd rather you send me fixes as soon as you have them rather than have them get clogged up in your tree for weeks or longer. That's how mistakes like this happen.
If I don't have any fixes from the official person (you) then I'm going to apply fixes that look OK from people who do actually post them individually to the list for review.
:-)
PATCH 1/1 r8169: fix early spinlock use
rtl8169_init_one
-> rtl_init_mac_address
-> rtl_rar_set
-> spin_lock_irq(&tp->lock);
[...]
-> spin_lock_init(&tp->lock);
--- drivers/net/r8169.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/net/r8169.c +2 -3
@@ -1952,7 +1952,8 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) dev->do_ioctl = rtl8169_ioctl; } -/* Read MAC address from EEPROM */ +spin_lock_init (&tp->lock); +rtl_init_mac_address (tp, ioaddr);/* Get MAC address */
@@ -1995,8 +1996,6 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) tp->timer.data = (unsigned long ) dev; tp->timer.function = rtl8169_phy_timer; -spin_lock_init (&tp->lock); - rc =register_netdev (dev);if (rc <0 ) goto err_out_msi_5;
Signature · 1 line
1.5.3.3
David Miller
maintainerRe: [PATCH] r8169: fix early spinlock use
From: Francois Romieu <[email protected]>
Date: Thu, 9 Oct 2008 23:35:13 +0200
Quoted 8 lines
rtl8169_init_one
->rtl_init_mac_address
->rtl_rar_set-> spin_lock_irq(&tp->lock);[...]
->spin_lock_init(&tp->lock);Signed-off-by Francois Romieu <[email protected]>
Applied thanks!