From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Date: Tue, 01 Dec 2009 01:37:04 +0000 Subject: Re: udev keymaps: support for force_release quirk Message-Id: <20091201013704.GD3906@core.coreip.homeip.net> List-Id: References: <20091126173912.GA25185@sig21.net> In-Reply-To: <20091126173912.GA25185@sig21.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 Tue, Dec 01, 2009 at 02:28:06AM +0100, Kay Sievers wrote: > On Tue, Dec 1, 2009 at 00:27, Johannes Stezenbach wrote: > > + =A0 =A0 =A0 strncat(fn, "/device/device/force_release", sizeof(fn)); >=20 > You can only select a parent device by it's subsystem/devtype. Any > hardcoded assumption about the order of parents is wrong, and the > "device" link is deprecated, it must not appear anywhere in udev code. >=20 Maybe the quirk should fire up for /sys/device/platform/i8043/serioX devices to begin with and not go backwards from the child event device? --=20 Dmitry