• David Brownell's avatar
    [PATCH] USB: ethernet gadget updates (mostly cleanup) · 907cba35
    David Brownell authored
    Some cleanup for the the Ethernet part of the Ethernet/RNDIS gadget driver:
    
      - Remove remnants of ancient endpoint init logic; this is simpler, clearer
    
      - Save a smidgeon of space in the object file
    
      - Get rid of some #ifdeffery, mostly by using some newish inlines
    
      - Reset more driver state as part of USB reset
    
      - Remove a needless wrapper around an RNDIS call
    
      - Improve and comment the status interrupt handling:
          * RNDIS sometimes needs to queue these transfers (rarely in normal
            cases, but reproducibly while Windows was deadlocking its USB stack)
          * Mark requests as busy/not
    
      - Enable the SET_NETDEV_DEV() call; sysfs seems to behave sanely now
    
    This is a net shrink of source code.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    907cba35
ether.c 68.4 KB