ftdi_sio usb-serial driver and hotplug
Hi guys!
For my device control i need to have latency set up into 1,
otherwise i have poor performance.
I can write 1 into /sys/bus/usb_sertial/devices/ttyUSB0/latency_timer,
but only as root, and need to re-write into it after every reconnect device, that weird.
I have tried to setup udev, by putting into /etc/udev/rules.d/ file z99_ftdi.rules with contents:
DRIVER="ftdi_sio", SUBSYSTEM=="usb-serial", ATTR{latency_timer}="1"
test of rules show that it should correctly write on connection, but after reconnect of device it doesn't have latency_timer changed -- it still have 16 latency set :(
Where and what I have missed in rule?
Signature · 4 lines
Best regards, Anton Call2Ru Service [email protected]
Quoted 7 lines · Anton Fedorov
For my device control i need to have latency set up into 1, otherwise i have poor performance.
I can write 1 into
/sys/bus/usb_sertial/devices/ttyUSB0/latency_timer, but only as root, and need to re-write into it after every reconnect device, that weird.
Quoted 6 lines
I have tried to setup udev, by putting into
/etc/udev/rules.d/file z99_ftdi.rules with contents:
DRIVER="ftdi_sio", SUBSYSTEM="usb-serial", ATTR{latency_timer}="1" test of rules show that it should correctly write on connection, but after reconnect of device it doesn't havelatency_timerchanged -- it still have 16 latency set :(
Try DRIVERS=, it should work here, because the parent device is also created by the same driver. The driver value may not be set at the time the event is processed, because the driver is binding to the device not already bound.
Kay
В письме от Срд, 25 Фев 2009, 19:25 Kay Sievers пишет:
Quoted 9 lines · Anton Fedorov
Quoted 8 lines
В письме от Втр, 24 Фев 2009, 22:16 Kay Sievers пишет:
Quoted 6 lines
Quoted 6 lines
I have tried to setup udev, by putting into
/etc/udev/rules.d/file z99_ftdi.rules with contents:
DRIVER="ftdi_sio", SUBSYSTEM="usb-serial", ATTR{latency_timer}="1" test of rules show that it should correctly write on connection, but after reconnect of device it doesn't havelatency_timerchanged -- it still have 16 latency set :(
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Try DRIVERS=, it should work here, because the parent device is also created by the same driver. The driver value may not be set at the time the event is processed, because the driver is binding to the device not already bound.
Sorry for wrong answer last time -- instead of "reply to list" clicked "reply private" :) yes, you right -- using "DRIVERS=" fixed problem, now latency correctly set up.
Many thanks!
But why that difference? udevinfo --attribute-walk shows DRIVER="" related to device, and http://reactivated.net/writing_udev_rules.html says "you cannot mix-and-match attributes from multiple parent devices - your rule will not work".
Signature · 3 lines
Regards, Anton Fedorov Call2ru service
Quoted 11 lines · Anton Fedorov
В письме от Срд, 25 Фев 2009, 19:25 Kay Sievers пишет:
Quoted 9 lines · Anton Fedorov
Quoted 8 lines
В письме от Втр, 24 Фев 2009, 22:16 Kay Sievers пишет:
Quoted 6 lines
Quoted 6 lines
I have tried to setup udev, by putting into
/etc/udev/rules.d/file z99_ftdi.rules with contents:
DRIVER="ftdi_sio", SUBSYSTEM="usb-serial", ATTR{latency_timer}="1" test of rules show that it should correctly write on connection, but after reconnect of device it doesn't havelatency_timerchanged -- it still have 16 latency set :(
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Try DRIVERS=, it should work here, because the parent device is also created by the same driver. The driver value may not be set at the time the event is processed, because the driver is binding to the device not already bound.
Sorry for wrong answer last time -- instead of "reply to list" clicked "reply private" :)
Cool.
Quoted 3 lines
yes, you right -- using "DRIVERS=" fixed problem, now latency correctly set up.
Many thanks!
You're welcome.
Quoted 4 lines
But why that difference? udevinfo --attribute-walk shows DRIVER="" related to device, and http://reactivated.net/writing_udev_rules.html says "you cannot mix-and-match attributes from multiple parent devices - your rule will not work".
Yes, you are "mixing" only _one_ parent device with the event device. :)
Best,
Kay