Skip to contentSkip to conversation

r8169: read MAC address from EEPROM on init

PATCH In review David Miller 2 participants 5 messages Oct 8, 2008 – Oct 9, 2008

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

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
author maintainer
#2 lore raw

From: 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.

:-)

#3 lore raw

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
index 108aaff..59fbc64 100644
@@ -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
author maintainer
#4 lore raw

Re: [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);

Applied thanks!