From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mario Limonciello Date: Mon, 15 Jun 2009 16:31:12 +0000 Subject: [PATCH] Don't match Dell devices on KERNEL, instead use ATTR{bInterfaceProtocol} Message-Id: <4A367750.5040207@dell.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------enigEC9EC0AB9F6CFC2921818188" List-Id: To: linux-hotplug@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigEC9EC0AB9F6CFC2921818188 Content-Type: multipart/mixed; boundary="------------070909080504020102020003" This is a multi-part message in MIME format. --------------070909080504020102020003 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi: For some reason I was getting mixed results where I couldn't get the rule to run properly with a git pull today and udev 142. ${attr} wasn't expanding like it should have been. I've modified the rule a bit and this one is now working correctly. Regards --=20 Mario Limonciello *Dell | Linux Engineering* mario_limonciello@dell.com --------------070909080504020102020003 Content-Type: text/x-patch; name="hid2hci.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="hid2hci.diff" =3D=3D=3D modified file 'hid2hci/62-hid2hci.rules' --- hid2hci/62-hid2hci.rules 2009-06-13 01:09:03 +0000 +++ hid2hci/62-hid2hci.rules 2009-06-15 16:25:29 +0000 @@ -1,16 +1,16 @@ # do not edit this file, it will be overwritten on update =20 ACTION!=3D"add", GOTO=3D"hid2hci_end" +SUBSYSTEM!=3D"usb", GOTO=3D"hid2hci_end" =20 # Variety of Dell Bluetooth devices - it looks like a bit of an odd rule= , # because it is matching on a mouse device that is self powered, but tha= t # is where a HID report needs to be sent to switch modes. # # Known supported devices: 413c:8154, 413c:8158, 413c:8162 -KERNEL=3D=3D"mouse*", SUBSYSTEMS=3D=3D"usb", ATTRS{idVendor}=3D=3D"413c"= , ATTRS{bmAttributes}=3D=3D"e0", \ +ATTR{bInterfaceProtocol}=3D=3D"02", ATTRS{idVendor}=3D=3D"413c", ATTRS{b= mAttributes}=3D=3D"e0", \ RUN+=3D"hid2hci --method dell -v $attr{idVendor} -p $attr{idProduct}= --mode hci" =20 -SUBSYSTEM!=3D"usb", GOTO=3D"hid2hci_end" ENV{DEVTYPE}!=3D"usb_device", GOTO=3D"hid2hci_end" =20 # Logitech devices --------------070909080504020102020003-- --------------enigEC9EC0AB9F6CFC2921818188 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAko2d1AACgkQ2CrZjkA73YtTrwCfSDJ85NB+1ezwsNqQFKffqakJ DeoAn2r+Vv2PgK8DknhG4dmzyqcsJ/pF =aP8K -----END PGP SIGNATURE----- --------------enigEC9EC0AB9F6CFC2921818188--