Commit ffb40733 authored by Philipp Zabel's avatar Philipp Zabel

gpu: ipu-v3: remove interrupt busy waiting routine

This is not used anymore since commit eb8c8880 ("drm/imx: add
deferred plane disabling"), remove it.
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent 93adc8b5
...@@ -597,22 +597,6 @@ int ipu_idmac_wait_busy(struct ipuv3_channel *channel, int ms) ...@@ -597,22 +597,6 @@ int ipu_idmac_wait_busy(struct ipuv3_channel *channel, int ms)
} }
EXPORT_SYMBOL_GPL(ipu_idmac_wait_busy); EXPORT_SYMBOL_GPL(ipu_idmac_wait_busy);
int ipu_wait_interrupt(struct ipu_soc *ipu, int irq, int ms)
{
unsigned long timeout;
timeout = jiffies + msecs_to_jiffies(ms);
ipu_cm_write(ipu, BIT(irq % 32), IPU_INT_STAT(irq / 32));
while (!(ipu_cm_read(ipu, IPU_INT_STAT(irq / 32) & BIT(irq % 32)))) {
if (time_after(jiffies, timeout))
return -ETIMEDOUT;
cpu_relax();
}
return 0;
}
EXPORT_SYMBOL_GPL(ipu_wait_interrupt);
int ipu_idmac_disable_channel(struct ipuv3_channel *channel) int ipu_idmac_disable_channel(struct ipuv3_channel *channel)
{ {
struct ipu_soc *ipu = channel->ipu; struct ipu_soc *ipu = channel->ipu;
......
...@@ -225,7 +225,6 @@ int ipu_module_enable(struct ipu_soc *ipu, u32 mask); ...@@ -225,7 +225,6 @@ int ipu_module_enable(struct ipu_soc *ipu, u32 mask);
int ipu_module_disable(struct ipu_soc *ipu, u32 mask); int ipu_module_disable(struct ipu_soc *ipu, u32 mask);
bool ipu_idmac_channel_busy(struct ipu_soc *ipu, unsigned int chno); bool ipu_idmac_channel_busy(struct ipu_soc *ipu, unsigned int chno);
int ipu_wait_interrupt(struct ipu_soc *ipu, int irq, int ms);
int ipu_csi_init(struct ipu_soc *ipu, struct device *dev, int id, int ipu_csi_init(struct ipu_soc *ipu, struct device *dev, int id,
unsigned long base, u32 module, struct clk *clk_ipu); unsigned long base, u32 module, struct clk *clk_ipu);
......
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