From: Tony Lindgren Date: Mon, 18 Feb 2008 20:16:00 +0000 (-0800) Subject: I2C: Fix unhandled fault in i2c-omap controller X-Git-Tag: v2.6.25-omap1~174 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8e5a643e37370ccbaadb07ff4d1dbb814bbb678;p=pandora-kernel.git I2C: Fix unhandled fault in i2c-omap controller If an I2C interrupt happens between disabling interface clock and functional clock, the interrupt handler will produce an external abort on non-linefetch error when trying to access driver registers while interface clock is disabled. This patch fixes the problem by saving and disabling i2c-omap interrupt before turning off the clocks. Also disable functional clock before the interface clock as suggested by Paul Walmsley. Patch also renames enable/disable_clocks functions to unidle/idle functions. Note that the driver is currently not taking advantage of the idle interrupts. To use the idle interrupts, driver would have to enable interface clock based on the idle interrupt and dev->idle flag. Cc: Paul Walmsley Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed