staging: dwc2: remove some device-mode related debug code
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>
This commit is contained in:
parent
bcc5defa1a
commit
73cfe0e5d5
1 changed files with 0 additions and 19 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue