}
 }
 
+static int ibmvfc_toggle_scrq_irq(struct ibmvfc_queue *scrq, int enable)
+{
+       struct device *dev = scrq->vhost->dev;
+       struct vio_dev *vdev = to_vio_dev(dev);
+       unsigned long rc;
+       int irq_action = H_ENABLE_VIO_INTERRUPT;
+
+       if (!enable)
+               irq_action = H_DISABLE_VIO_INTERRUPT;
+
+       rc = plpar_hcall_norets(H_VIOCTL, vdev->unit_address, irq_action,
+                               scrq->hw_irq, 0, 0);
+
+       if (rc)
+               dev_err(dev, "Couldn't %s sub-crq[%lu] irq. rc=%ld\n",
+                       enable ? "enable" : "disable", scrq->hwq_id, rc);
+
+       return rc;
+}
+
 /**
  * ibmvfc_init_tgt - Set the next init job step for the target
  * @tgt:               ibmvfc target struct