From: Wenzhuo Lu Date: Fri, 5 Jun 2015 05:21:58 +0000 (+0800) Subject: ixgbe/base: restrict EEE to X550em KR backplane X-Git-Tag: spdx-start~9078 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=669bc48bd9338195d142509b7aa6e05b5b99ed3c;p=dpdk.git ixgbe/base: restrict EEE to X550em KR backplane This patch sets the setup_EEE function pointer to NULL for the interfaces which do not support EEE (Energy Efficient Ethernet). Currently only the KR backplane interface (0x15AB) supports EEE. Setting this pointer to NULL prevents EEE registers from being incorrectly modified and gives base drivers a flag to check for EEE support. Signed-off-by: Wenzhuo Lu Acked-by: Helin Zhang --- diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index 8edc52c1a9..da312ba0ed 100644 --- a/drivers/net/ixgbe/base/ixgbe_x550.c +++ b/drivers/net/ixgbe/base/ixgbe_x550.c @@ -390,6 +390,9 @@ s32 ixgbe_init_ops_X550EM(struct ixgbe_hw *hw) mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync_X550em; mac->ops.release_swfw_sync = ixgbe_release_swfw_sync_X550em; + if (hw->device_id != IXGBE_DEV_ID_X550EM_X_KR) + mac->ops.setup_eee = NULL; + /* PHY */ phy->ops.init = ixgbe_init_phy_ops_X550em; phy->ops.identify = ixgbe_identify_phy_x550em;