From patchwork Fri Aug 27 14:52:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 137881 X-Patchwork-Delegate: me@felipebalbi.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o7REqoRW026739 for ; Fri, 27 Aug 2010 14:52:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753787Ab0H0Owh (ORCPT ); Fri, 27 Aug 2010 10:52:37 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:59413 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753516Ab0H0Owg (ORCPT ); Fri, 27 Aug 2010 10:52:36 -0400 Received: by pzk9 with SMTP id 9so1071467pzk.19 for ; Fri, 27 Aug 2010 07:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=HCJU/+vItUeL2EvRsxsgoof4uWZ5Gs3whNBrgBYjmos=; b=GU4b94OG/cTTm2IqiR5LuJrrYCFknJ91HP0+MbWEahcydpbtDEwGXuBssTsvLgDDgV M0+KH3Enzt3O8J/LVQrZUT40t/EI3CyYID8p0W8SKLdWPjyGUm3QJr+GxBmdnGTUUf63 4tGNnIt7nQqlk0vKQmYVBux1OoQY/EDIN4RXE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=XGRVnbWOtsywZ2GmrhHo0T4GvBgR3pRBJStqiDsAFnUjXLQMt4NKJgpRedQ7tPfNMl VlCbU6vhM3jQ2JJ2WNPKBg86w5DYRx174AFEU+6ShZaTkMSHjhJTDIaUlTulWVnVmOXF 8Ck/q7xbgrfrxl5rHh+M/8qF3FoOtZBw2GtTQ= Received: by 10.114.133.11 with SMTP id g11mr557116wad.165.1282920756135; Fri, 27 Aug 2010 07:52:36 -0700 (PDT) Received: from localhost ([183.16.42.177]) by mx.google.com with ESMTPS id d39sm6782245wam.4.2010.08.27.07.52.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Aug 2010 07:52:34 -0700 (PDT) From: tom.leiming@gmail.com To: greg@kroah.com, dbrownell@users.sourceforge.net, felipe.balbi@nokia.com Cc: linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, Ming Lei , Anand Gadiyar , Mike Frysinger , Sergei Shtylyov Subject: [PATCH 1/2] USB: musb-gadget: enable autoclear for OUT transfer in both DMA 0 and DMA 1 Date: Fri, 27 Aug 2010 22:52:03 +0800 Message-Id: <1282920723-12459-1-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 1.6.2.5 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 27 Aug 2010 14:52:51 +0000 (UTC) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index e0bd1c1..c0dfec4 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c @@ -645,9 +645,9 @@ static void rxstate(struct musb *musb, struct musb_request *req) */ csr |= MUSB_RXCSR_DMAENAB; -#ifdef USE_MODE1 if (!musb_ep->hb_mult) csr |= MUSB_RXCSR_AUTOCLEAR; +#ifdef USE_MODE1 /* csr |= MUSB_RXCSR_DMAMODE; */ /* this special sequence (enabling and then