src/dpdk/drivers/net/cxgbe/base/t4vf_hw.c
static int t4vf_wait_dev_ready(struct adapter *adapter)
{
	const u32 whoami = T4VF_PL_BASE_ADDR + A_PL_VF_WHOAMI;
	const u32 notready1 = 0xffffffff;
	const u32 notready2 = 0xeeeeeeee;
	u32 val;

	val = t4_read_reg(adapter, whoami);
	if (val != notready1 && val != notready2)
		return 0;

	msleep(500);
	val = t4_read_reg(adapter, whoami);
	if (val != notready1 && val != notready2)
		return 0;

	dev_err(adapter, "Device didn't become ready for access, whoami = %#x\n",
		val);
	return -EIO;
}
/**
 * t4vf_wait_dev_ready - wait till to reads of registers work
 *
 * Wait for the device to become ready (signified by our "who am I" register
 * returning a value other than all 1's).  Return an error if it doesn't
 * become ready ...
 */
wait till to reads of registers work
Wait for the device to become ready (signified by our "who am I" register
returning a value other than all 1's).  Return an error if it doesn't
become ready
wait till to reads of registers work Wait for the device to become ready ( signified by our " who am I " register returning a value other than all 1 ' s ) . Return an error if it doesn ' t become ready
static int t4vf_wait_dev_ready(struct adapter *adapter)
{
	const u32 whoami = T4VF_PL_BASE_ADDR + A_PL_VF_WHOAMI;
	const u32 notready1 = 0xffffffff;
	const u32 notready2 = 0xeeeeeeee;
	u32 val;
	val = t4_read_reg(adapter, whoami);
	if (val != notready1 && val != notready2)
		return 0;
	msleep(500);
	val = t4_read_reg(adapter, whoami);
	if (val != notready1 && val != notready2)
		return 0;
	dev_err(adapter, "Device didn't become ready for access, whoami = %#x\n",
		val);
	return -EIO;
}
static int t4vf_wait_dev_ready ( struct adapter * adapter ) { const u32 whoami = T4VF_PL_BASE_ADDR + A_PL_VF_WHOAMI ; const u32 notready1 = 0xffffffff ; const u32 notready2 = 0xeeeeeeee ; u32 val ; val = t4_read_reg ( adapter , whoami ) ; if ( val != notready1 && val != notready2 ) return 0 ; msleep ( 500 ) ; val = t4_read_reg ( adapter , whoami ) ; if ( val != notready1 && val != notready2 ) return 0 ; dev_err ( adapter , " \n " , val ) ; return - EIO ; }
t4vf_wait_dev_ready - wait till to reads of registers work
 Wait for the device to become ready (signified by our "who am I" register
 returning a value other than all 1's).
t4vf_wait_dev_ready - wait till to reads of registers work Wait for the device to become ready ( signified by our " who am I " register returning a value other than all 1 ' s ) .