Thread (44 messages) 44 messages, 9 authors, 2020-01-03

Re: Sense of soc bus? (was: [PATCH] base: soc: Export soc_device_to_device() helper)

From: Andreas Färber <afaerber@suse.de>
Date: 2019-11-15 12:01:05
Also in: linux-amlogic, linux-omap, linux-tegra, lkml

Hi Geert,

Am 15.11.19 um 09:58 schrieb Geert Uytterhoeven:
On Fri, Nov 15, 2019 at 9:52 AM Neil Armstrong [off-list ref] wrote:
quoted
On 12/11/2019 11:47, Andreas Färber wrote:
quoted
For example, RTD1295 will support LSADC only from revision B00
on (and it's not the first time I'm seeing such things in the industry).
So if a user complains, it will be helpful to see that information.

Referencing your Amlogic review, with all due respect for its authors,
the common framework here just lets that information evaporate into the
deeps of sysfs.
Hopefully we never had the case where needed to use the soc info in drivers,
but now we have one and having such infrastructure already in-place will help.

Renesas platforms makes a extensive usage of the soc info infrastructure to
figure out plenty of HW parameters at runtime and lower their DT changes.
We do our best to use it solely for detecting quirks in early SoC revisions.
Got a pointer? I fail to immediately understand how sysfs would help
drivers (as opposed to userspace) detect quirks: Parsing strings back
doesn't sound efficient, and I don't see you exporting any custom APIs
in drivers/soc/renesas/renesas-soc.c?

Regards,
Andreas

-- 
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer
HRB 36809 (AG Nürnberg)

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help