usb: musb: Update FIFO mode_5_cfg to accomodate 4K
Subsystems (2)
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
@@ -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
Quoted 8 lines
FIFO table
fifo_5_cfgwas 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
Quoted 9 lines · Anand
Quoted 8 lines
FIFO table
fifo_5_cfgwas 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