bnx2x: fix built-in kernel driver load failure

Commit b7a49f73059f ("bnx2x: Utilize firmware")
added request_firmware() logic in probe() which caused
load failure when firmware file is not present in initrd (below),
as access to firmware file is not feasible during probe.

  Direct firmware load for bnx2x/bnx2x-e2- failed with error -2
  Direct firmware load for bnx2x/bnx2x-e2- failed with error -2

This patch fixes this issue by -

1. Removing request_firmware() logic from the probe()
   such that .ndo_open() handle it as it used to handle
   it earlier

2. Given request_firmware() is removed from probe(), so
   driver has to relax FW version comparisons a bit against
   the already loaded FW version (by some other PFs of same
   adapter) to allow different compatible/close enough FWs with which
   multiple PFs may run with (in different environments), as the
   given PF who is in probe flow has no idea now with which firmware
   file version it is going to initialize the device in ndo_open()

Reported-by: Paul Menzel <>
Tested-by: Paul Menzel <>
Fixes: b7a49f73059f ("bnx2x: Utilize firmware")
Signed-off-by: Manish Chopra <>
Signed-off-by: Ariel Elior <>
Signed-off-by: Jakub Kicinski <>
3 files changed