[PATCH] mdev: create devices from /sys/dev

Mike Frysinger vapier at gentoo.org
Mon Apr 11 14:41:37 UTC 2016


On 11 Apr 2016 11:09, Linus Walleij wrote:
> Currently some new devices that have a bus but no class will
> be missed by mdev coldplug device creation after boot. This
> happens because mdev recursively searches /sys/class which will
> by definition only find class devices.
> 
> Some important devices such as iio and gpiochip does not have
> a class. But users will need them.
> 
> This switches from using /sys/class as the place to look for
> devices to create to using /sys/dev where all char and block
> devices are listed. We keep /sys/class as a fallback if /sys/dev
> is nonexisting.
> 
> Tested on kernel v4.6-rc2 with a bunch of devices, including
> some IIO and gpiochip devices.

if you're using 4.6, why aren't you using devtmpfs ?  there's no
real good reason anymore to keep using mdev+coldplug.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20160411/553d328b/attachment.asc>


More information about the busybox mailing list