Skip to contentSkip to conversation

usb: musb: Update FIFO mode_5_cfg to accomodate 4K

PATCH In review Ajay Kumar Gupta 3 participants 3 messages May 4, 2010 – May 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: musb: Update FIFO mode_5_cfg to accomodate 4K

FIFO table fifo_5_cfg was added so that it can be used as a workaround for OMAP34x/35x errata which limits the FIFO space uses to be within first 8K or next 8K.

Updating this table to accomodate an endpoint of 4K so that the same table can be used for high bandwidth transfers as used by some USB cameras.

---
 drivers/usb/musb/musb_core.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
drivers/usb/musb/musb_core.c +7 -7
index 705cc4a..4e327f5 100644
@@ -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, },
 };
 
 /*
Signature · 1 line
1.6.2.4
#1 lore raw
Quoted 8 lines

FIFO table fifo_5_cfg was added so that it can be used as a workaround for OMAP34x/35x errata which limits the FIFO space uses to be within first 8K or next 8K.

Updating this table to accomodate an endpoint of 4K so that the same table can be used for high bandwidth transfers as used by some USB cameras.

No issues with this patch as is, but it's probably high time we made this fifo table something that the board files can pass down.

Is anyone already working on this, or should I give it a shot?

- Anand

#2 lore raw
Quoted 9 lines · Anand
Quoted 8 lines

FIFO table fifo_5_cfg was added so that it can be used as a workaround for OMAP34x/35x errata which limits the FIFO space uses to be within first 8K or next 8K.

Updating this table to accomodate an endpoint of 4K so that the same table can be used for high bandwidth transfers as used by some USB cameras.

Quoted 4 lines

No issues with this patch as is, but it's probably high time we made this fifo table something that the board files can pass down.

Is anyone already working on this, or should I give it a shot?

I had sent a version of that to linux-usb@vger, will dig it and resend.

Signature · 1 line
balbi