* [PATCH] media: rcar_drif: Do not print error in case of EPROBE_DEFER for dma channel
@ 2020-02-26 10:14 Peter Ujfalusi
0 siblings, 0 replies; only message in thread
From: Peter Ujfalusi @ 2020-02-26 10:14 UTC (permalink / raw)
To: mchehab, hverkuil-cisco, rashanmu
Cc: linux-media, linux-kernel, linux-renesas-soc
If the dma channel request error code is EPROBE_DEFER there is no need to
print error message.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
Hi Hans,
the patch updates the v1 "media: rcar_drif: Use dma_request_chan() instead
dma_request_slave_channel()" which got applied to the v3 state.
I have not added the fixes line, but if you think the hash is not going to
change, you can copy this line:
Fixes: 1b5482e0d268 ("media: rcar_drif: Use dma_request_chan() instead dma_request_slave_channel()")
Regards,
Peter
drivers/media/platform/rcar_drif.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/media/platform/rcar_drif.c b/drivers/media/platform/rcar_drif.c
index 02ee0e2a09e9..3d2451ac347d 100644
--- a/drivers/media/platform/rcar_drif.c
+++ b/drivers/media/platform/rcar_drif.c
@@ -277,8 +277,12 @@ static int rcar_drif_alloc_dmachannels(struct rcar_drif_sdr *sdr)
ch->dmach = dma_request_chan(&ch->pdev->dev, "rx");
if (IS_ERR(ch->dmach)) {
- rdrif_err(sdr, "ch%u: dma channel req failed\n", i);
ret = PTR_ERR(ch->dmach);
+ if (ret != -EPROBE_DEFER)
+ rdrif_err(sdr,
+ "ch%u: dma channel req failed: %pe\n",
+ i, ch->dmach);
+ ch->dmach = NULL;
goto dmach_error;
}
--
Peter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-26 10:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-26 10:14 [PATCH] media: rcar_drif: Do not print error in case of EPROBE_DEFER for dma channel Peter Ujfalusi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).