Hi,
I am currently working with an udc where the userspace should react on plugging
and unplugging of the device. The layers used trigger the usb_gadget_state_work
as expected, but the sysfs_notify never cross the userspace layer.
static void usb_gadget_state_work(struct work_struct *work)
{
struct usb_gadget *gadget = work_to_gadget(work);
sysfs_notify(&gadget->dev.kobj, NULL, "state");
}
When I create my own device attribute and call this function on it, everything
works fine and my test application reacts on the event.
I thing we mess with an regression where the attribute is not found in
sysfs_notify. I see that kernfs_find_and_get is returning NULL and therefor
never call kernfs_notify.
Does anybody know what could be the matter here?
Regards,
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html