Return-path: Received: from mail-yw0-f46.google.com ([209.85.213.46]:39238 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753560Ab1BIQag (ORCPT ); Wed, 9 Feb 2011 11:30:36 -0500 From: Sujith MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <19794.49430.480720.290057@gargle.gargle.HOWL> Date: Wed, 9 Feb 2011 22:00:14 +0530 To: Alan Stern Cc: Sujith , Jussi Kivilinna , Martin Schleier , , , , , , Subject: Re: Override endpoint attributes (was: RE: [PATCH] zd1211rw: change endpoint types of EP_REGS_OUT and EP_INT_IN from interrupt to bulk) In-Reply-To: References: <19793.64449.344588.240418@gargle.gargle.HOWL> Sender: linux-wireless-owner@vger.kernel.org List-ID: Alan Stern wrote: > On Wed, 9 Feb 2011, Sujith wrote: > > > > The first two problems are the device's fault, and the third is the > > > driver's fault. None of them are the fault of usbcore. > > > > Indeed, which is why this dirty hack is done in the driver. > > And it was done to fix a similar issue - high CPU usage when scanning. > > > > But do you have any suggestion for such broken devices ? > > The FW changes the type from Interrupt to Bulk, but can the host > > driver continue to use Interrupt URBs and use the URB_NO_INTERRUPT trick > > that you have mentioned ? > > Yes. And it's not a trick; that is exactly what URB_NO_INTERRUPT was > intended for. Ok, thanks. Will fix the driver then. Sujith