• Olav Kongas's avatar
    [PATCH] USB: isp116x-hcd: cleanup · 959eea21
    Olav Kongas authored
    The attached patch makes a cleanup of isp116x-hcd. Most of the volume of
    the patch comes from 2 sources: moving the code around to get rid of a
    few function prototypes and reworking register dumping functions/macros.
    Among other things, switched over from using procfs to debugfs.
    
    Cleanup. The following changes were made:
    
    - Rework register dumping code so it can be used for dumping
      to both syslog and debugfs.
    - Switch from procfs to debugfs..
    - Die gracefully on Unrecoverable Error interrupt.
    - Fix memory leak in isp116x_urb_enqueue(), if HC happens to
      die in a narrow time window.
    - Fix a 'sparce' warning (unnecessary cast).
    - Report Devices Removable for root hub ports by default
      (was Devices Permanently Attached).
    - Move bus suspend/resume functions down in code to get rid of
      a few function prototypes.
    - A number of one-line cleanups.
    - Add an entry to MAINTAINERS.
    Signed-off-by: default avatarOlav Kongas <ok@artecdesign.ee>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    
     MAINTAINERS                    |    6
     drivers/usb/host/isp116x-hcd.c |  429 ++++++++++++++++-------------------------
     drivers/usb/host/isp116x.h     |   83 +++++--
     3 files changed, 230 insertions(+), 288 deletions(-)
    959eea21
isp116x.h 17.7 KB