}
/******************************************************************************
* Description:
- * E3B0 disable will return basicly the values to init values.
+ * E3B0 disable will return basically the values to init values.
*.
******************************************************************************/
static elink_status_t elink_ets_e3b0_disabled(const struct elink_params *params,
/******************************************************************************
* Description:
- * Disable will return basicly the values to init values.
+ * Disable will return basically the values to init values.
*
******************************************************************************/
elink_status_t elink_ets_disabled(struct elink_params *params,
/******************************************************************************
* Description
- * Set the COS mappimg to SP and BW until this point all the COS are not
+ * Set the COS mapping to SP and BW until this point all the COS are not
* set as SP or BW.
******************************************************************************/
static elink_status_t elink_ets_e3b0_cli_map(const struct elink_params *params,
}
ELINK_DEBUG_P0(sc,
"elink_ets_E3B0_config total BW should be 100");
- /* We can handle a case whre the BW isn't 100 this can happen
+ /* We can handle a case where the BW isn't 100 this can happen
* if the TC are joined.
*/
}
REG_WR(sc, NIG_REG_EGRESS_EMAC0_PORT + port * 4, 1);
#ifdef ELINK_INCLUDE_EMUL
- /* for paladium */
+ /* for palladium */
if (CHIP_REV_IS_EMUL(sc)) {
/* Use lane 1 (of lanes 0-3) */
REG_WR(sc, NIG_REG_XGXS_LANE_SEL_P0 + port * 4, 1);
/* Set Time (based unit is 512 bit time) between automatic
* re-sending of PP packets amd enable automatic re-send of
- * Per-Priroity Packet as long as pp_gen is asserted and
+ * Per-Priority Packet as long as pp_gen is asserted and
* pp_disable is low.
*/
val = 0x8000;
}
/**
- * elink_get_emac_base - retrive emac base address
+ * elink_get_emac_base - retrieve emac base address
*
* @bp: driver handle
* @mdc_mdio_access: access type
elink_cl45_write(sc, phy, reg_set[i].devad, reg_set[i].reg,
reg_set[i].val);
- /* Start KR2 work-around timer which handles BNX2X8073 link-parner */
+ /* Start KR2 work-around timer which handles BNX2X8073 link-partner */
params->link_attr_sync |= LINK_ATTR_SYNC_KR2_ENABLE;
elink_update_link_attr(params, params->link_attr_sync);
}
PORT_HW_CFG_E3_MOD_ABS_MASK) >>
PORT_HW_CFG_E3_MOD_ABS_SHIFT;
- /* Should not happen. This function called upon interrupt
- * triggered by GPIO ( since EPIO can only generate interrupts
- * to MCP).
+ /*
+ * This should not happen since this function is called
+ * from interrupt triggered by GPIO (since EPIO can only
+ * generate interrupts to MCP).
* So if this function was called and none of the GPIOs was set,
- * it means the shit hit the fan.
+ * it means something disastrous has already happened.
*/
if ((cfg_pin < PIN_CFG_GPIO0_P0) ||
(cfg_pin > PIN_CFG_GPIO3_P1)) {
* hence its link is expected to be down
* - SECOND_PHY means that first phy should not be able
* to link up by itself (using configuration)
- * - DEFAULT should be overridden during initialiazation
+ * - DEFAULT should be overridden during initialization
*/
ELINK_DEBUG_P1(sc, "Invalid link indication"
" mpc=0x%x. DISABLING LINK !!!",
uint8_t port)
{
uint32_t count = 0;
- uint16_t fw_ver1, fw_msgout;
+ uint16_t fw_ver1 = 0, fw_msgout;
elink_status_t rc = ELINK_STATUS_OK;
/* Boot port from external ROM */
ELINK_DEBUG_P0(sc, "FW cmd failed.");
return ELINK_STATUS_ERROR;
}
- /* Step5: Once the command has completed, read the specficied DATA
+ /* Step5: Once the command has completed, read the specified DATA
* registers for any saved results for the command, if applicable
*/
/* Once KR2 was disabled, wait 5 seconds before checking KR2 recovery
* Since some switches tend to reinit the AN process and clear the
- * the advertised BP/NP after ~2 seconds causing the KR2 to be disabled
+ * advertised BP/NP after ~2 seconds causing the KR2 to be disabled
* and recovered many times
*/
if (vars->check_kr2_recovery_cnt > 0) {