Skip to contentSkip to conversation

coresight: etb: Remove simple announcement message

PATCH New Mark Brown 2 participants 4 messages May 20, 2015 – May 25, 2015

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 coresight: etb: Remove simple announcement message

It's generally preferred that drivers not print initialisation messages on startup that don't contain information gained at runtime such as specific hardware revision information. This provides a small speedup on systems with serial consoles and keeps the boot less noisy.

---
 drivers/hwtracing/coresight/coresight-etb10.c | 1 -
 1 file changed, 1 deletion(-)
drivers/hwtracing/coresight/coresight-etb10.c +0 -1
index 77d0f9c1118d..e34e34b8edfb 100644
@@ -481,7 +481,6 @@ static int etb_probe(struct amba_device *adev, const struct amba_id *id)
 	if (ret)
 		goto err_misc_register;
 
-	dev_info(dev, "ETB initialized\n");
 	return 0;
 
 err_misc_register:
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 coresight: etb: Remove simple announcement message

Quoted 15 lines · Mark Brown

It's generally preferred that drivers not print initialisation messages on startup that don't contain information gained at runtime such as specific hardware revision information. This provides a small speedup on systems with serial consoles and keeps the boot less noisy.

---
 drivers/hwtracing/coresight/coresight-etb10.c | 1 -
 1 file changed, 1 deletion(-)
drivers/hwtracing/coresight/coresight-etb10.c +0 -0
index 77d0f9c1118d..e34e34b8edfb 100644

drivers/hwtracing/coresight/coresight-etb10.c static int etb_probe(struct amba_device *adev, const struct amba_id *id) · line 484

Quoted 4 lines
drivers/hwtracing/coresight/coresight-etb10.c +0 -1
@@ -481,7 +481,6 @@ static int etb_probe(struct amba_device *adev, const struct amba_id *id)
        if (ret)
                goto err_misc_register;
 
-       dev_info(dev, "ETB initialized\n");

Linus Walleij started doing something interesting with the initial printouts [1] and I think this is a better option than not printing anything at all.

[1]. https://git.linaro.org/kernel/coresight.git/commitdiff/509133a2715367c2ec9f8026ff55a028d04cdae0?hp=0b81f7e469b846b1b56d19d4f8f1f476943856f6

Quoted 6 lines
drivers/hwtracing/coresight/coresight-etb10.c +0 -1
        return 0;
 
 err_misc_register:
--

2.1.4

author
#2 lore raw

PATCH 1/1 coresight: etb: Remove simple announcement message

Quoted 3 lines · Mathieu Poirier

Linus Walleij started doing something interesting with the initial printouts [1] and I think this is a better option than not printing anything at all.

It's definitely better to print information we enumerate from hardware,
though I'm not 100% sure if AMBA does the right thing with matching here
(most of the buses ignore hardware IDs in favour of DT information if
things are bound via DT).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150522/08d720aa/attachment.sig>

#3 lore raw

PATCH 1/1 coresight: etb: Remove simple announcement message

Quoted 10 lines · Mark Brown
Quoted 3 lines · Mathieu Poirier

Linus Walleij started doing something interesting with the initial printouts [1] and I think this is a better option than not printing anything at all.

It's definitely better to print information we enumerate from hardware, though I'm not 100% sure if AMBA does the right thing with matching here (most of the buses ignore hardware IDs in favour of DT information if things are bound via DT).

AMBA has been done properly - bypassing the initial ID lookup with the "arm,primecell-periphid" binding only prevent the HW from being accessed when the DT is parsed. At driver init time the peripheral ID from the DT is checked against the list of AMBA IDs supported by the driver and fails if a match is not found.

One can always force things with the "driver-override" sysfs property but that's another story.