Re: usb unbind/bind => WARNING at fs/sysfs/dir.c [Was:2.6.25-rc8-mm1]

From: Greg KH
Date: Fri Apr 04 2008 - 16:52:25 EST


On Fri, Apr 04, 2008 at 10:16:32PM +0200, Jiri Slaby wrote:
> On 04/02/2008 06:32 AM, Andrew Morton wrote:
>> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.25-rc8/2.6.25-rc8-mm1/
>
> After
> $ echo -n 4-1.2 >/sys/bus/usb/drivers/usb/unbind
> $ echo -n 4-1.2 >/sys/bus/usb/drivers/usb/bind
>
> I have this in logs:
>
> sysfs: duplicate filename 'usbdev4.12_ep81' can not be created

Does this also show up in 2.6.25-rc8 without -mm?

I thought I fixed this already, I don't see what slipped into -mm that
would have caused it to come back. Time to run some more tests...

Oh, also note that binding and unbinding the main "usb" driver is not
encouraged, or even supported. I'm amazed it works, as this is not
something that any "real" user would do as it makes no sense at all
because we have no "alternative" drivers yet for the main USB device.

thanks,

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