Skip to content

Commit 467e050

Browse files
committed
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
2 parents 23469de + 31d8603 commit 467e050

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,6 +3006,14 @@ S: Supported
30063006
F: drivers/gpio/gpio-brcmstb.c
30073007
F: Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.txt
30083008

3009+
BROADCOM BRCMSTB I2C DRIVER
3010+
M: Kamal Dasu <kdasu.kdev@gmail.com>
3011+
L: linux-i2c@vger.kernel.org
3012+
L: bcm-kernel-feedback-list@broadcom.com
3013+
S: Supported
3014+
F: drivers/i2c/busses/i2c-brcmstb.c
3015+
F: Documentation/devicetree/bindings/i2c/i2c-brcmstb.txt
3016+
30093017
BROADCOM BRCMSTB USB2 and USB3 PHY DRIVER
30103018
M: Al Cooper <alcooperx@gmail.com>
30113019
L: linux-kernel@vger.kernel.org

drivers/i2c/busses/i2c-rcar.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,12 @@ static int rcar_i2c_master_xfer(struct i2c_adapter *adap,
806806

807807
time_left = wait_event_timeout(priv->wait, priv->flags & ID_DONE,
808808
num * adap->timeout);
809-
if (!time_left) {
809+
810+
/* cleanup DMA if it couldn't complete properly due to an error */
811+
if (priv->dma_direction != DMA_NONE)
810812
rcar_i2c_cleanup_dma(priv);
813+
814+
if (!time_left) {
811815
rcar_i2c_init(priv);
812816
ret = -ETIMEDOUT;
813817
} else if (priv->flags & ID_NACK) {

0 commit comments

Comments
 (0)