From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vignesh Raghavendra Date: Thu, 17 Sep 2020 16:53:07 +0530 Subject: [PATCH 1/2] dma: Reduce error level when DMA channel type does not exist In-Reply-To: <20200917112308.7736-1-vigneshr@ti.com> References: <20200917112308.7736-1-vigneshr@ti.com> Message-ID: <20200917112308.7736-2-vigneshr@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Caller would need gracefully handle failures of dma_get_device(), therefore reduce pr_err() to pr_debug() when DMA device is not found. Signed-off-by: Vignesh Raghavendra --- drivers/dma/dma-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/dma-uclass.c b/drivers/dma/dma-uclass.c index 8cbb364042..50403148d6 100644 --- a/drivers/dma/dma-uclass.c +++ b/drivers/dma/dma-uclass.c @@ -219,8 +219,8 @@ int dma_get_device(u32 transfer_type, struct udevice **devp) } if (!dev) { - pr_err("No DMA device found that supports %x type\n", - transfer_type); + pr_debug("No DMA device found that supports %x type\n", + transfer_type); return -EPROTONOSUPPORT; } -- 2.28.0