Commit 4ad2a5af authored by Federico Vaga's avatar Federico Vaga

core: add zdev to spec_fa

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 1b457ecf
......@@ -291,9 +291,13 @@ static int zfad_input_cset(struct zio_cset *cset)
static int zfad_zio_probe(struct zio_device *zdev)
{
const struct zio_reg_desc *reg;
struct spec_fa *fa = zdev->priv_d;
int i;
dev_dbg(&zdev->head.dev, "%s:%d", __func__, __LINE__);
/* Save also the pointer to the real zio_device */
fa->zdev = zdev;
/* Force stop FSM */
zfa_common_conf_set(&zdev->head.dev, &zfad_regs[ZFA_CTL_FMS_CMD],
ZFA_STOP);
......
......@@ -141,8 +141,9 @@ static const struct zio_sysfs_operations zfat_s_op = {
irqreturn_t zfadc_irq(int irq, void *ptr)
{
struct zfat_instance *zfat = ptr;
struct spec_fa *fa = zfat->fa;
struct fmc_device *fmc = ptr;
struct spec_fa *fa = fmc_get_drvdata(fmc);
struct zfat_instance *zfat = to_zfat_instance(fa->zdev->cset->ti);
uint32_t irq_status = 0, val;
zfa_common_info_get(&zfat->ti.cset->head.dev,
......
......@@ -25,6 +25,7 @@
struct spec_fa {
struct fmc_device *fmc;
struct spec_dev *spec;
struct zio_device *zdev;
struct zio_device *hwzdev;
struct sg_table sgt; /* scatter/gather table */
......
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