diff options
-rw-r--r-- | drivers/net/benet/be_cmds.c | 36 | ||||
-rw-r--r-- | drivers/net/benet/be_cmds.h | 2 | ||||
-rw-r--r-- | drivers/net/benet/be_main.c | 3 |
3 files changed, 0 insertions, 41 deletions
diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index 1e7f305ed00b..36eca1ce75d4 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c | |||
@@ -1471,42 +1471,6 @@ err: | |||
1471 | return status; | 1471 | return status; |
1472 | } | 1472 | } |
1473 | 1473 | ||
1474 | /* Uses sync mcc */ | ||
1475 | int be_cmd_read_port_type(struct be_adapter *adapter, u32 port, | ||
1476 | u8 *connector) | ||
1477 | { | ||
1478 | struct be_mcc_wrb *wrb; | ||
1479 | struct be_cmd_req_port_type *req; | ||
1480 | int status; | ||
1481 | |||
1482 | spin_lock_bh(&adapter->mcc_lock); | ||
1483 | |||
1484 | wrb = wrb_from_mccq(adapter); | ||
1485 | if (!wrb) { | ||
1486 | status = -EBUSY; | ||
1487 | goto err; | ||
1488 | } | ||
1489 | req = embedded_payload(wrb); | ||
1490 | |||
1491 | be_wrb_hdr_prepare(wrb, sizeof(struct be_cmd_resp_port_type), true, 0, | ||
1492 | OPCODE_COMMON_READ_TRANSRECV_DATA); | ||
1493 | |||
1494 | be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, | ||
1495 | OPCODE_COMMON_READ_TRANSRECV_DATA, sizeof(*req)); | ||
1496 | |||
1497 | req->port = cpu_to_le32(port); | ||
1498 | req->page_num = cpu_to_le32(TR_PAGE_A0); | ||
1499 | status = be_mcc_notify_wait(adapter); | ||
1500 | if (!status) { | ||
1501 | struct be_cmd_resp_port_type *resp = embedded_payload(wrb); | ||
1502 | *connector = resp->data.connector; | ||
1503 | } | ||
1504 | |||
1505 | err: | ||
1506 | spin_unlock_bh(&adapter->mcc_lock); | ||
1507 | return status; | ||
1508 | } | ||
1509 | |||
1510 | int be_cmd_write_flashrom(struct be_adapter *adapter, struct be_dma_mem *cmd, | 1474 | int be_cmd_write_flashrom(struct be_adapter *adapter, struct be_dma_mem *cmd, |
1511 | u32 flash_type, u32 flash_opcode, u32 buf_size) | 1475 | u32 flash_type, u32 flash_opcode, u32 buf_size) |
1512 | { | 1476 | { |
diff --git a/drivers/net/benet/be_cmds.h b/drivers/net/benet/be_cmds.h index c7f6cdfe1c73..8469ff061f30 100644 --- a/drivers/net/benet/be_cmds.h +++ b/drivers/net/benet/be_cmds.h | |||
@@ -1022,8 +1022,6 @@ extern int be_cmd_set_beacon_state(struct be_adapter *adapter, | |||
1022 | u8 port_num, u8 beacon, u8 status, u8 state); | 1022 | u8 port_num, u8 beacon, u8 status, u8 state); |
1023 | extern int be_cmd_get_beacon_state(struct be_adapter *adapter, | 1023 | extern int be_cmd_get_beacon_state(struct be_adapter *adapter, |
1024 | u8 port_num, u32 *state); | 1024 | u8 port_num, u32 *state); |
1025 | extern int be_cmd_read_port_type(struct be_adapter *adapter, u32 port, | ||
1026 | u8 *connector); | ||
1027 | extern int be_cmd_write_flashrom(struct be_adapter *adapter, | 1025 | extern int be_cmd_write_flashrom(struct be_adapter *adapter, |
1028 | struct be_dma_mem *cmd, u32 flash_oper, | 1026 | struct be_dma_mem *cmd, u32 flash_oper, |
1029 | u32 flash_opcode, u32 buf_size); | 1027 | u32 flash_opcode, u32 buf_size); |
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 45b1f6635282..8c3bd63b567b 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -2299,9 +2299,6 @@ static int be_clear(struct be_adapter *adapter) | |||
2299 | 2299 | ||
2300 | 2300 | ||
2301 | #define FW_FILE_HDR_SIGN "ServerEngines Corp. " | 2301 | #define FW_FILE_HDR_SIGN "ServerEngines Corp. " |
2302 | char flash_cookie[2][16] = {"*** SE FLAS", | ||
2303 | "H DIRECTORY *** "}; | ||
2304 | |||
2305 | static bool be_flash_redboot(struct be_adapter *adapter, | 2302 | static bool be_flash_redboot(struct be_adapter *adapter, |
2306 | const u8 *p, u32 img_start, int image_size, | 2303 | const u8 *p, u32 img_start, int image_size, |
2307 | int hdr_size) | 2304 | int hdr_size) |