From a7f66508dbf31a153a4bdd76f2fbcfdb1bb73b0b Mon Sep 17 00:00:00 2001 From: Inaky Perez-Gonzalez Date: Tue, 31 Jul 2007 20:33:57 -0700 Subject: [PATCH] --- yaml --- r: 67816 b: refs/heads/master c: da04b7a42711c1d1d8d9fbc2565cdd83efcfee40 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/usb.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index a14f2658ecbb..45c1266778a7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ca2bdf4bcc91818f03e009b87c348609c2578d1d +refs/heads/master: da04b7a42711c1d1d8d9fbc2565cdd83efcfee40 diff --git a/trunk/include/linux/usb.h b/trunk/include/linux/usb.h index a51f34e80572..92d63c6b6fc6 100644 --- a/trunk/include/linux/usb.h +++ b/trunk/include/linux/usb.h @@ -346,6 +346,11 @@ struct usb_tt; * * Usbcore drivers should not set usbdev->state directly. Instead use * usb_set_device_state(). + * + * @authorized: (user space) policy determines if we authorize this + * device to be used or not. By default, wired USB + * devices are authorized. WUSB devices are not, until we + * authorize them from user space. FIXME -- complete doc */ struct usb_device { int devnum; /* Address on USB bus */ @@ -380,6 +385,8 @@ struct usb_device { unsigned discon_suspended:1; /* Disconnected while suspended */ unsigned have_langid:1; /* whether string_langid is valid */ + unsigned authorized:1; /* Policy has determined we can use it */ + unsigned wusb:1; /* Device is Wireless USB */ int string_langid; /* language ID for strings */ /* static strings from the device */