media: atomisp: improve warning for IRQ enable function
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 May 2020 12:18:00 +0000 (14:18 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Jun 2020 16:13:30 +0000 (18:13 +0200)
If something gets wrong when enabling or disabling an IRQ,
we should know better about what happened.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c

index c2d6eae7e214f3857bb8ce8402c9614e170f676a..6594f62a597e8734cda19b3050b149c4874478e0 100644 (file)
@@ -1042,7 +1042,9 @@ int atomisp_css_irq_enable(struct atomisp_device *isp,
                __func__, info,
                enable ? "enable" : "disable");
        if (ia_css_irq_enable(info, enable) != IA_CSS_SUCCESS) {
-               dev_warn(isp->dev, "%s:Invalid irq info.\n", __func__);
+               dev_warn(isp->dev, "%s:Invalid irq info: 0x%08x when %s.\n",
+                        __func__, info,
+                        enable ? "enabling" : "disabling");
                return -EINVAL;
        }