Thread (33 messages) 33 messages, 7 authors, 2014-09-01

[PATCH 2/5] char: tile-srom: Remove reference to platform_bus

From: Pawel Moll <hidden>
Date: 2014-08-08 16:39:04
Also in: linux-tegra, lkml

On Fri, 2014-08-08 at 17:34 +0100, Pawel Moll wrote:
On Tue, 2014-08-05 at 21:08 +0100, Chris Metcalf wrote:
quoted
quoted
quoted
In addition, we also have user binaries
in the wild that know to look for /sys/devices/platform/srom/ paths,
so I'm pretty reluctant to change this path without good reason.
So what is the srom class for then if not for device discovery? And why
do they look for them in the first place? To get relevant character
device's data, if I understand it right?

Maybe you could just register a simple "proper" platform device for all
the sroms and then hang the class devices from it? I can type some code
doing this if it sound reasonably?
I'm not sure exactly what you mean by device discovery here.  
(sorry, sent too early...)

By "device discovery" I meant the way you find the way in your devices
in /sysfs. You seem to be traversing /sys/devices/... tree, while you've
got almost direct access to them through /sys/class/srom and you can (I
believe, correct me if I'm wrong, Greg) rely on this path being stable.

Pawe?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help