Skip to content
  • Alan Stern's avatar
    isp116x-hcd: prepare for urb->status · 1b4cd43b
    Alan Stern authored
    
    
    This patch (as931b), adapted from a patch by Olav Kongas, makes a small
    set of conservative changes to the isp116x-hcd driver in preparation
    for the removal of urb->status.
    
    	finish_request() is moved up in the source and is called
    	as soon as the URB is known to have completed, rather than
    	after all the active endpoints have been scanned.
    
    	The status of a completed URB is kept in a local variable
    	and copied to urb->status only when the URB is about to be
    	given back.
    
    	-EREMOTEIO error status for control transfers is set after
    	the status stage rather than when the short packet arrives.
    
    	Some unnecessary uses of urb->lock are removed.
    
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Cc: Olav Kongas <ok@artecdesign.ee>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    
    1b4cd43b