android_kernel_xiaomi_sm8350/drivers/i2c/busses
Timur Tabi 1ab082d7cb i2c-mpc: do not allow interruptions when waiting for I2C to complete
The i2c_wait() function is using wait_event_interruptible_timeout() to wait for
the I2C controller to signal that it has completed an I2C bus operation.  If
the process that causes the I2C operation terminated abruptly, the wait will
be interrupted, returning an error.  It is better to let the I2C operation
finished before the process exits.

It is safe to use wait_event_timeout() instead, because the timeout will allow
the process to exit if the I2C bus hangs.  It's also better to allow the
I2C operation to finish, because unacknowledged I2C operations can cause the
I2C bus to hang.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2009-03-09 09:25:34 -05:00
..
i2c-acorn.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-ali15x3.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-ali1535.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-ali1563.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-amd756-s4882.c i2c: Use snprintf to set adapter names 2009-01-07 14:29:18 +01:00
i2c-amd756.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-amd8111.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-at91.c i2c: Use snprintf to set adapter names 2009-01-07 14:29:18 +01:00
i2c-au1550.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-bfin-twi.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-cpm.c i2c-cpm: Detect and report NAK right away instead of timing out 2008-12-16 20:17:09 +00:00
i2c-davinci.c
i2c-elektor.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-gpio.c
i2c-highlander.c i2c-highlander: Trivial endian casting fixes 2008-12-11 12:11:21 +01:00
i2c-hydra.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-i801.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-ibm_iic.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-ibm_iic.h
i2c-iop3xx.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-iop3xx.h
i2c-isch.c
i2c-ixp2000.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-mpc.c i2c-mpc: do not allow interruptions when waiting for I2C to complete 2009-03-09 09:25:34 -05:00
i2c-mv64xxx.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-nforce2-s4985.c
i2c-nforce2.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-ocores.c
i2c-omap.c i2c-omap: fix type of irq handler function 2008-12-16 22:08:08 +00:00
i2c-parport-light.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-parport.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-parport.h
i2c-pasemi.c
i2c-pca-isa.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-pca-platform.c
i2c-piix4.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-pmcmsp.c i2c-pmcmsp: Fix endianness misannotation 2008-12-11 12:11:20 +01:00
i2c-pnx.c
i2c-powermac.c hwmon: (ams) Convert to a new-style i2c driver 2008-10-17 17:51:12 +02:00
i2c-pxa.c i2c: Get rid of remaining bus_id access 2009-01-07 14:29:16 +01:00
i2c-s3c2410.c i2c: Get rid of remaining bus_id access 2009-01-07 14:29:16 +01:00
i2c-sh7760.c i2c: Drop I2C_CLASS_ALL 2009-01-07 14:29:16 +01:00
i2c-sh_mobile.c i2c: Get rid of remaining bus_id access 2009-01-07 14:29:16 +01:00
i2c-sibyte.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-simtec.c
i2c-sis96x.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-sis630.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-sis5595.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-stub.c
i2c-taos-evm.c
i2c-tiny-usb.c
i2c-versatile.c
i2c-via.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-viapro.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
i2c-voodoo3.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
Kconfig i2c-i801: Add support for Intel Ibex Peak 2008-10-22 20:21:29 +02:00
Makefile i2c: Renesas Highlander FPGA SMBus support 2008-10-14 17:30:03 +02:00
scx200_acb.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00
scx200_i2c.c i2c: Delete many unused adapter IDs 2009-01-26 21:19:52 +01:00