fbdev: sh_mobile_lcdc: Don't acknowlege interrupts unintentionally
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 13 Jul 2011 10:13:47 +0000 (12:13 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 19 Aug 2011 06:22:38 +0000 (08:22 +0200)
commitdc48665fae5aa360e80dfdb2d6cab4fa58b27ee4
treeea56c195386fc5b997961b033d7868e0c0c8a1bc
parentce1c0b0873bf4e970970a49612105cf6c36d81e3
fbdev: sh_mobile_lcdc: Don't acknowlege interrupts unintentionally

The LDINTR register caries both interrupt enable and interrupt status
bits. When setting or clearing interrupt enable bits, write all status
bits to 1 to avoid acknowledging interrupts by mistake.

When acknowledging interrupts, write 1 to all non-triggered interrupt
bits to avoid losing interrupts.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/video/sh_mobile_lcdcfb.c