Skip to contentSkip to conversation

dma: imx-sdma: remove firmare not found warning

PATCH New Sascha Hauer 3 participants 4 messages Jan 16, 2014 – Jan 20, 2014

Subsystems (2)
lore
Share & tools
lore

Sascha Hauer

author maintainer
#0 lore raw

PATCH 1/1 dma: imx-sdma: remove firmare not found warning

When a firmware cannot be found for the SDMA engine then we can continue with the inernal ROM firmware.

The meaning of this message is frequently asked for and the usual answer is that this message is of no relevance, so just make it dev_dbg() and do not alienate the users anymore.

---
 drivers/dma/imx-sdma.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/dma/imx-sdma.c +4 -1
index c75679d..fe57a42 100644
@@ -1259,7 +1259,10 @@ static void sdma_load_firmware(const struct firmware *fw, void *context)
 	unsigned short *ram_code;
 
 	if (!fw) {
-		dev_err(sdma->dev, "firmware not found\n");
+		dev_dbg(sdma->dev, "firmware not found\n");
+		/*
+		 * In this case we just use the ROM firmware.
+		 */
 		return;
 	}
 
Signature · 1 line
1.8.5.2
#1 lore raw

PATCH 1/1 dma: imx-sdma: remove firmare not found warning

Quoted 9 lines · Sascha Hauer

When a firmware cannot be found for the SDMA engine then we can continue with the inernal ROM firmware.

The meaning of this message is frequently asked for and the usual answer is that this message is of no relevance, so just make it dev_dbg() and do not alienate the users anymore.

Quoted 23 lines
---
 drivers/dma/imx-sdma.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/dma/imx-sdma.c +4 -1
index c75679d..fe57a42 100644
@@ -1259,7 +1259,10 @@ static void sdma_load_firmware(const struct firmware *fw, void *context)
 	unsigned short *ram_code;
 
 	if (!fw) {
-		dev_err(sdma->dev, "firmware not found\n");
+		dev_dbg(sdma->dev, "firmware not found\n");
+		/*
+		 * In this case we just use the ROM firmware.
+		 */
 		return;
 	}
 
Signature · 1 line
1.8.5.2
#2 lore raw

PATCH 1/1 dma: imx-sdma: remove firmare not found warning

In reply to Sascha Hauer
Quoted 2 lines · Sascha Hauer

When a firmware cannot be found for the SDMA engine then we can continue with the inernal ROM firmware.

typo ^^^^^^^

Quoted 15 lines

The meaning of this message is frequently asked for and the usual answer is that this message is of no relevance, so just make it dev_dbg() and do not alienate the users anymore.

---
 drivers/dma/imx-sdma.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/dma/imx-sdma.c +0 -0
index c75679d..fe57a42 100644

drivers/dma/imx-sdma.c static void sdma_load_firmware(const struct firmware *fw, void *context) · line 1262

Quoted 5 lines
drivers/dma/imx-sdma.c +1 -1
@@ -1259,7 +1259,10 @@ static void sdma_load_firmware(const struct firmware *fw, void *context)
 	unsigned short *ram_code;
 
 	if (!fw) {
-		dev_err(sdma->dev, "firmware not found\n");
+		dev_dbg(sdma->dev, "firmware not found\n");

Shouldn't this be dev_info and would amke sense, external firmware not found using internal one??

--
~Vinod

Quoted 9 lines
drivers/dma/imx-sdma.c +3 -0
+		/*
+		 * In this case we just use the ROM firmware.
+		 */
 		return;
 	}
 
Signature · 1 line
1.8.5.2
author maintainer
#3 lore raw

PATCH 1/1 dma: imx-sdma: remove firmare not found warning

Quoted 22 lines · Vinod Koul
Quoted 2 lines · Sascha Hauer

When a firmware cannot be found for the SDMA engine then we can continue with the inernal ROM firmware.

typo ^^^^^^^

Quoted 17 lines

The meaning of this message is frequently asked for and the usual answer is that this message is of no relevance, so just make it dev_dbg() and do not alienate the users anymore.

---
 drivers/dma/imx-sdma.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/dma/imx-sdma.c +0 -0
index c75679d..fe57a42 100644
@@ -1259,7 +1259,10 @@ static void sdma_load_firmware(const struct firmware *fw, void *context)
 	unsigned short *ram_code;
 
Quoted 5 lines

drivers/dma/imx-sdma.c static void sdma_load_firmware(const struct firmware *fw, void *context) · line 1262

Quoted 3 lines
drivers/dma/imx-sdma.c +1 -1
 	if (!fw) {
-		dev_err(sdma->dev, "firmware not found\n");
+		dev_dbg(sdma->dev, "firmware not found\n");

Shouldn't this be dev_info and would amke sense, external firmware not found using internal one??

Yeah, sounds better. See v2.

Sascha

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |