Date: Fri, 20 May 2011 12:56:14 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: thompsa@freebsd.org Cc: gnome@freebsd.org, kwm@freebsd.org, ports@freebsd.org Subject: HAL port needs minor update after recent USB patch in 9-current Message-ID: <201105201256.14190.hselasky@c2i.net>
next in thread | raw e-mail | index | archive | help
--Boundary-00=_Ojk1N3S7vJh9V8I Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, USB is using a new scheme for DEVD events and I noticed that HALD needs to be update a bit. See attached patch. Currently HALD is not working properly with USB devices in 9-current. Who can handle this? --HPS --Boundary-00=_Ojk1N3S7vJh9V8I Content-Type: text/plain; charset="us-ascii"; name="hald_patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="hald_patch.txt" --- files/patch-hald_freebsd_hf-usb2.c.orig 2011-05-19 14:28:36.000000000 +0200 +++ files/patch-hald_freebsd_hf-usb2.c 2011-05-19 14:30:35.000000000 +0200 @@ -129,17 +129,17 @@ + const char *type, + const char *data) +{ -+ if (! data || strcmp(system, "DEVFS") || strcmp(subsystem, "CDEV") || -+ (strcmp(type, "CREATE") && strcmp(type, "DESTROY"))) ++ if (! data || strcmp(system, "USB") || strcmp(subsystem, "DEVICE") || ++ (strcmp(type, "ATTACH") && strcmp(type, "DETACH"))) + return FALSE; + -+ if (strstr(data, "cdev=ugen") != NULL || -+ strstr(data, "cdev=usb") != NULL) -+ return TRUE; -+ -+ return FALSE; ++ return TRUE; +} + ++ ++ ++ ++ HFHandler hf_usb2_handler = { .privileged_init = hf_usb2_privileged_init, .probe = hf_usb2_probe --Boundary-00=_Ojk1N3S7vJh9V8I--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105201256.14190.hselasky>