be2net: refactor code that checks flash file compatibility
This patch re-factors the code that checks for flash file compatibility
with
the chip type, for better readability, as follows:
- be_get_ufi_type() returns the UFI type from the flash file
- be_check_ufi_compatibility() checks if the UFI type is compatible
with the adapter/chip that is being flashed
Signed-off-by: Vasundhara Volam <email address hidden>
Signed-off-by: Sathya Perla <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
Signed-off-by: Suresh Reddy <email address hidden>
Following three patches are not there ubuntu-vivid tree. These patches required
to fix this issue.
sureshr@ ubuntu: ~/ubuntu- vivid/drivers/ net/ethernet/ emulex/ benet$ git log . c2c5cf8b4d7cd57 08b83ee193
commit 4fd8965cd846a4c
Author: Vasundhara Volam <email address hidden>
Date: Fri Feb 6 08:18:38 2015 -0500
be2net: avoid flashing SH-B0 UFI image on SH-P2 chip
Skyhawk-B0 FW UFI is not compatible to flash on Skyhawk-P2 ASIC.
But, Skyhawk-P2 FW UFI is compatible with both B0 and P2 chips.
Signed-off-by: Vasundhara Volam <email address hidden>
Signed-off-by: Sathya Perla <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
Signed-off-by: Suresh Reddy <email address hidden>
commit 73bc2aad5115e70 1bbe01d6b13a111 190aa1feab
Author: Vasundhara Volam <email address hidden>
Date: Fri Feb 6 08:18:37 2015 -0500
be2net: refactor code that checks flash file compatibility
This patch re-factors the code that checks for flash file compatibility ufi_compatibili ty() checks if the UFI type is compatible
with
the chip type, for better readability, as follows:
- be_get_ufi_type() returns the UFI type from the flash file
- be_check_
with the adapter/chip that is being flashed
Signed-off-by: Vasundhara Volam <email address hidden>
Signed-off-by: Sathya Perla <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
Signed-off-by: Suresh Reddy <email address hidden>
commit 7b2093eb5d31673 6adf0c5517e4b4a 8196e49942
Author: Vasundhara Volam <email address hidden>
Date: Tue Jan 20 03:51:48 2015 -0500
be2net: move definitions related to FW cmdsfrom be_hw.h to be_cmds.h
Some FW cmd related definitions were included in be_hw.h
Signed-off-by: Vasundhara Volam <email address hidden>
Signed-off-by: Sathya Perla <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
Signed-off-by: Suresh Reddy <email address hidden>