linux/drivers/usb/atm
Simon Arlott da1f82b554 USB: cxacru: create sysfs attributes in atm_start instead of bind
Since usbatm doesn't set the usb_interface driver data until after calling
bind and heavy_init, it would be NULL when the sysfs attributes are read.
Reading the MAC address from atm_dev before atm_dev exists would have been
be possible too.

Calling create_device_file in atm_start will avoid this problem, and the
data is useless until the first status poll runs.  However, it must be
ready before a status poll does a printk on line status change otherwise
userspace could react before the files exist.

For completeness I've moved remove_device_file to atm_stop so it's not
called in unbind when it's not needed.  There's no point starting ADSL if
atm_start could still fail either.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Cc: Duncan Sands <duncan.sands@math.u-psud.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-06-08 16:24:31 -07:00
..
cxacru.c USB: cxacru: create sysfs attributes in atm_start instead of bind 2007-06-08 16:24:31 -07:00
Kconfig Still more typo fixes 2006-10-03 22:36:44 +02:00
Makefile [PATCH] USB: Eagle and ADI 930 usb adsl modem driver 2006-01-04 13:48:29 -08:00
speedtch.c USB: <linux/usb_ch9.h> becomes <linux/usb/ch9.h> 2007-02-07 15:44:32 -08:00
ueagle-atm.c USB: ueagle-atm.c needs sched.h 2007-02-16 15:32:23 -08:00
usbatm.c usbatm_heavy_init: don't use CLONE_SIGHAND 2007-05-09 12:30:53 -07:00
usbatm.h [PATCH] USBATM: semaphore to mutex conversion 2006-01-31 17:23:40 -08:00
xusbatm.c [PATCH] USBATM: remove no-longer needed #include 2006-06-21 15:04:09 -07:00