]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
MUSB: tusb multipoint fixes
authorDavid Brownell <david-b@pacbell.net>
Tue, 5 Sep 2006 14:20:15 +0000 (17:20 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 5 Sep 2006 14:20:15 +0000 (17:20 +0300)
tusb multipoint fixes

drivers/usb/musb/musb_gadget.c
drivers/usb/musb/plat_uds.c
drivers/usb/musb/tusb6010.c
drivers/usb/musb/tusb6010.h

index eb568bf00ebce7c401092516da2d47522d6344cc..bd889aeeed9d00d997000572b3169706c7b1b8f3 100644 (file)
@@ -1614,7 +1614,7 @@ static inline void __devinit musb_g_init_endpoints(struct musb *pThis)
                }
        }
        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
index 3b5514f4c41e9d47298c091b7ae105834d24d7bf..9ba7b230ca570a8970232ac6b22ac9b9eed126a5 100644 (file)
@@ -950,6 +950,11 @@ static int __devinit ep_config_from_table(struct musb *musb)
                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
        if (!musb->bulk_ep) {
                pr_debug( "%s: missing bulk\n", musb_driver_name);
index 54a8b7c952431c1f6e1cc3a0fcb4799fdd14f912..205dc2f23e094a8900edca172a30bf19fc02dc42 100644 (file)
@@ -43,7 +43,8 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf)
 
        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)
                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)
        int             i, remain;
        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)
                musb_writel(ep_conf, TUSB_EP_RX_OFFSET,
index b1de9cd0cd04dee99218b4c18dfe9651d2a1d94e..c8c05e2f638aa8133fcb9740fe01ec38a5b7d918 100644 (file)
 /* configuration parameters specific to this silicon */
 
 /* 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) */
-#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
  * 1 or Rx endpoint 1 are used.
  * addresses).  It is defined as log2 of the sum of 2** of all the endpoint FIFO
  * dword address bits (rounded up).
  */
-#define MUSB_C_RAM_BITS 10
+#define MUSB_C_RAM_BITS 12
 
 #endif /* CONFIG_USB_TUSB6010 */