Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1378811

[PATCH 4/4] i2c: designware: remove runtime suspend prevention during registration

From Jisheng Zhang <jszhang@marvell.com>
Newsgroups linux.kernel
Subject [PATCH 4/4] i2c: designware: remove runtime suspend prevention during registration
Date 2016-04-14 15:00 +0200
Message-ID <rnP2j-1K8-13@gated-at.bofh.it> (permalink)
References <rnP2i-1K8-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Now all users make sure there won't be runtime suspend when calling
i2c_dw_probe(), so we can remove the prevention code now.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
 drivers/i2c/busses/i2c-designware-core.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/i2c/busses/i2c-designware-core.c b/drivers/i2c/busses/i2c-designware-core.c
index 99b54be..4255eaa 100644
--- a/drivers/i2c/busses/i2c-designware-core.c
+++ b/drivers/i2c/busses/i2c-designware-core.c
@@ -881,17 +881,9 @@ int i2c_dw_probe(struct dw_i2c_dev *dev)
 		return r;
 	}
 
-	/*
-	 * Increment PM usage count during adapter registration in order to
-	 * avoid possible spurious runtime suspend when adapter device is
-	 * registered to the device core and immediate resume in case bus has
-	 * registered I2C slaves that do I2C transfers in their probe.
-	 */
-	pm_runtime_get_noresume(dev->dev);
 	r = i2c_add_numbered_adapter(adap);
 	if (r)
 		dev_err(dev->dev, "failure adding adapter: %d\n", r);
-	pm_runtime_put_noidle(dev->dev);
 
 	return r;
 }
-- 
2.8.0.rc3

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] i2c: designware: runtime pm fix and improve Jisheng Zhang <jszhang@marvell.com> - 2016-04-14 15:00 +0200
  [PATCH 3/4] i2c: designware-pcidrv: enable RuntimePM before registering to the core Jisheng Zhang <jszhang@marvell.com> - 2016-04-14 15:00 +0200
  [PATCH 4/4] i2c: designware: remove runtime suspend prevention during registration Jisheng Zhang <jszhang@marvell.com> - 2016-04-14 15:00 +0200

csiph-web