Commit d63b8c7b authored by Federico Vaga's avatar Federico Vaga

[debug] add more debug information

parent b62117ba
......@@ -287,10 +287,10 @@ int zfad_fsm_command(struct fa_dev *fa, uint32_t command)
/* Now we can arm the trigger for the incoming acquisition */
zio_arm_trigger(fa->zdev->cset->ti);
dev_dbg(fa->fmc->hwdev, "Enable interrupts\n");
dev_dbg(fa->fmc->hwdev, "FSM START Command, Enable interrupts\n");
zfa_common_conf_set(fa, ZFA_IRQ_MASK, ZFAT_ALL);
} else {
dev_dbg(fa->fmc->hwdev, "Disable interrupts\n");
dev_dbg(fa->fmc->hwdev, "FSM STOP Command, Disable interrupts\n");
zfa_common_conf_set(fa, ZFA_IRQ_MASK, ZFAT_NONE);
}
......@@ -357,6 +357,8 @@ static int zfad_calibration(struct fa_dev *fa, struct zio_channel *chan,
if (range < 0)
return range;
dev_dbg(&chan->head.dev, "Set offset and gain for range 0x%x (%d)\n",
usr_val, range);
/* Apply the ADC calibration value for the offset */
i = zfad_get_chx_index(ZFA_CHx_OFFSET, chan);
cal_val = fa->adc_cal_data[range].offset[chan->index];
......
......@@ -228,7 +228,9 @@ static int zfat_data_done(struct zio_cset *cset)
i + 1, fa->n_shots);
bi->b_op->store_block(bi, zfad_block[i].block);
} else { /* Free un-filled blocks */
dev_dbg(fa->fmc->hwdev, "Free un-acquired block\n");
dev_dbg(fa->fmc->hwdev, "Free un-acquired block %d/%d "
"(received %d shots)\n",
i + 1, fa->n_shots, fa->n_fires);
bi->b_op->free_block(bi, zfad_block[i].block);
}
/* Clear active block */
......@@ -335,6 +337,7 @@ static void zfat_abort(struct zio_ti *ti)
struct zfad_block *zfad_block = cset->interleave->priv_d;
unsigned int i;
dev_dbg(&ti->head.dev, "Aborting trigger");
/* Free all blocks */
for(i = 0; i < fa->n_shots; ++i)
bi->b_op->free_block(bi, zfad_block[i].block);
......
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