OSDN Git Service

ice: move auto FEC checks into ice_cfg_phy_fec()
authorPaul Greenwalt <paul.greenwalt@intel.com>
Thu, 9 Jul 2020 16:16:05 +0000 (09:16 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 23 Jul 2020 22:05:49 +0000 (15:05 -0700)
commit61cf42e71abcb13950c6cc32805defb0fb3b658e
tree719ead264c88481e582ed6bd52c83e52389f1d08
parent2ffb60856ac857ecae3e87a69c0a977e4a608ae0
ice: move auto FEC checks into ice_cfg_phy_fec()

The call to ice_cfg_phy_fec() requires the caller to perform certain
actions before calling it. Instead of imposing these preconditions move
the operations into the function and perform them ourselves.

Also, fix some style issues in nearby touched code.

Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Signed-off-by: Chinh T Cao <chinh.t.cao@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_common.c
drivers/net/ethernet/intel/ice/ice_common.h
drivers/net/ethernet/intel/ice/ice_ethtool.c