aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-02-22 14:55:18 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2016-02-22 14:55:18 -0500
commit7ee302f6f770712a54060928ee3390f6572655bc (patch)
tree6e478cbfbe00eb9c396f20042cc78603292dbddb
parent81f70ba233d5f660e1ea5fe23260ee323af5d53a (diff)
parent1a1503c5396eb7f2edf4b8ef6067853014478c0c (diff)
Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c fixes from Wolfram Sang: "Some bugfixes from I2C for you: A fix for a RuntimePM regression with OMAP, a fix to enable TCO for Lewisburg platforms, and a typo fix while we are here" * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: i2c: i801: Adding Intel Lewisburg support for iTCO i2c: uniphier: fix typos in error messages i2c: omap: Fix PM regression with deferred probe for pm_runtime_reinit
-rw-r--r--drivers/i2c/busses/i2c-i801.c2
-rw-r--r--drivers/i2c/busses/i2c-omap.c4
-rw-r--r--drivers/i2c/busses/i2c-uniphier-f.c2
-rw-r--r--drivers/i2c/busses/i2c-uniphier.c2
4 files changed, 7 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index f62d69799a9c..27fa0cb09538 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -1271,6 +1271,8 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)
1271 switch (dev->device) { 1271 switch (dev->device) {
1272 case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS: 1272 case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS:
1273 case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS: 1273 case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS:
1274 case PCI_DEVICE_ID_INTEL_LEWISBURG_SMBUS:
1275 case PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS:
1274 case PCI_DEVICE_ID_INTEL_DNV_SMBUS: 1276 case PCI_DEVICE_ID_INTEL_DNV_SMBUS:
1275 priv->features |= FEATURE_I2C_BLOCK_READ; 1277 priv->features |= FEATURE_I2C_BLOCK_READ;
1276 priv->features |= FEATURE_IRQ; 1278 priv->features |= FEATURE_IRQ;
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 08d26ba61ed3..13c45296ce5b 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -1450,7 +1450,8 @@ omap_i2c_probe(struct platform_device *pdev)
1450 1450
1451err_unuse_clocks: 1451err_unuse_clocks:
1452 omap_i2c_write_reg(omap, OMAP_I2C_CON_REG, 0); 1452 omap_i2c_write_reg(omap, OMAP_I2C_CON_REG, 0);
1453 pm_runtime_put(omap->dev); 1453 pm_runtime_dont_use_autosuspend(omap->dev);
1454 pm_runtime_put_sync(omap->dev);
1454 pm_runtime_disable(&pdev->dev); 1455 pm_runtime_disable(&pdev->dev);
1455err_free_mem: 1456err_free_mem:
1456 1457
@@ -1468,6 +1469,7 @@ static int omap_i2c_remove(struct platform_device *pdev)
1468 return ret; 1469 return ret;
1469 1470
1470 omap_i2c_write_reg(omap, OMAP_I2C_CON_REG, 0); 1471 omap_i2c_write_reg(omap, OMAP_I2C_CON_REG, 0);
1472 pm_runtime_dont_use_autosuspend(&pdev->dev);
1471 pm_runtime_put_sync(&pdev->dev); 1473 pm_runtime_put_sync(&pdev->dev);
1472 pm_runtime_disable(&pdev->dev); 1474 pm_runtime_disable(&pdev->dev);
1473 return 0; 1475 return 0;
diff --git a/drivers/i2c/busses/i2c-uniphier-f.c b/drivers/i2c/busses/i2c-uniphier-f.c
index f3e5ff8522f0..213ba55e17c3 100644
--- a/drivers/i2c/busses/i2c-uniphier-f.c
+++ b/drivers/i2c/busses/i2c-uniphier-f.c
@@ -467,7 +467,7 @@ static int uniphier_fi2c_clk_init(struct device *dev,
467 bus_speed = UNIPHIER_FI2C_DEFAULT_SPEED; 467 bus_speed = UNIPHIER_FI2C_DEFAULT_SPEED;
468 468
469 if (!bus_speed) { 469 if (!bus_speed) {
470 dev_err(dev, "clock-freqyency should not be zero\n"); 470 dev_err(dev, "clock-frequency should not be zero\n");
471 return -EINVAL; 471 return -EINVAL;
472 } 472 }
473 473
diff --git a/drivers/i2c/busses/i2c-uniphier.c b/drivers/i2c/busses/i2c-uniphier.c
index 1f4f3f53819c..89eaa8a7e1e0 100644
--- a/drivers/i2c/busses/i2c-uniphier.c
+++ b/drivers/i2c/busses/i2c-uniphier.c
@@ -328,7 +328,7 @@ static int uniphier_i2c_clk_init(struct device *dev,
328 bus_speed = UNIPHIER_I2C_DEFAULT_SPEED; 328 bus_speed = UNIPHIER_I2C_DEFAULT_SPEED;
329 329
330 if (!bus_speed) { 330 if (!bus_speed) {
331 dev_err(dev, "clock-freqyency should not be zero\n"); 331 dev_err(dev, "clock-frequency should not be zero\n");
332 return -EINVAL; 332 return -EINVAL;
333 } 333 }
334 334