[Gta04-owner] 3.15-rc1
Neil Jerram
neil at ossau.homelinux.net
Mon Apr 14 16:29:55 CEST 2014
On 2014-04-14 14:19, Dr. H. Nikolaus Schaller wrote:
> But we still have quite some issues [2] to solve...
http://projects.goldelico.com/p/gta04-kernel/issues/594/ wrote:
> The current udev rule
>
> http://git.goldelico.com/?p=gta04-kernel.git;a=blob;f=GTA04/udev-rule
> s/charging.rules;h=385a354eb742cfccc6161fe2d2e9993c82b6c905;hb=refs/h
> eads/3.15-rc0
>
> hard codes the usb ID pin /sysfs node
> ATTR{../../../twl4030-usb.36/id} because there is no other path
> (symlink) in sysfs that is more generic.
>
> Unfortunately the .36 suffix depends on details in the device tree
> and creation order of nodes within sysfs. So we can't rely on the
> .36 being stable (it might even depend on probing result of
> peripheral devices).
>
> We need a solution that is more general and does not depend on
> kernel changes!
>
> Unfortunately no process (and therefore not udev) can create
> symlinks within /sysfs - and udev can't access files outside.
>
> We can easily create a shortcut for the twl4030-usb.36/id file
> outside of sysfs (e.g. in /dev) but then we can't access it in an
> ATTR{path}=="value" rule.
How about just ATTR{id} instead of ATTR{../../../twl4030-usb.36/id} ?
If the problem is that that doesn't work because there are "id"
attributes for the same device, I guess the solution is to change the
"id" name to something more unique such as "id_gnd_resistance".
Neil
More information about the Gta04-owner
mailing list