mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 21:54:11 +08:00
Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Wolfram writes: "i2c for 4.19 Another driver bugfix and MAINTAINERS addition from I2C." * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: i2c: rcar: cleanup DMA for all kinds of failure MAINTAINERS: Add entry for Broadcom STB I2C controller
This commit is contained in:
commit
467e050e97
@ -3006,6 +3006,14 @@ S: Supported
|
|||||||
F: drivers/gpio/gpio-brcmstb.c
|
F: drivers/gpio/gpio-brcmstb.c
|
||||||
F: Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.txt
|
F: Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.txt
|
||||||
|
|
||||||
|
BROADCOM BRCMSTB I2C DRIVER
|
||||||
|
M: Kamal Dasu <kdasu.kdev@gmail.com>
|
||||||
|
L: linux-i2c@vger.kernel.org
|
||||||
|
L: bcm-kernel-feedback-list@broadcom.com
|
||||||
|
S: Supported
|
||||||
|
F: drivers/i2c/busses/i2c-brcmstb.c
|
||||||
|
F: Documentation/devicetree/bindings/i2c/i2c-brcmstb.txt
|
||||||
|
|
||||||
BROADCOM BRCMSTB USB2 and USB3 PHY DRIVER
|
BROADCOM BRCMSTB USB2 and USB3 PHY DRIVER
|
||||||
M: Al Cooper <alcooperx@gmail.com>
|
M: Al Cooper <alcooperx@gmail.com>
|
||||||
L: linux-kernel@vger.kernel.org
|
L: linux-kernel@vger.kernel.org
|
||||||
|
@ -806,8 +806,12 @@ static int rcar_i2c_master_xfer(struct i2c_adapter *adap,
|
|||||||
|
|
||||||
time_left = wait_event_timeout(priv->wait, priv->flags & ID_DONE,
|
time_left = wait_event_timeout(priv->wait, priv->flags & ID_DONE,
|
||||||
num * adap->timeout);
|
num * adap->timeout);
|
||||||
if (!time_left) {
|
|
||||||
|
/* cleanup DMA if it couldn't complete properly due to an error */
|
||||||
|
if (priv->dma_direction != DMA_NONE)
|
||||||
rcar_i2c_cleanup_dma(priv);
|
rcar_i2c_cleanup_dma(priv);
|
||||||
|
|
||||||
|
if (!time_left) {
|
||||||
rcar_i2c_init(priv);
|
rcar_i2c_init(priv);
|
||||||
ret = -ETIMEDOUT;
|
ret = -ETIMEDOUT;
|
||||||
} else if (priv->flags & ID_NACK) {
|
} else if (priv->flags & ID_NACK) {
|
||||||
|
Loading…
Reference in New Issue
Block a user