Re: [RFC/PATCH v3 1/3] usb: common: introduce usb_state_string()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 26, 2013 at 01:46:43PM -0500, Alan Stern wrote:
> On Sat, 26 Jan 2013, Felipe Balbi wrote:
> 
> > > Hi Felipe, I just ask again what's the meaning of "reconnecting"?
> > 
> > not something I can answer. The enum has been there for ages, and the
> > documentation about it doesn't really mention reconnecting. Anyway, it's
> > something the Host stack needs...
> 
> Where does the host stack use it?  I can't find any occurrences of 
> "RECONNECT" under drivers/usb.

hmm... It was added by commit c02c4bb2058587d3c012ec08268fd93fdc654ae7
(USB: USB authentication states). According to the commit log (see
below) it was added for Wireless USB although that define isn't used
anywhere. At least USB_STATE_UNAUTHENTICATED is used by a couple files.

In any case, I don't think we can easily remove that define as it would
possibly break userland, so we need to provide a human-readable string
for it anyway.

commit c02c4bb2058587d3c012ec08268fd93fdc654ae7
Author: David Brownell <david-b@xxxxxxxxxxx>
Date:   Fri Jan 20 14:44:12 2006 -0800

    [PATCH] USB: USB authentication states
    
    Another hook needed for wireless USB:  there are states associated with the
    device authentication protocol.  Wireless devices must authenticate using
    the host system's keystore.
    
    Note that wired connections could also use this authentication protocol, if
    for no other reason than to support the most secure "simple" key exchange
    protocols for wireless devices.
    
    Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux