staging: dwc2: remove some device-mode related debug code
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 29 Apr 2013 19:44:45 +0000 (19:44 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 22:23:55 +0000 (15:23 -0700)
This code appears to be partially incorrect. Since this is only debug
code and only applies to device mode, it seems better to remove this
code for now than to invest time fixing it.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/core.c

index 1a2e53a..6578ed5 100644 (file)
@@ -1809,8 +1809,6 @@ void dwc2_dump_global_registers(struct dwc2_hsotg *hsotg)
 {
 #ifdef DEBUG
        u32 __iomem *addr;
-       int i, ep_num;
-       char *txfsiz;
 
        dev_dbg(hsotg->dev, "Core Global Registers\n");
        addr = hsotg->regs + GOTGCTL;
@@ -1886,23 +1884,6 @@ void dwc2_dump_global_registers(struct dwc2_hsotg *hsotg)
        dev_dbg(hsotg->dev, "HPTXFSIZ    @0x%08lX : 0x%08X\n",
                (unsigned long)addr, readl(addr));
 
-       if (hsotg->core_params->en_multiple_tx_fifo <= 0) {
-               ep_num = hsotg->hwcfg4 >> GHWCFG4_NUM_DEV_PERIO_IN_EP_SHIFT &
-                        GHWCFG4_NUM_DEV_PERIO_IN_EP_MASK >>
-                                        GHWCFG4_NUM_DEV_PERIO_IN_EP_SHIFT;
-               txfsiz = "DPTXFSIZ";
-       } else {
-               ep_num = hsotg->hwcfg4 >> GHWCFG4_NUM_IN_EPS_SHIFT &
-                        GHWCFG4_NUM_IN_EPS_MASK >> GHWCFG4_NUM_IN_EPS_SHIFT;
-               txfsiz = "DIENPTXF";
-       }
-
-       for (i = 0; i < ep_num; i++) {
-               addr = hsotg->regs + DPTXFSIZN(i + 1);
-               dev_dbg(hsotg->dev, "%s[%d] @0x%08lX : 0x%08X\n", txfsiz, i + 1,
-                       (unsigned long)addr, readl(addr));
-       }
-
        addr = hsotg->regs + PCGCTL;
        dev_dbg(hsotg->dev, "PCGCTL      @0x%08lX : 0x%08X\n",
                (unsigned long)addr, readl(addr));