summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorQuinn Jensen <quinn.jensen@freescale.com>2007-10-24 21:20:51 -0600
committerQuinn Jensen <quinn.jensen@freescale.com>2007-10-24 21:20:51 -0600
commitab0623cb532304b507552f4004e7492de531e816 (patch)
tree2c2d1992ad0153072408587fad61d880cb88fb0e /drivers
parenta512507b3c7befbfcd20705774c47abbe15eea22 (diff)
CR ENGR00037631: Add handling of prp overflow on channel 2 under high system load.
Patch for CR ENGR00037631: Add handling of prp overflow on channel 2 under high system load. Applies to linux 2.6.22 kernel for the MX27 platform. http://www.bitshrine.org/gpp/linux-2.6.22-mx-CR-ENGR00037631-Add-handling-of-prp-overfl.patch
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/mxc/capture/mx27_prpsw.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/media/video/mxc/capture/mx27_prpsw.c b/drivers/media/video/mxc/capture/mx27_prpsw.c
index c444f95a6f82..9bf7d92e66f2 100644
--- a/drivers/media/video/mxc/capture/mx27_prpsw.c
+++ b/drivers/media/video/mxc/capture/mx27_prpsw.c
@@ -290,7 +290,14 @@ static irqreturn_t prp_isr(int irq, void *dev_id)
* They are execlusive.
*/
} else if (cam->capture_on) {
- if (status & (PRP_INTRSTAT_CH2BUF1 | PRP_INTRSTAT_CH2BUF2)) {
+ if (status & PRP_INTRSTAT_CH2OVF)
+ {
+ //printk(KERN_INFO "prphw_isr - PRP_INTRSTAT_CH2OVF: status: 0x%x\n", status);
+ prphw_disable(PRP_CHANNEL_2);
+ prphw_enable(PRP_CHANNEL_2);
+ cam->enc_callback(0, cam);
+ }
+ else if (status & (PRP_INTRSTAT_CH2BUF1 | PRP_INTRSTAT_CH2BUF2)) {
cam->enc_callback(0, cam);
}
}