node-drivers/base-driver/drivers/vca/plx87xx/plx_main.c
static bool plx_wait_good_link(struct plx_device *xdev)
{
	int retry_count = 0;
	while (retry_count < LINK_WAIT_TIMEOUT) {
		if (plx_check_node_link_state(xdev)) {
			dev_info(&xdev->pdev->dev, "Node link established\n");
			return true;
		}
		else
			dev_dbg(&xdev->pdev->dev, "%s: No link yet\n", __func__);
		if (++retry_count < LINK_WAIT_TIMEOUT)
			msleep(1000);
	}
	return false;
}
/**
 * plx_wait_good_link - wait up to 60 seconds for expected node PCIe link
 * state (established Gen 3)
 * @xdev: plx device structure
 * return: true if the expected state reached
 */
wait up to 60 seconds for expected node PCIe link
state (established Gen 3)
@xdev: plx device structure
return: true if the expected state reached
wait up to 60 seconds for expected node PCIe link state ( established Gen 3 ) @xdev : plx device structure return : true if the expected state reached
static bool plx_wait_good_link(struct plx_device *xdev)
{
	int retry_count = 0;
	while (retry_count < LINK_WAIT_TIMEOUT) {
		if (plx_check_node_link_state(xdev)) {
			dev_info(&xdev->pdev->dev, "Node link established\n");
			return true;
		}
		else
			dev_dbg(&xdev->pdev->dev, "%s: No link yet\n", __func__);
		if (++retry_count < LINK_WAIT_TIMEOUT)
			msleep(1000);
	}
	return false;
}
static bool plx_wait_good_link ( struct plx_device * xdev ) { int retry_count = 0 ; while ( retry_count < LINK_WAIT_TIMEOUT ) { if ( plx_check_node_link_state ( xdev ) ) { dev_info ( & xdev -> pdev -> dev , " \n " ) ; return true ; } else dev_dbg ( & xdev -> pdev -> dev , " \n " , __func__ ) ; if ( ++ retry_count < LINK_WAIT_TIMEOUT ) msleep ( 1000 ) ; } return false ; }
plx_wait_good_link - wait up to 60 seconds for expected node PCIe link
 state (established Gen 3)
 @xdev: plx device structure
 return: true if the expected state reached
plx_wait_good_link - wait up to 60 seconds for expected node PCIe link state ( established Gen 3 ) @xdev : plx device structure return : true if the expected state reached