]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
usbnet: add a mutex around phy register access
authorArnd Bergmann <arnd@arndb.de>
Sun, 8 Oct 2006 22:08:02 +0000 (00:08 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Oct 2006 21:46:32 +0000 (14:46 -0700)
commita9fc6338bd51a3d5735839e756fe7b741c2e6fad
tree0c75d1739bd65f21b125562dd9f603b1d195dd8c
parentc41286fd42f3545513f8de9f61028120b6d38e89
usbnet: add a mutex around phy register access

When working on the mcs7830, I noticed the need for a mutex in its
mdio_read/mdio_write functions. A related problem seems to be present
in the asix driver in the respective functions.

This introduces a mutex in the common usbnet driver and uses it
from the two hardware specific drivers.

Acked-by: David Hollis <dhollis@davehollis.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/net/asix.c
drivers/usb/net/mcs7830.c
drivers/usb/net/usbnet.c
drivers/usb/net/usbnet.h