diff options
| author | Jarkko Nikula <[email protected]> | 2015-12-10 11:48:43 +0000 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2015-12-12 17:04:57 +0000 |
| commit | e79e72c5a242fa21c971cfb40017f1039daf4d77 (patch) | |
| tree | e31e0726b461d4b8a5910b58003289974e3eb32d /drivers/fpga/fpga-mgr.c | |
| parent | i2c: designware: fix IO timeout issue for AMD controller (diff) | |
| download | kernel-e79e72c5a242fa21c971cfb40017f1039daf4d77.tar.gz kernel-e79e72c5a242fa21c971cfb40017f1039daf4d77.zip | |
i2c: designware: Keep pm_runtime_enable/_disable calls in sync
On an hardware shared I2C bus (certain Intel Baytrail SoC platforms) the
runtime PM disable depth keeps increasing over repeated modprobe/rmmod
cycle because pm_runtime_disable() is called without checking should it
be disabled already because of bus sharing.
This hasn't made any other harm than dev->power.disable_depth keeps
increasing but keep it sync by calling pm_runtime_disable() only when
runtime PM is not disabled.
Reported-by: Wolfram Sang <[email protected]>
Signed-off-by: Jarkko Nikula <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
