From patchwork Tue May 4 09:02:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar Gupta X-Patchwork-Id: 96696 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4492IUA018866 for ; Tue, 4 May 2010 09:02:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757164Ab0EDJCN (ORCPT ); Tue, 4 May 2010 05:02:13 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:51830 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756936Ab0EDJCM (ORCPT ); Tue, 4 May 2010 05:02:12 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o44924mR008408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 May 2010 04:02:07 -0500 Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o44922dV026324; Tue, 4 May 2010 14:32:03 +0530 (IST) Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by psplinux050.india.ti.com (8.13.1/8.13.1) with ESMTP id o44922Mt008691; Tue, 4 May 2010 14:32:02 +0530 Received: (from a0393629@localhost) by psplinux050.india.ti.com (8.13.1/8.13.1/Submit) id o44922Cb008688; Tue, 4 May 2010 14:32:02 +0530 From: Ajay Kumar Gupta To: linux-usb@vger.kernel.org Cc: linux-omap@vger.kernel.org, felipe.balbi@nokia.com, Ajay Kumar Gupta Subject: [PATCH] usb: musb: Update FIFO mode_5_cfg to accomodate 4K Date: Tue, 4 May 2010 14:32:02 +0530 Message-Id: <1272963722-8659-1-git-send-email-ajay.gupta@ti.com> X-Mailer: git-send-email 1.6.2.4 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 (demeter.kernel.org [140.211.167.41]); Tue, 04 May 2010 09:02:27 +0000 (UTC) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 705cc4a..4e327f5 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -1089,10 +1089,10 @@ static struct fifo_cfg __initdata mode_5_cfg[] = { { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, }, { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, }, { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, }, -{ .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, }, -{ .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, }, -{ .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 512, }, -{ .hw_ep_num = 5, .style = FIFO_RX, .maxpacket = 512, }, +{ .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 32, }, +{ .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 32, }, +{ .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 32, }, +{ .hw_ep_num = 5, .style = FIFO_RX, .maxpacket = 32, }, { .hw_ep_num = 6, .style = FIFO_TX, .maxpacket = 32, }, { .hw_ep_num = 6, .style = FIFO_RX, .maxpacket = 32, }, { .hw_ep_num = 7, .style = FIFO_TX, .maxpacket = 32, }, @@ -1107,9 +1107,9 @@ static struct fifo_cfg __initdata mode_5_cfg[] = { { .hw_ep_num = 11, .style = FIFO_RX, .maxpacket = 32, }, { .hw_ep_num = 12, .style = FIFO_TX, .maxpacket = 32, }, { .hw_ep_num = 12, .style = FIFO_RX, .maxpacket = 32, }, -{ .hw_ep_num = 13, .style = FIFO_RXTX, .maxpacket = 512, }, -{ .hw_ep_num = 14, .style = FIFO_RXTX, .maxpacket = 1024, }, -{ .hw_ep_num = 15, .style = FIFO_RXTX, .maxpacket = 1024, }, +{ .hw_ep_num = 13, .style = FIFO_RXTX, .maxpacket = 128, }, +{ .hw_ep_num = 14, .style = FIFO_RXTX, .maxpacket = 256, }, +{ .hw_ep_num = 15, .style = FIFO_RXTX, .maxpacket = 4096, }, }; /*