Re: usb_gadget_state_work not triggering sysfs_notify

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

 



Hi,

On Mon, Jul 07, 2014 at 12:53:45PM +0200, Michael Grzeschik wrote:
> Hi,
> 
> I am currently working with an udc where the userspace should react on plugging

which udc is that ? which kernel version are you using ?

> 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

huh ? Can you clarify what you mean here ?

> sysfs_notify. I see that kernfs_find_and_get is returning NULL and therefor
> never call kernfs_notify.

this would mean 'state' attribute was not found. Are you sure you can
find it on sysfs manually ?

> Does anybody know what could be the matter here?

-- 
balbi

Attachment: signature.asc
Description: Digital signature


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

  Powered by Linux