[SCSI] lpfc 8.3.13: Initialization code clean up and fixes.
- Add poll or wait flag parameter to hba_init_link and hba_down_link. - (From Linux Community) Make return with ENXIO negative. - Remove unused INB code from driver. - Prevent block_magmt_io from returning until mailbox is inactive. Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Este cometimento está contido em:

cometido por
James Bottomley

ascendente
ffc954936b
cometimento
6e7288d9a4
@@ -510,9 +510,9 @@ struct lpfc_hba {
|
||||
void (*lpfc_stop_port)
|
||||
(struct lpfc_hba *);
|
||||
int (*lpfc_hba_init_link)
|
||||
(struct lpfc_hba *);
|
||||
(struct lpfc_hba *, uint32_t);
|
||||
int (*lpfc_hba_down_link)
|
||||
(struct lpfc_hba *);
|
||||
(struct lpfc_hba *, uint32_t);
|
||||
|
||||
/* SLI4 specific HBA data structure */
|
||||
struct lpfc_sli4_hba sli4_hba;
|
||||
@@ -525,7 +525,6 @@ struct lpfc_hba {
|
||||
#define LPFC_SLI3_NPIV_ENABLED 0x02
|
||||
#define LPFC_SLI3_VPORT_TEARDOWN 0x04
|
||||
#define LPFC_SLI3_CRP_ENABLED 0x08
|
||||
#define LPFC_SLI3_INB_ENABLED 0x10
|
||||
#define LPFC_SLI3_BG_ENABLED 0x20
|
||||
#define LPFC_SLI3_DSS_ENABLED 0x40
|
||||
uint32_t iocb_cmd_size;
|
||||
@@ -557,9 +556,6 @@ struct lpfc_hba {
|
||||
|
||||
MAILBOX_t *mbox;
|
||||
uint32_t *mbox_ext;
|
||||
uint32_t *inb_ha_copy;
|
||||
uint32_t *inb_counter;
|
||||
uint32_t inb_last_counter;
|
||||
uint32_t ha_copy;
|
||||
struct _PCB *pcb;
|
||||
struct _IOCB *IOCBs;
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador