[PATCH] smc91x: fix compilation on SMP

Previous thread: [BUG bisected] 2.6.30.4: NET: active FTP doesn't work by Vitezslav Samel on Wednesday, August 26, 2009 - 1:33 am. (2 messages)

Next thread: [RFC] atm/br2684 netif_*_queue, packet loss or performance loss. by Karl Hiramoto on Wednesday, August 26, 2009 - 2:45 am. (1 message)
From: Alexey Dobriyan
Date: Wednesday, August 26, 2009 - 1:55 am

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 drivers/net/smc91x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/smc91x.c
+++ b/drivers/net/smc91x.c
@@ -531,7 +531,7 @@ static inline void  smc_rcv(struct net_device *dev)
 		local_irq_restore(flags);				\
 	__ret;								\
 })
-#define smc_special_lock(lock, flags)		spin_lock_irq(lock, flags)
+#define smc_special_lock(lock, flags)		spin_lock_irqsave(lock, flags)
 #define smc_special_unlock(lock, flags) 	spin_unlock_irqrestore(lock, flags)
 #else
 #define smc_special_trylock(lock, flags)	(1)
--

From: DDD
Date: Wednesday, August 26, 2009 - 2:39 am

Hi Alexey,

Thanks for you correct me. :-)

For "smc91x", I just compile it on an old linux version, and merge the
changes to the latest linux for creating a patch. 
I think it must be OK, so I didn't compile the patch on the latest
linux. 

I'm so sorry for my careless.


Dongdong


--

From: David Miller
Date: Wednesday, August 26, 2009 - 12:03 pm

From: Alexey Dobriyan <adobriyan@gmail.com>

Applied, thanks. :-/
--

Previous thread: [BUG bisected] 2.6.30.4: NET: active FTP doesn't work by Vitezslav Samel on Wednesday, August 26, 2009 - 1:33 am. (2 messages)

Next thread: [RFC] atm/br2684 netif_*_queue, packet loss or performance loss. by Karl Hiramoto on Wednesday, August 26, 2009 - 2:45 am. (1 message)