socfpga-4.9.78-ltsi/drivers/fpga/fpga-mgr.c
/*
 * After all the FPGA image has been written, do the device specific steps to
 * finish and set the FPGA into operating mode.
 */
After all the FPGA image has been written, do the device specific steps to
finish and set the FPGA into operating mode.
After all the FPGA image has been written do the device specific steps to finish and set the FPGA into operating mode .
static int fpga_mgr_write_complete(struct fpga_manager *mgr,
				   struct fpga_image_info *info)
{
	int ret;
	mgr->state = FPGA_MGR_STATE_WRITE_COMPLETE;
	ret = mgr->mops->write_complete(mgr, info);
	if (ret) {
		dev_err(&mgr->dev, "Error after writing image data to FPGA\n");
		mgr->state = FPGA_MGR_STATE_WRITE_COMPLETE_ERR;
		return ret;
	}
	mgr->state = FPGA_MGR_STATE_OPERATING;
	return 0;
}
static int fpga_mgr_write_complete ( struct fpga_manager * mgr , struct fpga_image_info * info ) { int ret ; mgr -> state = FPGA_MGR_STATE_WRITE_COMPLETE ; ret = mgr -> mops -> write_complete ( mgr , info ) ; if ( ret ) { dev_err ( & mgr -> dev , " \n " ) ; mgr -> state = FPGA_MGR_STATE_WRITE_COMPLETE_ERR ; return ret ; } mgr -> state = FPGA_MGR_STATE_OPERATING ; return 0 ; }
After all the FPGA image has been written, do the device specific steps to
 finish and set the FPGA into operating mode.
After all the FPGA image has been written do the device specific steps to finish and set the FPGA into operating mode .