]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: fix BE3-R FW download compatibility check
authorKalesh AP <kalesh.purayil@avagotech.com>
Mon, 12 Oct 2015 07:47:17 +0000 (03:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 11:32:41 +0000 (04:32 -0700)
commitf62955f301f56170d8106cd2610b0113d9a9d424
treef5884bdf1e6adba824fde126644deb9ae3768b92
parented2b39b52a9157d998a79a8f6d4050da6b69a54e
be2net: fix BE3-R FW download compatibility check

In the BE3 FW image, unlike Skyhawk's, the "asic_type_rev" field doesn't
track the asic_rev of chip it is compatible with. When asic_type_rev
is 0 the image is compatible only with pre-BE3-R chips (asic_rev < 0x10).
Fix the current compatibility check to take care of this.
We hit this issue when we try to flash old BE3 images (used prior to the
release of BE3-R) on pre-BE3-R adapters.

Fixes: e5384bc935b7b27 ("be2net: simplify UFI compatibility checking")
Signed-off-by: Kalesh AP <kalesh.purayil@avagotech.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c