]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Merge tag 'topic/designware-baytrail-2017-03-02' of git://anongit.freedesktop.org...
authorWolfram Sang <wsa@the-dreams.de>
Wed, 22 Mar 2017 08:32:44 +0000 (09:32 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 22 Mar 2017 08:32:44 +0000 (09:32 +0100)
Pull immutable branch as a common base for further development:

"Baytrail PMIC vs. PMU race fixes from Hans de Goede

This time the right version (v4), with the compile fix."

1  2 
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_uncore.c
drivers/i2c/busses/i2c-designware-core.c
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-platdrv.c

Simple merge
Simple merge
Simple merge
index 79c4b4ea053969e46226dc749fb12a5b59c3ac2c,df0ff7d82b497cdaf2073734b00930d541cfd30b..d8665098dce9d0536b0fcb957bea01e590008ece
@@@ -244,13 -235,12 +244,13 @@@ static int dw_i2c_plat_probe(struct pla
            && dev->clk_freq != 1000000 && dev->clk_freq != 3400000) {
                dev_err(&pdev->dev,
                        "Only 100kHz, 400kHz, 1MHz and 3.4MHz supported");
 -              return -EINVAL;
 +              r = -EINVAL;
 +              goto exit_reset;
        }
  
-       r = i2c_dw_eval_lock_support(dev);
+       r = i2c_dw_probe_lock_support(dev);
        if (r)
 -              return r;
 +              goto exit_reset;
  
        dev->functionality = I2C_FUNC_10BIT_ADDR | DW_IC_DEFAULT_FUNCTIONALITY;
  
@@@ -324,9 -306,9 +324,11 @@@ static int dw_i2c_plat_remove(struct pl
        pm_runtime_put_sync(&pdev->dev);
        if (!dev->pm_runtime_disabled)
                pm_runtime_disable(&pdev->dev);
 +      if (!IS_ERR_OR_NULL(dev->rst))
 +              reset_control_assert(dev->rst);
  
+       i2c_dw_remove_lock_support(dev);
        return 0;
  }