]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
T2: Remove redundant clear and restore of the COR flag
authorKlaus Pedersen <klaus.k.pedersen@nokia.com>
Fri, 18 Jan 2008 17:30:23 +0000 (19:30 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 18 Jan 2008 22:29:27 +0000 (14:29 -0800)
commitba7b52c20993e7c1ef7b79fb10af807df82048ca
tree9a211bc6bfb2a609bc02c1dc41cde5aa8f3cc2d8
parentce3d08691cb4d0d1751ac00a4a072cdac38c79c5
T2: Remove redundant clear and restore of the COR flag

The T2 Clear-On-Read (COR) feature works by clearing all pending
irqs when the ISR register is read. It should be needless to say
that this feature isn't compatible with shared interrupts, unless
the value of the ISR is read only once for each interrupt.

It is therefor safe to assume that COR is not used - because if a
driver uses the feature, that driver will clear the interrupts
belonging to other drivers.

This patch removes the redundant clearing and restoring of the COR
bit in REG_PWR_SIH_CTRL.

Signed-off-by: Klaus Pedersen <klaus.k.pedersen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/twl4030_usb.c