]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: fix for wrong partition id calculation on OCP mezz cards
authorMariusz Stachura <mariusz.stachura@intel.com>
Thu, 8 Mar 2018 22:52:10 +0000 (14:52 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 14 Mar 2018 19:32:53 +0000 (12:32 -0700)
commit570e339911bb4493400ce1e6bb0c4ffa58b833df
treee35b7656e16c07df03f8418d1ab174e1d14d98cd
parentce46077fc12757a7c455546a02405012da03fef0
i40e: fix for wrong partition id calculation on OCP mezz cards

This patch overwrites number of ports for X722 devices with support
for OCP PHY mezzanine.
The old method with checking if port is disabled in the PRTGEN_CNF
register cannot be used in this case. When the OCP is removed, ports
were seen as disabled, which resulted in wrong calculation of partition
id, that caused WoL to be disabled on certain ports.

Signed-off-by: Mariusz Stachura <mariusz.stachura@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_common.c
drivers/net/ethernet/intel/i40e/i40e_type.h