diff options
| -rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 12 | ||||
| -rw-r--r-- | drivers/scsi/csiostor/csio_hw.c | 6 | ||||
| -rw-r--r-- | drivers/scsi/csiostor/csio_hw.h | 1 |
3 files changed, 3 insertions, 16 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index 1645f59648f0..973dbb7938c3 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |||
| @@ -5524,14 +5524,8 @@ static int adap_init0(struct adapter *adap) | |||
| 5524 | struct fw_caps_config_cmd caps_cmd; | 5524 | struct fw_caps_config_cmd caps_cmd; |
| 5525 | int reset = 1; | 5525 | int reset = 1; |
| 5526 | 5526 | ||
| 5527 | /* | 5527 | /* Contact FW, advertising Master capability */ |
| 5528 | * Contact FW, advertising Master capability (and potentially forcing | 5528 | ret = t4_fw_hello(adap, adap->mbox, adap->mbox, MASTER_MAY, &state); |
| 5529 | * ourselves as the Master PF if our module parameter force_init is | ||
| 5530 | * set). | ||
| 5531 | */ | ||
| 5532 | ret = t4_fw_hello(adap, adap->mbox, adap->fn, | ||
| 5533 | force_init ? MASTER_MUST : MASTER_MAY, | ||
| 5534 | &state); | ||
| 5535 | if (ret < 0) { | 5529 | if (ret < 0) { |
| 5536 | dev_err(adap->pdev_dev, "could not connect to FW, error %d\n", | 5530 | dev_err(adap->pdev_dev, "could not connect to FW, error %d\n", |
| 5537 | ret); | 5531 | ret); |
| @@ -5539,8 +5533,6 @@ static int adap_init0(struct adapter *adap) | |||
| 5539 | } | 5533 | } |
| 5540 | if (ret == adap->mbox) | 5534 | if (ret == adap->mbox) |
| 5541 | adap->flags |= MASTER_PF; | 5535 | adap->flags |= MASTER_PF; |
| 5542 | if (force_init && state == DEV_STATE_INIT) | ||
| 5543 | state = DEV_STATE_UNINIT; | ||
| 5544 | 5536 | ||
| 5545 | /* | 5537 | /* |
| 5546 | * If we're the Master PF Driver and the device is uninitialized, | 5538 | * If we're the Master PF Driver and the device is uninitialized, |
diff --git a/drivers/scsi/csiostor/csio_hw.c b/drivers/scsi/csiostor/csio_hw.c index 1e4c4ee9e11e..9ab997e18b20 100644 --- a/drivers/scsi/csiostor/csio_hw.c +++ b/drivers/scsi/csiostor/csio_hw.c | |||
| @@ -47,7 +47,6 @@ | |||
| 47 | #include "csio_lnode.h" | 47 | #include "csio_lnode.h" |
| 48 | #include "csio_rnode.h" | 48 | #include "csio_rnode.h" |
| 49 | 49 | ||
| 50 | int csio_force_master; | ||
| 51 | int csio_dbg_level = 0xFEFF; | 50 | int csio_dbg_level = 0xFEFF; |
| 52 | unsigned int csio_port_mask = 0xf; | 51 | unsigned int csio_port_mask = 0xf; |
| 53 | 52 | ||
| @@ -889,7 +888,6 @@ csio_do_hello(struct csio_hw *hw, enum csio_dev_state *state) | |||
| 889 | { | 888 | { |
| 890 | struct csio_mb *mbp; | 889 | struct csio_mb *mbp; |
| 891 | int rv = 0; | 890 | int rv = 0; |
| 892 | enum csio_dev_master master; | ||
| 893 | enum fw_retval retval; | 891 | enum fw_retval retval; |
| 894 | uint8_t mpfn; | 892 | uint8_t mpfn; |
| 895 | char state_str[16]; | 893 | char state_str[16]; |
| @@ -904,11 +902,9 @@ csio_do_hello(struct csio_hw *hw, enum csio_dev_state *state) | |||
| 904 | goto out; | 902 | goto out; |
| 905 | } | 903 | } |
| 906 | 904 | ||
| 907 | master = csio_force_master ? CSIO_MASTER_MUST : CSIO_MASTER_MAY; | ||
| 908 | |||
| 909 | retry: | 905 | retry: |
| 910 | csio_mb_hello(hw, mbp, CSIO_MB_DEFAULT_TMO, hw->pfn, | 906 | csio_mb_hello(hw, mbp, CSIO_MB_DEFAULT_TMO, hw->pfn, |
| 911 | hw->pfn, master, NULL); | 907 | hw->pfn, CSIO_MASTER_MAY, NULL); |
| 912 | 908 | ||
| 913 | rv = csio_mb_issue(hw, mbp); | 909 | rv = csio_mb_issue(hw, mbp); |
| 914 | if (rv) { | 910 | if (rv) { |
diff --git a/drivers/scsi/csiostor/csio_hw.h b/drivers/scsi/csiostor/csio_hw.h index 5db2d85195b1..68248da1b9af 100644 --- a/drivers/scsi/csiostor/csio_hw.h +++ b/drivers/scsi/csiostor/csio_hw.h | |||
| @@ -110,7 +110,6 @@ struct csio_scsi_cpu_info { | |||
| 110 | }; | 110 | }; |
| 111 | 111 | ||
| 112 | extern int csio_dbg_level; | 112 | extern int csio_dbg_level; |
| 113 | extern int csio_force_master; | ||
| 114 | extern unsigned int csio_port_mask; | 113 | extern unsigned int csio_port_mask; |
| 115 | extern int csio_msi; | 114 | extern int csio_msi; |
| 116 | 115 | ||
