ath79: add support for TP-LINK Archer C7 v4
[openwrt/staging/lynxis.git] / target / linux / brcm2708 / patches-4.9 / 950-0112-i2c-bcm2835-Add-support-for-dynamic-clock.patch
index afe2b2297c64fbbbd2bbd56ca4c00cb8177d1c15..d287ae2cb7793c72a5a06e942d3b529453be6d0e 100644 (file)
@@ -56,7 +56,7 @@ Reviewed-by: Martin Sperl <kernel@martin.sperl.org>
  static void bcm2835_fill_txfifo(struct bcm2835_i2c_dev *i2c_dev)
  {
        u32 val;
-@@ -224,7 +249,7 @@ static int bcm2835_i2c_xfer(struct i2c_a
+@@ -226,7 +251,7 @@ static int bcm2835_i2c_xfer(struct i2c_a
  {
        struct bcm2835_i2c_dev *i2c_dev = i2c_get_adapdata(adap);
        unsigned long time_left;
@@ -65,7 +65,7 @@ Reviewed-by: Martin Sperl <kernel@martin.sperl.org>
  
        for (i = 0; i < (num - 1); i++)
                if (msgs[i].flags & I2C_M_RD) {
-@@ -233,6 +258,10 @@ static int bcm2835_i2c_xfer(struct i2c_a
+@@ -235,6 +260,10 @@ static int bcm2835_i2c_xfer(struct i2c_a
                        return -EOPNOTSUPP;
                }
  
@@ -76,7 +76,7 @@ Reviewed-by: Martin Sperl <kernel@martin.sperl.org>
        i2c_dev->curr_msg = msgs;
        i2c_dev->num_msgs = num;
        reinit_completion(&i2c_dev->completion);
-@@ -282,7 +311,6 @@ static int bcm2835_i2c_probe(struct plat
+@@ -284,7 +313,6 @@ static int bcm2835_i2c_probe(struct plat
  {
        struct bcm2835_i2c_dev *i2c_dev;
        struct resource *mem, *irq;
@@ -84,7 +84,7 @@ Reviewed-by: Martin Sperl <kernel@martin.sperl.org>
        int ret;
        struct i2c_adapter *adap;
  
-@@ -306,28 +334,13 @@ static int bcm2835_i2c_probe(struct plat
+@@ -308,28 +336,13 @@ static int bcm2835_i2c_probe(struct plat
        }
  
        ret = of_property_read_u32(pdev->dev.of_node, "clock-frequency",