1. 31 5月, 2018 1 次提交
    • D
      i2c: tegra: Remove suspend-resume · 535ba904
      Dmitry Osipenko 提交于
      Nothing prevents I2C clients to access I2C while Tegra's driver is being
      suspended, this results in -EBUSY error returned to the clients and that
      may have unfortunate consequences. In particular this causes problems
      for the TPS6586x MFD driver which emits hundreds of "failed to read
      interrupt status" error messages on resume from suspend. This happens if
      TPS6586X is used to wake system from suspend by the expired RTC alarm
      timer because TPS6586X is an I2C device driver and its IRQ handler reads
      the status register while Tegra's I2C driver is suspended, i.e. just after
      kernel enabled IRQ's during of resume-from-suspend process.
      
      Note that the removed tegra_i2c_resume() invoked tegra_i2c_init() which
      performs HW reset. That seems was also not entirely correct because moving
      tegra_i2c_resume to an earlier stage of resume-from-suspend process causes
      I2C transfer to fail in the case of TPS6586X. It is fine to remove the
      HW-reinitialization for now because it should be only needed in a case of
      using lowest power-mode during suspend, which upstream kernel doesn't
      support.
      Signed-off-by: NDmitry Osipenko <digetx@gmail.com>
      Acked-by: NLaxman Dewangan <ldewangan@nvidia.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      535ba904
  2. 30 8月, 2017 1 次提交
  3. 15 8月, 2017 1 次提交
    • P
      i2c: tegra: explicitly request exclusive reset control · 94d3b651
      Philipp Zabel 提交于
      Commit a53e35db ("reset: Ensure drivers are explicit when requesting
      reset lines") started to transition the reset control request API calls
      to explicitly state whether the driver needs exclusive or shared reset
      control behavior. Convert all drivers requesting exclusive resets to the
      explicit API call so the temporary transition helpers can be removed.
      
      No functional changes.
      
      Cc: Laxman Dewangan <ldewangan@nvidia.com>
      Cc: Wolfram Sang <wsa@the-dreams.de>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Jonathan Hunter <jonathanh@nvidia.com>
      Cc: linux-i2c@vger.kernel.org
      Cc: linux-tegra@vger.kernel.org
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      94d3b651
  4. 09 9月, 2016 6 次提交
  5. 31 8月, 2016 9 次提交
  6. 22 8月, 2016 1 次提交
  7. 05 7月, 2016 1 次提交
  8. 11 5月, 2016 1 次提交
  9. 13 4月, 2016 1 次提交
    • S
      i2c: tegra: enable multi master mode for tegra210 · 497fbe24
      Shardar Shariff Md 提交于
      Enable multi-master mode in I2C_CNFG reg based on hw features.
      Using single/multi-master mode bit introduced for Tegra210,
      whereas multi-master mode is enabled by default in HW for T124 and
      earlier Tegra SOC. Enabling this bit doesn't explicitly start
      treating the bus has having multiple masters, but will start
      checking for arbitration lost and reporting when it occurs.
      
      The Tegra210 I2C controller supports single/multi master mode.
      Add chipdata for Tegra210 and its compatibility string so that
      Tegra210 will select data that enables multi master mode correctly.
      
      Do below prerequisites for multi-master bus if "multi-master"
      dt property entry is added.
       1. Enable 1st level clock always set.
       2. Disable 2nd level clock gating (slcg which
          is supported from T124 SOC and later chips)
      Signed-off-by: NShardar Shariff Md <smohammed@nvidia.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      497fbe24
  10. 24 2月, 2016 1 次提交
  11. 20 10月, 2015 1 次提交
  12. 10 8月, 2015 2 次提交
  13. 22 6月, 2015 2 次提交
  14. 15 3月, 2015 1 次提交
  15. 27 1月, 2015 1 次提交
  16. 20 10月, 2014 1 次提交
  17. 20 9月, 2014 1 次提交
  18. 17 7月, 2014 1 次提交
  19. 03 6月, 2014 1 次提交
  20. 06 3月, 2014 1 次提交
  21. 12 12月, 2013 1 次提交
  22. 15 11月, 2013 1 次提交
  23. 23 8月, 2013 1 次提交
    • W
      i2c: move OF helpers into the core · 687b81d0
      Wolfram Sang 提交于
      I2C of helpers used to live in of_i2c.c but experience (from SPI) shows
      that it is much cleaner to have this in the core. This also removes a
      circular dependency between the helpers and the core, and so we can
      finally register child nodes in the core instead of doing this manually
      in each driver. So, fix the drivers and documentation, too.
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      687b81d0
  24. 18 5月, 2013 1 次提交
  25. 24 3月, 2013 1 次提交