]> git.baikalelectronics.ru Git - kernel.git/commit
USB: cxacru: export detailed device info through sysfs
authorSimon Arlott <simon@arlott.org>
Tue, 6 Mar 2007 10:47:45 +0000 (02:47 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 20:28:34 +0000 (13:28 -0700)
commitd1cd3896b4e8fe612bf0d3396201dced8244dfda
tree9aa3ae5dca5189ca3fb727c0b0ab2d412a7d1a32
parentf2f17034cb1a5311a35932eeaeeea53fccb6b3a2
USB: cxacru: export detailed device info through sysfs

When the device is polled for status there is a lot of useful status
information available that is ignored.  This patch stores the device info
array when the status is polled and adds sysfs files to the usb device to
allow userspace to query it.  Since the device updates its status
internally once a second the poll time is changed to this, and
round_jiffies_relative is used to avoid waking the cpu unnecessarily.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Cc: Duncan Sands <duncan.sands@free.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/atm/cxacru.c