/* Return: true if a connected RX device was detected, false otherwise  */
static bool is_connected(struct udevice *dev)
/* Return: true if a connected RX device was detected, false otherwise  */
static bool is_connected(struct udevice *dev)
{
	u8 retries = 0;
	do {
		int status = get_reg(dev, REG_INTERRUPT_SIG_STATE) &
			     INTERRUPT_SIG_STATE_HPD_STATE_MASK;
		if (status)
			return true;
		udelay(1000);
	} while (retries++ < IS_CONNECTED_MAX_TIMEOUT_COUNT);
	return false;
}