[lkml]   [2018]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 07/19] serdev: Allows dynamic creation of devices via sysfs
On Tue, May 29, 2018 at 8:10 AM, Ricardo Ribalda Delgado
<> wrote:
> Allow creating and deleting devices via sysfs. Devices created will be
> matched to serdev drivers via modalias (the string provided by the user)
> and deleted via their name. Eg:
> # Create device
> root@qt5022:~# echo ttydev > /sys/bus/serial/devices/serial0/new_device
> # Delete device
> root@qt5022:~#
> echo serial0-0 > /sys/bus/serial/devices/serial0/delete_device

I think the model here should be the kernel provides dummy slave
device for each serial port and then you can use bind and unbind to
bind to a particular driver.


 \ /
  Last update: 2018-05-29 17:39    [W:0.149 / U:2.384 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site