From: Kay Sievers Date: Fri, 27 Feb 2009 15:52:55 +0000 Subject: Re: ftdi_sio usb-serial driver and hotplug Message-Id: List-Id: References: <559911452.20090224133820@call2ru.com> In-Reply-To: <559911452.20090224133820@call2ru.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: linux-hotplug@vger.kernel.org On Fri, Feb 27, 2009 at 16:49, Anton Fedorov wrote: > > В письме от Срд, 25 Фев 2009, 19:25 Kay Sievers пишет: >> On Wed, Feb 25, 2009 at 14:12, Anton Fedorov 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