Re: [RFC PATCH v1] usb: core: add sysfs entry for usb device state

From: Greg Kroah-Hartman
Date: Fri May 26 2023 - 03:42:18 EST


On Thu, May 25, 2023 at 05:38:18PM +0000, Roy Luo wrote:
> + * @work: workqueue for sysfs_notify()

Do you really need this? This should be possible to call in any context
as kernfs_notify() says that it is safe to do that, right?

Also, what userspace code is now calling poll() on your new sysfs file?

thanks,

greg k-h