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. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
2855b9fe41
commit
c6700ce224
@@ -2707,14 +2707,6 @@ struct tg3_link_config {
|
||||
#define AUTONEG_INVALID 0xff
|
||||
u16 active_speed;
|
||||
u32 rmt_adv;
|
||||
|
||||
/* When we go in and out of low power mode we need
|
||||
* to swap with this state.
|
||||
*/
|
||||
u16 orig_speed;
|
||||
u8 orig_duplex;
|
||||
u8 orig_autoneg;
|
||||
u32 orig_advertising;
|
||||
};
|
||||
|
||||
struct tg3_bufmgr_config {
|
||||
|
Reference in New Issue
Block a user