* ftdi_sio usb-serial driver and hotplug
@ 2009-02-24 7:38 Anton Fedorov
2009-02-24 16:16 ` Kay Sievers
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Anton Fedorov @ 2009-02-24 7:38 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 758 bytes --]
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?
--
Best regards,
Anton
Call2Ru Service
datacompboy@call2ru.com
[-- Attachment #2: Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ftdi_sio usb-serial driver and hotplug
2009-02-24 7:38 ftdi_sio usb-serial driver and hotplug Anton Fedorov
@ 2009-02-24 16:16 ` Kay Sievers
2009-02-27 15:49 ` Anton Fedorov
2009-02-27 15:52 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2009-02-24 16:16 UTC (permalink / raw)
To: linux-hotplug
On Tue, Feb 24, 2009 at 08:38, Anton Fedorov <datacompboy@call2ru.com> wrote:
> 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 :(
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ftdi_sio usb-serial driver and hotplug
2009-02-24 7:38 ftdi_sio usb-serial driver and hotplug Anton Fedorov
2009-02-24 16:16 ` Kay Sievers
@ 2009-02-27 15:49 ` Anton Fedorov
2009-02-27 15:52 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Anton Fedorov @ 2009-02-27 15:49 UTC (permalink / raw)
To: linux-hotplug
В письме от Срд, 25 Фев 2009, 19:25 Kay Sievers пишет:
> On Wed, Feb 25, 2009 at 14:12, Anton Fedorov <datacompboy@call2ru.com> wrote:
>>
>> В письме от Втр, 24 Фев 2009, 22:16 Kay Sievers пишет:
>>>> 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 :(
>>> 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".
--
Regards,
Anton Fedorov
Call2ru service
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ftdi_sio usb-serial driver and hotplug
2009-02-24 7:38 ftdi_sio usb-serial driver and hotplug Anton Fedorov
2009-02-24 16:16 ` Kay Sievers
2009-02-27 15:49 ` Anton Fedorov
@ 2009-02-27 15:52 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2009-02-27 15:52 UTC (permalink / raw)
To: linux-hotplug
On Fri, Feb 27, 2009 at 16:49, Anton Fedorov <datacompboy@call2ru.com> wrote:
>
> В письме от Срд, 25 Фев 2009, 19:25 Kay Sievers пишет:
>> On Wed, Feb 25, 2009 at 14:12, Anton Fedorov <datacompboy@call2ru.com> wrote:
>>>
>>> В письме от Втр, 24 Фев 2009, 22:16 Kay Sievers пишет:
>>>>> 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 :(
>>>> 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.
> yes, you right -- using "DRIVERS=" fixed problem, now latency
> correctly set up.
> Many thanks!
You're welcome.
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-27 15:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-24 7:38 ftdi_sio usb-serial driver and hotplug Anton Fedorov
2009-02-24 16:16 ` Kay Sievers
2009-02-27 15:49 ` Anton Fedorov
2009-02-27 15:52 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).