]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Pass unknown PHY type for unknown PHYs
authorHenry Tieman <henry.w.tieman@intel.com>
Tue, 8 Nov 2016 21:05:07 +0000 (13:05 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 3 Dec 2016 07:15:49 +0000 (23:15 -0800)
commitdae49296772bdf6e3a10c0d7b525421e40ef5006
tree764526b5ff7479aee298b00da83dc57361a07580
parentd8527b6465916f528e22e8560a150bf9d604a263
i40e: Pass unknown PHY type for unknown PHYs

The PHY type value for unrecognized PHYs and cables was changed
based on firmware version number. Newer hardware use lower firmware
version numbers and this was causing some PHYs to be identified
as type 0x16 instead of 0xe (unknown).

Without this patch, newer card will incorrectly identify unknown
PHYs and cables.

This change adds hardware type to the check for firmware version
so the PHY type is reported correctly.

Change-ID: I0723cbfd263c76fc73ff1a5275d1639051376c9a
Signed-off-by: Henry Tieman <henry.w.tieman@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