node-drivers/base-driver/drivers/vca/plx87xx/plx_main.c
static irqreturn_t plx_deffered_rdp_init(int irq, void *dev)
{
	struct plx_device *xdev = dev;
	int rc;
	if(xdev->hs_done) {
		dev_err(&xdev->pdev->dev,
			"Unexpected handshake IRQ; possible reset on host side\n");
		return -EIO;
	}

	plx_a_lut_clear(xdev, xdev->a_lut_array_base);

	rc = plx_rdp_init(xdev);

	if(rc){
		dev_err(&xdev->pdev->dev, "plx_rdp_init failed rc %d\n", rc);
		return rc;
	}

	if(!xdev->hs_done) {
		dev_err(&xdev->pdev->dev, "Deffered handshake failed\n");
		return 0;
	}

	wake_up_process(plx_deffered_hs_thread);

	return rc;
}
/**
 * plx_deffered_rdp_init - function invoked as deffered handhake handler from
 *	generic irq handler thread
 * @irq: number of triggered irq
 * @dev: pointer to plx_device instance
 *
 * returns 0 on success, < 0 on failure.
 */
function invoked as deffered handhake handler from
generic irq handler thread
@irq: number of triggered irq
@dev: pointer to plx_device instance

returns 0 on success, < 0 on failure.
function invoked as deffered handhake handler from generic irq handler thread @irq : number of triggered irq @dev : pointer to plx_device instance returns 0 on success < 0 on failure .
static irqreturn_t plx_deffered_rdp_init(int irq, void *dev)
{
	struct plx_device *xdev = dev;
	int rc;
	if(xdev->hs_done) {
		dev_err(&xdev->pdev->dev,
			"Unexpected handshake IRQ; possible reset on host side\n");
		return -EIO;
	}
	plx_a_lut_clear(xdev, xdev->a_lut_array_base);
	rc = plx_rdp_init(xdev);
	if(rc){
		dev_err(&xdev->pdev->dev, "plx_rdp_init failed rc %d\n", rc);
		return rc;
	}
	if(!xdev->hs_done) {
		dev_err(&xdev->pdev->dev, "Deffered handshake failed\n");
		return 0;
	}
	wake_up_process(plx_deffered_hs_thread);
	return rc;
}
static irqreturn_t plx_deffered_rdp_init ( int irq , void * dev ) { struct plx_device * xdev = dev ; int rc ; if ( xdev -> hs_done ) { dev_err ( & xdev -> pdev -> dev , " \n " ) ; return - EIO ; } plx_a_lut_clear ( xdev , xdev -> a_lut_array_base ) ; rc = plx_rdp_init ( xdev ) ; if ( rc ) { dev_err ( & xdev -> pdev -> dev , " \n " , rc ) ; return rc ; } if ( ! xdev -> hs_done ) { dev_err ( & xdev -> pdev -> dev , " \n " ) ; return 0 ; } wake_up_process ( plx_deffered_hs_thread ) ; return rc ; }
plx_deffered_rdp_init - function invoked as deffered handhake handler from
      generic irq handler thread
 @irq: number of triggered irq
 @dev: pointer to plx_device instance
plx_deffered_rdp_init - function invoked as deffered handhake handler from generic irq handler thread @irq : number of triggered irq @dev : pointer to plx_device instance