]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Remove unneeded link_config.orig_... members
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 13 Feb 2012 15:20:15 +0000 (15:20 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:21:34 +0000 (15:21 +0800)
commit17b5790e477cf5ab4ca89363c07a777fbead2659
tree6a91e5f3da4f777c9bb38ae88156f584a789aa8a
parent995bb5fd5c3b3ee2e78f1bca5300428ec9a5c202
tg3: Remove unneeded link_config.orig_... members

This patch removes the unneeded link_config.orig_* members.  When the
phy is in a low power state, the TG3_PHYFLG_IS_LOW_POWER flag solely
determines how the link is configured.  When the phy is powered back up,
it can resume using the original settings.

For the phylib case, the link configuration still needs to be saved, but
since the phylib maintains its own configuration, we can repurpose the
(unused in this case) tg3 link configuration members.

(cherry picked from commit c6700ce2248ecf3b1b6fd009f6aed9b6387d3377)
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c
drivers/net/tg3.h