Commit 0590cdfe authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

staging: octeon-usb: use __delay() instead of cvmx_wait()

Commit edf188be ("MIPS: Octeon: Remove usage of cvmx_wait()
everywhere.") deleted cvmx_wait() but forgot to update OCTEON USB
staging driver. Fix that to allow driver build.

Fixes: edf188be ("MIPS: Octeon: Remove usage of cvmx_wait() everywhere.")
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Reviewed-by: default avatarJames Hogan <jhogan@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b77992d2
...@@ -394,7 +394,7 @@ struct octeon_hcd { ...@@ -394,7 +394,7 @@ struct octeon_hcd {
result = -1; \ result = -1; \
break; \ break; \
} else \ } else \
cvmx_wait(100); \ __delay(100); \
} \ } \
} while (0); \ } while (0); \
result; }) result; })
...@@ -774,7 +774,7 @@ static int cvmx_usb_initialize(struct device *dev, ...@@ -774,7 +774,7 @@ static int cvmx_usb_initialize(struct device *dev,
usbn_clk_ctl.s.hclk_rst = 1; usbn_clk_ctl.s.hclk_rst = 1;
cvmx_write64_uint64(CVMX_USBNX_CLK_CTL(usb->index), usbn_clk_ctl.u64); cvmx_write64_uint64(CVMX_USBNX_CLK_CTL(usb->index), usbn_clk_ctl.u64);
/* 2e. Wait 64 core-clock cycles for HCLK to stabilize */ /* 2e. Wait 64 core-clock cycles for HCLK to stabilize */
cvmx_wait(64); __delay(64);
/* /*
* 3. Program the power-on reset field in the USBN clock-control * 3. Program the power-on reset field in the USBN clock-control
* register: * register:
...@@ -795,7 +795,7 @@ static int cvmx_usb_initialize(struct device *dev, ...@@ -795,7 +795,7 @@ static int cvmx_usb_initialize(struct device *dev,
cvmx_write64_uint64(CVMX_USBNX_USBP_CTL_STATUS(usb->index), cvmx_write64_uint64(CVMX_USBNX_USBP_CTL_STATUS(usb->index),
usbn_usbp_ctl_status.u64); usbn_usbp_ctl_status.u64);
/* 6. Wait 10 cycles */ /* 6. Wait 10 cycles */
cvmx_wait(10); __delay(10);
/* /*
* 7. Clear ATE_RESET field in the USBN clock-control register: * 7. Clear ATE_RESET field in the USBN clock-control register:
* USBN_USBP_CTL_STATUS[ATE_RESET] = 0 * USBN_USBP_CTL_STATUS[ATE_RESET] = 0
......
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