]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: rtl8169_set_speed_xmii cleanup.
authorFrancois Romieu <romieu@fr.zoreil.com>
Fri, 11 Mar 2011 19:30:24 +0000 (20:30 +0100)
committerFrancois romieu <romieu@fr.zoreil.com>
Mon, 9 May 2011 19:03:01 +0000 (21:03 +0200)
commit3234167e344dd0baa1c3eeb3d223a3ad2542771c
tree41f572c46c0c07e001f7fb07538f1751271bdb7b
parent10062bd797e23a67b9d3d8ccc873201cef7963a9
r8169: rtl8169_set_speed_xmii cleanup.

Shorten chipset version test.

No functional change.

Careful readers will notice that the 'supports_gmii' flag is deduced
from the device PCI id. Though less specific than the chipset related
RTL_GIGA_MAC_VER_XY, it is good enough to detect a GMII deprieved 810x.
Some features push for a device specific configuration (improved jumbo
frame support for instance). 'supports_gmii' will follow this path
if / when the device PCI id test stops working.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Realtek linux nic maintainers <nic_swsd@realtek.com>
drivers/net/r8169.c