src/dpdk/drivers/net/txgbe/base/txgbe_phy.c
s32 txgbe_reset_phy(struct txgbe_hw *hw)
{
	s32 err = 0;

	DEBUGFUNC("txgbe_reset_phy");

	if (hw->phy.type == txgbe_phy_unknown)
		err = txgbe_identify_phy(hw);

	if (err != 0 || hw->phy.type == txgbe_phy_none)
		return err;

	/* Don't reset PHY if it's shut down due to overtemp. */
	if (hw->phy.check_overtemp(hw) == TXGBE_ERR_OVERTEMP)
		return err;

	/* Blocked by MNG FW so bail */
	if (txgbe_check_reset_blocked(hw))
		return err;

	switch (hw->phy.type) {
	case txgbe_phy_cu_mtd:
		err = txgbe_reset_extphy(hw);
		break;
	default:
		break;
	}

	return err;
}
/**
 *  txgbe_reset_phy - Performs a PHY reset
 *  @hw: pointer to hardware structure
 **/
Performs a PHY reset
@hw: pointer to hardware structure
Performs a PHY reset @hw : pointer to hardware structure
s32 txgbe_reset_phy(struct txgbe_hw *hw)
{
	s32 err = 0;
	DEBUGFUNC("txgbe_reset_phy");
	if (hw->phy.type == txgbe_phy_unknown)
		err = txgbe_identify_phy(hw);
	if (err != 0 || hw->phy.type == txgbe_phy_none)
		return err;
	if (hw->phy.check_overtemp(hw) == TXGBE_ERR_OVERTEMP)
		return err;
	if (txgbe_check_reset_blocked(hw))
		return err;
	switch (hw->phy.type) {
	case txgbe_phy_cu_mtd:
		err = txgbe_reset_extphy(hw);
		break;
	default:
		break;
	}
	return err;
}
s32 txgbe_reset_phy ( struct txgbe_hw * hw ) { s32 err = 0 ; DEBUGFUNC ( " " ) ; if ( hw -> phy . type == txgbe_phy_unknown ) err = txgbe_identify_phy ( hw ) ; if ( err != 0 || hw -> phy . type == txgbe_phy_none ) return err ; if ( hw -> phy . check_overtemp ( hw ) == TXGBE_ERR_OVERTEMP ) return err ; if ( txgbe_check_reset_blocked ( hw ) ) return err ; switch ( hw -> phy . type ) { case txgbe_phy_cu_mtd : err = txgbe_reset_extphy ( hw ) ; break ; default : break ; } return err ; }
txgbe_reset_phy - Performs a PHY reset
  @hw: pointer to hardware structure
txgbe_reset_phy - Performs a PHY reset @hw : pointer to hardware structure
/* Don't reset PHY if it's shut down due to overtemp. */ /* Blocked by MNG FW so bail */