bfa: Chinook quad port 16G FC HBA claim issue
authorVijaya Mohan Guvva <vmohan@brocade.com>
Wed, 4 Dec 2013 13:43:58 +0000 (05:43 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 1 Apr 2014 23:58:39 +0000 (00:58 +0100)
commitb482f7d9e1d70c0b93d26c994cbee3e7143573ae
tree966c278c83dba3f903f423568b739820540035c8
parent7e53b282681234988e3840519e17142cd89595e5
bfa: Chinook quad port 16G FC HBA claim issue

commit dcaf9aed995c2b2a49fb86bbbcfa2f92c797ab5d upstream.

Bfa driver crash is observed while pushing the firmware on to chinook
quad port card due to uninitialized bfi_image_ct2 access which gets
initialized only for CT2 ASIC based cards after request_firmware().
For quard port chinook (CT2 ASIC based), bfi_image_ct2 is not getting
initialized as there is no check for chinook PCI device ID before
request_firmware and instead bfi_image_cb is initialized as it is the
default case for card type check.

This patch includes changes to read the right firmware for quad port chinook.

Signed-off-by: Vijaya Mohan Guvva <vmohan@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/scsi/bfa/bfad.c