1
linux/drivers/i2c/busses
Tony Lindgren f08ac4e794 i2c-omap: Fix unhandled fault
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.

This patch has been tested in linux-omap tree with various omaps.

Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
2008-03-23 20:28:20 +01:00
..
i2c-acorn.c
i2c-ali15x3.c
i2c-ali1535.c
i2c-ali1563.c
i2c-amd756-s4882.c
i2c-amd756.c i2c-amd756: Fix off-by-one 2008-03-12 14:15:00 +01:00
i2c-amd8111.c
i2c-at91.c i2c: Spelling fixes 2008-01-14 21:53:30 +01:00
i2c-au1550.c i2c-au1550: Convert to platform driver 2008-01-27 18:14:52 +01:00
i2c-bfin-twi.c i2c-bfin-twi: Register adapter with a specific bus number 2008-01-27 18:14:52 +01:00
i2c-davinci.c i2c: Don't uselessly set i2c_adapter.retries 2008-01-27 18:14:47 +01:00
i2c-elektor.c
i2c-gpio.c
i2c-hydra.c
i2c-i801.c i2c-i801: Add support for the ICH10 2008-02-24 20:03:42 +01:00
i2c-i810.c
i2c-ibm_iic.c i2c: Don't uselessly set i2c_adapter.retries 2008-01-27 18:14:47 +01:00
i2c-ibm_iic.h i2c-ibm_iic: Whitespace cleanup 2008-01-27 18:14:45 +01:00
i2c-iop3xx.c i2c: Don't uselessly set i2c_adapter.retries 2008-01-27 18:14:47 +01:00
i2c-iop3xx.h
i2c-ixp2000.c
i2c-mpc.c mpc-i2c: Propagate error values properly 2008-01-27 18:14:52 +01:00
i2c-mv64xxx.c [I2C] i2c-mv64xxx: Don't set i2c_adapter.retries 2008-01-26 15:04:01 +00:00
i2c-nforce2.c i2c-nforce2: The nForce2 can do block transactions 2008-01-27 18:14:44 +01:00
i2c-ocores.c
i2c-omap.c i2c-omap: Fix unhandled fault 2008-03-23 20:28:20 +01:00
i2c-parport-light.c
i2c-parport.c
i2c-parport.h
i2c-pasemi.c i2c-pasemi: use i2c_add_numbered_adapter() 2008-01-27 18:14:44 +01:00
i2c-pca-isa.c i2c-pca-isa: Add access check to legacy ioports 2008-02-24 20:03:42 +01:00
i2c-piix4.c i2c-piix4: Drop redundant PCI function number check 2008-01-27 18:14:51 +01:00
i2c-pmcmsp.c i2c: Storage class should be before const qualifier 2008-02-24 20:03:42 +01:00
i2c-pnx.c
i2c-powermac.c i2c: Spelling fixes 2008-01-14 21:53:30 +01:00
i2c-prosavage.c
i2c-pxa.c i2c-pxa: Misc fixes 2008-02-24 20:03:42 +01:00
i2c-s3c2410.c
i2c-savage4.c
i2c-sibyte.c i2c-sibyte: Remove the bus scan module parameter 2008-01-27 18:14:50 +01:00
i2c-simtec.c
i2c-sis96x.c
i2c-sis630.c
i2c-sis5595.c
i2c-stub.c i2c-stub: Use a single array for byte and word operations 2008-01-27 18:14:45 +01:00
i2c-taos-evm.c
i2c-tiny-usb.c
i2c-versatile.c
i2c-via.c
i2c-viapro.c i2c-viapro: Add support for the VT8237S 2008-01-27 18:14:51 +01:00
i2c-voodoo3.c
Kconfig i2c-bfin-twi: Disable BF54x support for now 2008-03-23 20:28:20 +01:00
Makefile i2c: some overdue driver removal 2008-01-27 18:14:46 +01:00
scx200_acb.c PCI: Remove users of pci_enable_device_bars() 2008-02-01 15:04:27 -08:00
scx200_i2c.c