]> 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)
commitb4d8969d76608a748e248a6e3b63affdf8f8c5c1
tree764526b5ff7479aee298b00da83dc57361a07580
parent0f6249a0f870f22d37bd3ecfd72db559da90a7fd
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