201d6a70b7
Currently we process the first i2c_dw_xfer_msg() in i2c_dw_xfer(), but in this case there is a possibility to be interrupted by certain interrupts. As described before in this patchset, we need to keep providing new transmit data within a given time period, otherwise Tx FIFO underrun takes place and STOP condition will be generated on the bus, even if we have more bytes to be written. In order to exclude all such possibilities, change TX_EMPTY interrupt usage as below: * DW_IC_INTR_DEFAULT_MASK: Define a default interrupt mask set, and put TX_EMPTY there. * i2c_dw_xfer_init: Enable DW_IC_INTR_DEFAULT_MASK prior to initiating a new I2C transaction. The first TX_EMPTY will be triggered shortly. With the help of it, we can make the first call to i2c_dw_xfer_msg() in the interrupt handler. * i2c_dw_xfer_msg: Fixup intr_mask operation accordingly. Make sure that TX_EMPTY operations need to be reversed. * request_irq: Set IRQF_DISABLED so that we could load transmit data into Tx FIFO without being distracted by other interrupts. * Remove i2c_dw_xfer_msg() in i2c_dw_xfer(). Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org> |
||
---|---|---|
.. | ||
i2c-acorn.c | ||
i2c-ali15x3.c | ||
i2c-ali1535.c | ||
i2c-ali1563.c | ||
i2c-amd756-s4882.c | ||
i2c-amd756.c | ||
i2c-amd8111.c | ||
i2c-at91.c | ||
i2c-au1550.c | ||
i2c-bfin-twi.c | ||
i2c-cpm.c | ||
i2c-davinci.c | ||
i2c-designware.c | ||
i2c-elektor.c | ||
i2c-gpio.c | ||
i2c-highlander.c | ||
i2c-hydra.c | ||
i2c-i801.c | ||
i2c-ibm_iic.c | ||
i2c-ibm_iic.h | ||
i2c-imx.c | ||
i2c-iop3xx.c | ||
i2c-iop3xx.h | ||
i2c-isch.c | ||
i2c-ixp2000.c | ||
i2c-mpc.c | ||
i2c-mv64xxx.c | ||
i2c-nforce2-s4985.c | ||
i2c-nforce2.c | ||
i2c-ocores.c | ||
i2c-omap.c | ||
i2c-parport-light.c | ||
i2c-parport.c | ||
i2c-parport.h | ||
i2c-pasemi.c | ||
i2c-pca-isa.c | ||
i2c-pca-platform.c | ||
i2c-piix4.c | ||
i2c-pmcmsp.c | ||
i2c-pnx.c | ||
i2c-powermac.c | ||
i2c-pxa.c | ||
i2c-s3c2410.c | ||
i2c-s6000.c | ||
i2c-s6000.h | ||
i2c-scmi.c | ||
i2c-sh7760.c | ||
i2c-sh_mobile.c | ||
i2c-sibyte.c | ||
i2c-simtec.c | ||
i2c-sis96x.c | ||
i2c-sis630.c | ||
i2c-sis5595.c | ||
i2c-stu300.c | ||
i2c-stub.c | ||
i2c-taos-evm.c | ||
i2c-tiny-usb.c | ||
i2c-versatile.c | ||
i2c-via.c | ||
i2c-viapro.c | ||
Kconfig | ||
Makefile | ||
scx200_acb.c | ||
scx200_i2c.c |