Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpu: ipu-v3: remove interrupt busy waiting routine

This is not used anymore since commit eb8c88808c83 ("drm/imx: add
deferred plane disabling"), remove it.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

-17
-16
drivers/gpu/ipu-v3/ipu-common.c
··· 597 597 } 598 598 EXPORT_SYMBOL_GPL(ipu_idmac_wait_busy); 599 599 600 - int ipu_wait_interrupt(struct ipu_soc *ipu, int irq, int ms) 601 - { 602 - unsigned long timeout; 603 - 604 - timeout = jiffies + msecs_to_jiffies(ms); 605 - ipu_cm_write(ipu, BIT(irq % 32), IPU_INT_STAT(irq / 32)); 606 - while (!(ipu_cm_read(ipu, IPU_INT_STAT(irq / 32) & BIT(irq % 32)))) { 607 - if (time_after(jiffies, timeout)) 608 - return -ETIMEDOUT; 609 - cpu_relax(); 610 - } 611 - 612 - return 0; 613 - } 614 - EXPORT_SYMBOL_GPL(ipu_wait_interrupt); 615 - 616 600 int ipu_idmac_disable_channel(struct ipuv3_channel *channel) 617 601 { 618 602 struct ipu_soc *ipu = channel->ipu;
-1
drivers/gpu/ipu-v3/ipu-prv.h
··· 225 225 int ipu_module_disable(struct ipu_soc *ipu, u32 mask); 226 226 227 227 bool ipu_idmac_channel_busy(struct ipu_soc *ipu, unsigned int chno); 228 - int ipu_wait_interrupt(struct ipu_soc *ipu, int irq, int ms); 229 228 230 229 int ipu_csi_init(struct ipu_soc *ipu, struct device *dev, int id, 231 230 unsigned long base, u32 module, struct clk *clk_ipu);