OSDN Git Service

ice : Ensure only valid bits are set in ice_aq_set_phy_cfg
authorChinh T Cao <chinh.t.cao@intel.com>
Fri, 8 Feb 2019 20:50:52 +0000 (12:50 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 19 Mar 2019 23:52:47 +0000 (16:52 -0700)
commitd8df260af70f8b8a9f23466f569c820a90e91696
treea4a33416d9875f09fa43fb213799ba1b2fdef85c
parent16c3301b55668fe8b163cad5c6b4d064bfa7c6fc
ice : Ensure only valid bits are set in ice_aq_set_phy_cfg

In the ice_aq_set_phy_cfg AQ command, the 16.4 bit is reserved. This
patch will make sure that this bit will never be set to 1.

Signed-off-by: Chinh T Cao <chinh.t.cao@intel.com>
Reviewed-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
drivers/net/ethernet/intel/ice/ice_common.c
drivers/net/ethernet/intel/ice/ice_type.h