From: Constantin Baranov Date: Thu, 19 Feb 2009 01:53:20 +0000 (-0800) Subject: niu: improve ethtool support for gigabit copper cards X-Git-Tag: v2.6.30-rc1~662^2~618 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38bb045d493cc166920834087acd934dedc1b5d5;p=pandora-kernel.git niu: improve ethtool support for gigabit copper cards Introduced support for link speed and duplex setting (ethtool -s), link advertising parameters and autonegotiation (ethtool -r): - struct niu_link_config: split advertising and autoneg fields into active and target values (similar to speed and duplex fields) - mii_init_common(): rewrite function to actually apply requested niu_link_config parameters instead of providing default initialization - link_status_1g(): move parsing of MII registers into new link_status_mii() function (link_status_1g_rgmii() could possibly use this new implementation too) - introduce simple nway_reset method - fix incorrect XMAC_CONFIG_MODE selection for 10Mbps case Signed-off-by: Constantin Baranov Signed-off-by: David S. Miller --- Reading git-diff-tree failed