/* reset_dp_phy() - Reset a device @dev: The LogiCore DP TX device in question @reset: Bit mask determining which bits in the device's config register should be set for the reset  */
static void reset_dp_phy(struct udevice *dev, u32 reset)
/* reset_dp_phy() - Reset a device @dev: The LogiCore DP TX device in question @reset: Bit mask determining which bits in the device's config register should be set for the reset  */
static void reset_dp_phy(struct udevice *dev, u32 reset)
{
	struct dp_tx *dp_tx = dev_get_priv(dev);
	u32 val;
	set_reg(dev, REG_ENABLE, 0x0);
	val = get_reg(dev, REG_PHY_CONFIG);
	set_reg(dev, REG_PHY_CONFIG, val | reset);
	set_reg(dev, REG_PHY_CONFIG, val);
	wait_phy_ready(dev, phy_status_lanes_ready_mask(dp_tx->max_lane_count));
	set_reg(dev, REG_ENABLE, 0x1);
}