[linux-usb-devel] usb+sysfs: duplicate filename 'bInterfaceNumber'

[linux-usb-devel] usb+sysfs: duplicate filename 'bInterfaceNumber'

Post by Greg K » Wed, 17 Oct 2007 13:50:10


n Mon, Oct 15, 2007 at 02:38:25PM -0400, Alan Stern wrote:

I finally duplicated this on one of my machines here at boot time, with
USB built into the kernel. I'll work tomorrow on tracking this down
further...

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
 
 
 

[linux-usb-devel] usb+sysfs: duplicate filename 'bInterfaceNumber'

Post by Greg K » Sat, 20 Oct 2007 08:00:13

n Wed, Oct 17, 2007 at 10:48:52AM -0400, Alan Stern wrote:

I used to have the 'remove a non-existant file' warning, but that just
triggered _way_ too many responses :)



If this fixes the problem, care to resend it with a signed-off-by:?

Yeah, it's not the nicest solution, but I can't think of any other one
either right now :(

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

 
 
 

[linux-usb-devel] usb+sysfs: duplicate filename 'bInterfaceNumber'

Post by Greg K » Sat, 27 Oct 2007 03:40:08

n Thu, Oct 25, 2007 at 05:06:59PM +0800, Dave Young wrote:

The issue is that you can't just test for the first file. If you look
at the logic in the usb_create_sysfs_intf_file() code, we do create
different files based on the current interface. So this might not
always end up with the proper files in userspace, from what I can tell.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
 
 
 

[linux-usb-devel] usb+sysfs: duplicate filename 'bInterfaceNumber'

Post by Greg K » Sat, 27 Oct 2007 12:00:20

n Fri, Oct 26, 2007 at 10:01:49AM +0800, Dave Young wrote:

I sent that patch to Linus a few hours ago :)


What would need that function? And what ensures that if you check that
the file exists, it doesn't go away right after that?

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
 
 
 

[linux-usb-devel] usb+sysfs: duplicate filename 'bInterfaceNumber'

Post by Greg K » Sat, 27 Oct 2007 13:20:08


Almost all types of devices can now be removed "suddenly" from a system.
Hm, I almost don't know of a type that can _not_ be removed anymore...

But if you have a patch that needs this function, I'd be glad to
reconsider.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/