From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 16 Mar 2007 12:48:21 +0000 Subject: Re: udev or kernel broken with rsdl 0.30 patch Message-Id: <1174049301.21549.65.camel@lov.localdomain> List-Id: References: <20070315104654.19025CA4097@mx1.ciphirelabs.net> In-Reply-To: <20070315104654.19025CA4097@mx1.ciphirelabs.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Fri, 2007-03-16 at 13:32 +0100, Andreas Jellinghaus wrote: > Am Freitag, 16. M=C3=A4rz 2007 13:08 schrieb Kay Sievers: > > If you run: > > udevtest /devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.5/2-1.5:1.0 > > it works, right? >=20 > yes, I booted both kernels once more and tested this, and the output is=20 > exactly the same, and it runs openct_usb in both cases. >=20 > > It that works, it seems the sysfs files are not created at the time you > > want to read them, and the attribute creation time needs to be fixed in > > the kernel. >=20 > ok. that seems likely, with rsdl the kernel has different timings and tha= t=20 > seems to trigger the problem. Yeah, if it's the case, it should be fixed in the kernel, to create the attributes before the device is announced to userspace. > what exactly is "wait_for_sysfs"? I'm asking because it shows up in the u= devd > log right before openct is started / should be started. I thought it woul= d=20 > take care of problems like this? or does it only check the basedir, and n= ot > the subdirs / files in the dirs to be present or something like that? It waits for what you ask it to wait for. This may work: SUBSYSTEM=3D"usb", KERNEL=3D"[0-9]*:*", WAIT_FOR_SYSFS=3D"bInterfaceProto= col" Kay ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel