From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Subject: Re: [PATCH] usbnet: Activate halt interrupt endpoint before re-submit URB Date: Wed, 20 Jun 2012 10:58:55 +0200 Message-ID: <201206201058.55519.oneukum@suse.de> References: <201206201000.21845.oneukum@suse.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Huajun Li , David Miller , stern@rowland.harvard.edu, linux-usb@vger.kernel.org, netdev@vger.kernel.org To: Ming Lei Return-path: Received: from cantor2.suse.de ([195.135.220.15]:56024 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752167Ab2FTI64 (ORCPT ); Wed, 20 Jun 2012 04:58:56 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Am Mittwoch, 20. Juni 2012, 10:07:55 schrieb Ming Lei: > On Wed, Jun 20, 2012 at 4:00 PM, Oliver Neukum wrote: > > > > Very well, on second thought, this patch makes sense. > > Could you resend and I'll ack? > > BTW, maybe it is better to add below > > usbnet_defer_kevent(dev, EVENT_STS_HALT); > > for -EPIPE returned from usb_urb_submit if it will be resent. Why? If it failed once it'll probably also fail the next time. In that case we'd need to do something more intrusive like resetting the device, but that cannot be done well in the generic usbnet part. Regards Oliver