diff options
| author | Naveen Kaje <nkaje@codeaurora.org> | 2015-12-28 11:05:13 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:16:21 -0700 |
| commit | ef6ab14b277617ac520628ff53946b29ec1f63bd (patch) | |
| tree | 3e6fd83fc92ddcdca9669c3a5dea73fe58098e59 | |
| parent | 512ab9815cccf36ef09dca3f9726ffb6eeba4008 (diff) | |
msm_serial_hs: update IRQ related error messages
Log the error code when IRQ related APIs encounter errors.
Change-Id: I9992da38010a587a251f258d16400e65e9da0d94
Signed-off-by: Naveen Kaje <nkaje@codeaurora.org>
| -rw-r--r-- | drivers/tty/serial/msm_serial_hs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/tty/serial/msm_serial_hs.c b/drivers/tty/serial/msm_serial_hs.c index d885592e8137..856deefe0a8e 100644 --- a/drivers/tty/serial/msm_serial_hs.c +++ b/drivers/tty/serial/msm_serial_hs.c @@ -2630,7 +2630,7 @@ static int msm_hs_startup(struct uart_port *uport) ret = request_irq(uport->irq, msm_hs_isr, IRQF_TRIGGER_HIGH, "msm_hs_uart", msm_uport); if (unlikely(ret)) { - MSM_HS_ERR("%s():Error getting uart irq\n", __func__); + MSM_HS_ERR("%s():Error %d getting uart irq\n", __func__, ret); goto sps_disconnect_rx; } @@ -3278,12 +3278,14 @@ static int msm_hs_probe(struct platform_device *pdev) } core_irqres = platform_get_irq_byname(pdev, "core_irq"); if (core_irqres < 0) { - dev_err(&pdev->dev, "Invalid core irqres Resources.\n"); + dev_err(&pdev->dev, "Error %d, invalid core irq resources.\n", + core_irqres); return -ENXIO; } bam_irqres = platform_get_irq_byname(pdev, "bam_irq"); if (bam_irqres < 0) { - dev_err(&pdev->dev, "Invalid bam irqres Resources.\n"); + dev_err(&pdev->dev, "Error %d, invalid bam irq resources.\n", + bam_irqres); return -ENXIO; } wakeup_irqres = platform_get_irq_byname(pdev, "wakeup_irq"); |
