diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-02-01 10:18:11 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-05-02 15:17:30 +0200 |
commit | 60081f9a0072c2a5caecea617e84a9d2001f7f07 (patch) | |
tree | 824a3e907af76c5e1ed451525be23c6389627979 /target/linux/imx6/patches-4.4/207-i2c-imx-add-retries-for-NAK-s-on-ventana-boards.patch | |
parent | 491abe8c998381983caa3e411bcef5117e5cfbbb (diff) | |
download | upstream-60081f9a0072c2a5caecea617e84a9d2001f7f07.tar.gz upstream-60081f9a0072c2a5caecea617e84a9d2001f7f07.tar.bz2 upstream-60081f9a0072c2a5caecea617e84a9d2001f7f07.zip |
imx6: remove linux 4.4 support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/imx6/patches-4.4/207-i2c-imx-add-retries-for-NAK-s-on-ventana-boards.patch')
-rw-r--r-- | target/linux/imx6/patches-4.4/207-i2c-imx-add-retries-for-NAK-s-on-ventana-boards.patch | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/target/linux/imx6/patches-4.4/207-i2c-imx-add-retries-for-NAK-s-on-ventana-boards.patch b/target/linux/imx6/patches-4.4/207-i2c-imx-add-retries-for-NAK-s-on-ventana-boards.patch deleted file mode 100644 index 700513ab0a..0000000000 --- a/target/linux/imx6/patches-4.4/207-i2c-imx-add-retries-for-NAK-s-on-ventana-boards.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/drivers/i2c/busses/i2c-imx.c -+++ b/drivers/i2c/busses/i2c-imx.c -@@ -468,6 +468,8 @@ static int i2c_imx_acked(struct imx_i2c_ - { - if (imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR) & I2SR_RXAK) { - dev_dbg(&i2c_imx->adapter.dev, "<%s> No ACK\n", __func__); -+ if (i2c_imx->adapter.retries) -+ return -EAGAIN; - return -ENXIO; /* No ACK */ - } - -@@ -1073,6 +1075,10 @@ static int i2c_imx_probe(struct platform - i2c_imx->adapter.nr = pdev->id; - i2c_imx->adapter.dev.of_node = pdev->dev.of_node; - i2c_imx->base = base; -+ if (of_machine_is_compatible("gw,ventana") && phy_addr == 0x021a0000) { -+ dev_info(&pdev->dev, "Adding retries for Ventana GSC\n"); -+ i2c_imx->adapter.retries = 3; -+ } - - /* Get I2C clock */ - i2c_imx->clk = devm_clk_get(&pdev->dev, NULL); |