coresight: etb: Remove simple announcement message
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
@@ -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
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.
Signed-off-by Mark Brown <[email protected]>--- drivers/hwtracing/coresight/coresight-etb10.c | 1 - 1 file changed, 1 deletion(-)drivers/hwtracing/coresight/coresight-etb10.c +0
-0
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.
Quoted 6 lines
drivers/hwtracing/coresight/coresight-etb10.c +0
-1return 0 ; err_misc_register: --2.1.4
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>
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.