Re: usb_gadget_state_work not triggering sysfs_notify

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ping!

On Mon, Jul 07, 2014 at 12:53:45PM +0200, Michael Grzeschik wrote:
> 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?

-- 
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux