Commit 955e5f05 authored by Federico Vaga's avatar Federico Vaga

Temporary commit

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 04ec4bf1
...@@ -84,7 +84,9 @@ static int spec_reprogram(struct fmc_device *fmc, struct fmc_driver *drv, ...@@ -84,7 +84,9 @@ static int spec_reprogram(struct fmc_device *fmc, struct fmc_driver *drv,
out: out:
release_firmware(fw); release_firmware(fw);
pr_info("%s:%d\n", __func__, __LINE__);
spec_ual_sdb_info(spec); spec_ual_sdb_info(spec);
pr_info("%s:%d\n", __func__, __LINE__);
return ret; return ret;
} }
......
...@@ -20,14 +20,18 @@ void spec_ual_sdb_info(struct spec_dev *spec) ...@@ -20,14 +20,18 @@ void spec_ual_sdb_info(struct spec_dev *spec)
{ {
int err; int err;
pr_info("%s:%d\n", __func__, __LINE__);
fmc_free_sdb_tree(spec->fmc); fmc_free_sdb_tree(spec->fmc);
pr_info("%s:%d\n", __func__, __LINE__);
err = fmc_scan_sdb_tree(spec->fmc, 0); err = fmc_scan_sdb_tree(spec->fmc, 0);
pr_info("%s:%d\n", __func__, __LINE__);
if (err) { if (err) {
dev_err(&spec->pdev->dev, "Cannot scan SDB: err %d\n", err); dev_err(&spec->pdev->dev, "Cannot scan SDB: err %d\n", err);
return; return;
} }
fmc_show_sdb_tree(spec->fmc); fmc_show_sdb_tree(spec->fmc);
pr_info("%s:%d\n", __func__, __LINE__);
if (!spec->ual) if (!spec->ual)
return; return;
...@@ -42,6 +46,8 @@ void spec_ual_sdb_info(struct spec_dev *spec) ...@@ -42,6 +46,8 @@ void spec_ual_sdb_info(struct spec_dev *spec)
"GNCORE DMA component is not part of the bitstream\n"); "GNCORE DMA component is not part of the bitstream\n");
spec->priv_dma = NULL; spec->priv_dma = NULL;
} }
spec->ual->tree = spec->fmc->sdb;
pr_info("%s:%d %p\n", __func__, __LINE__, spec, spec->priv_dma);
} }
static int spec_ual_create(struct ual *ual) static int spec_ual_create(struct ual *ual)
...@@ -111,7 +117,7 @@ static int spec_fmc_reload(struct spec_dev *spec) ...@@ -111,7 +117,7 @@ static int spec_fmc_reload(struct spec_dev *spec)
err = spec_load_fpga_file(spec, spec_fw_name); err = spec_load_fpga_file(spec, spec_fw_name);
if (err) if (err)
return err; return err;
dev_info(&spec->pdev->dev, "%s\n", __func__);
/* Create a new FMC device */ /* Create a new FMC device */
return spec_fmc_create(spec); return spec_fmc_create(spec);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment