Commit 87de27a3 authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

MUSB: tusb multipoint fixes

tusb multipoint fixes
parent fb7a7837
...@@ -1614,7 +1614,7 @@ static inline void __devinit musb_g_init_endpoints(struct musb *pThis) ...@@ -1614,7 +1614,7 @@ static inline void __devinit musb_g_init_endpoints(struct musb *pThis)
} }
} }
DBG(2, "initialized %d (max %d) endpoints\n", count, DBG(2, "initialized %d (max %d) endpoints\n", count,
pThis->bEndCount * 2 - 1); MUSB_C_NUM_EPS * 2 - 1);
} }
/* called once during driver setup to initialize and link into /* called once during driver setup to initialize and link into
......
...@@ -950,6 +950,11 @@ static int __devinit ep_config_from_table(struct musb *musb) ...@@ -950,6 +950,11 @@ static int __devinit ep_config_from_table(struct musb *musb)
musb->bEndCount = max(epn, musb->bEndCount); musb->bEndCount = max(epn, musb->bEndCount);
} }
printk(KERN_DEBUG "%s: %d/%d max ep, %d/%d memory\n",
musb_driver_name,
musb->bEndCount, MUSB_C_NUM_EPS * 2 - 1,
offset, DYN_FIFO_SIZE);
#ifdef CONFIG_USB_MUSB_HDRC_HCD #ifdef CONFIG_USB_MUSB_HDRC_HCD
if (!musb->bulk_ep) { if (!musb->bulk_ep) {
pr_debug( "%s: missing bulk\n", musb_driver_name); pr_debug( "%s: missing bulk\n", musb_driver_name);
......
...@@ -43,7 +43,8 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf) ...@@ -43,7 +43,8 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf)
prefetch(bufp); prefetch(bufp);
DBG(3, "%cX ep%d count %d bufp %p\n", 'T', epnum, len, bufp); DBG(4, "%cX ep%d fifo %p count %d buf %p\n",
'T', epnum, fifo, len, bufp);
if (epnum) if (epnum)
musb_writel(ep_conf, TUSB_EP_TX_OFFSET, musb_writel(ep_conf, TUSB_EP_TX_OFFSET,
...@@ -97,7 +98,8 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *buf) ...@@ -97,7 +98,8 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *buf)
int i, remain; int i, remain;
u32 val; u32 val;
DBG(3, "%cX ep%d count %d buf %p\n", 'R', epnum, len, bufp); DBG(4, "%cX ep%d fifo %p count %d buf %p\n",
'R', epnum, fifo, len, bufp);
if (epnum) if (epnum)
musb_writel(ep_conf, TUSB_EP_RX_OFFSET, musb_writel(ep_conf, TUSB_EP_RX_OFFSET,
......
...@@ -225,10 +225,10 @@ ...@@ -225,10 +225,10 @@
/* configuration parameters specific to this silicon */ /* configuration parameters specific to this silicon */
/* Number of Tx endpoints. Legal values are 1 - 16 (this value includes EP0) */ /* Number of Tx endpoints. Legal values are 1 - 16 (this value includes EP0) */
#define MUSB_C_NUM_EPT 5 #define MUSB_C_NUM_EPT 16
/* Number of Rx endpoints. Legal values are 1 - 16 (this value includes EP0) */ /* Number of Rx endpoints. Legal values are 1 - 16 (this value includes EP0) */
#define MUSB_C_NUM_EPR 5 #define MUSB_C_NUM_EPR 16
/* Endpoint 1 to 15 direction types. C_EP1_DEF is defined if either Tx endpoint /* Endpoint 1 to 15 direction types. C_EP1_DEF is defined if either Tx endpoint
* 1 or Rx endpoint 1 are used. * 1 or Rx endpoint 1 are used.
...@@ -383,7 +383,7 @@ ...@@ -383,7 +383,7 @@
* addresses). It is defined as log2 of the sum of 2** of all the endpoint FIFO * addresses). It is defined as log2 of the sum of 2** of all the endpoint FIFO
* dword address bits (rounded up). * dword address bits (rounded up).
*/ */
#define MUSB_C_RAM_BITS 10 #define MUSB_C_RAM_BITS 12
#endif /* CONFIG_USB_TUSB6010 */ #endif /* CONFIG_USB_TUSB6010 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment