[lkml]   [2008]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: usb unbind/bind => WARNING at fs/sysfs/dir.c [Was: 2.6.25-rc8-mm1]
On 04/05/2008 05:46 AM, Alan Stern wrote:
> Removing an interface's sysfs files before unregistering the interface
> doesn't work properly, because usb_unbind_interface() will reinstall
> altsetting 0 and thereby create new sysfs files. This patch (as1074)
> removes the files after the unregistration is finished. It's not
> quite as clean, but at least it works.
> Also, there's no need to check if an interface has been registered
> before removing its sysfs files. If it hasn't been registered then
> the files won't have been created, so usb_remove_sysfs_intf_files()
> will simply do nothing.
> Signed-off-by: Alan Stern <>

Tested-by: Jiri Slaby <>

Works well, thanks.

 \ /
  Last update: 2008-04-05 10:21    [W:0.055 / U:2.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site