net/ice/base: support checking all autoneg enable bits
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 15 Jun 2020 02:05:02 +0000 (10:05 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jun 2020 17:21:08 +0000 (19:21 +0200)
commitb952bf867fbb45949ac4e7f2317fec75cdc170aa
treef715d4bee03cb36ba47a823d3824c2657d6a0bd8
parent1565a51e50d794c688e68f6ce5fb580830a57e2c
net/ice/base: support checking all autoneg enable bits

struct ice_aqc_get_phy_caps_data has multiple autoneg enable bits.
ice_is_phy_caps_an_enabled checks all bits and returns true if any
autoneg enable bits are set.

Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_common.c
drivers/net/ice/base/ice_common.h