diff options
author | Anil Veerabhadrappa <anilgv@broadcom.com> | 2010-03-25 10:54:42 -0700 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-04-11 09:53:18 -0500 |
commit | ce2d763a2cd09513cb0c0e9ea52c30373c00b2f1 (patch) | |
tree | eafb84d82ae79bdcc8a5a926d10955ee4fbff3fb /drivers/scsi/sd.c | |
parent | 2e15efc7e1f99f56896b89fad9d13baac3c635f9 (diff) | |
download | op-kernel-dev-ce2d763a2cd09513cb0c0e9ea52c30373c00b2f1.zip op-kernel-dev-ce2d763a2cd09513cb0c0e9ea52c30373c00b2f1.tar.gz |
[SCSI] bnx2i: link bnx2i hba and cnic device before registering the device
When bnx2/cnic/bnx2i drivers are loaded in certain order, bnx2i will
will not initialize the device correctly because 'hba->cnic' will be
NULL when bnx2i_start() is called from register_device() context.
Under this condition 'ifdown' and 'ifup' of associated network
interface is required to bring iscsi adapter state to ready state so
that it will accept iscsi connection setup within the chip
Initializing 'hba->cnic' before calling register_device() will fix
this issue
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Anil Veerabhadrappa <anilgv@broadcom.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/sd.c')
0 files changed, 0 insertions, 0 deletions