]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd6337bfe2542cece82c0833fb1530e0a8fadbc7a
tree719ead264c88481e582ed6bd52c83e52389f1d08
parent189c716f9f440d0689f228164fa13bc7e394b1b4
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