1. 27 May, 2021 1 commit
  2. 03 Dec, 2020 1 commit
  3. 03 Nov, 2020 1 commit
  4. 15 Jan, 2020 1 commit
  5. 29 Aug, 2019 1 commit
  6. 14 Jun, 2019 2 commits
  7. 16 Apr, 2019 2 commits
  8. 24 Feb, 2019 1 commit
  9. 14 Feb, 2019 7 commits
  10. 24 Aug, 2018 1 commit
  11. 29 May, 2018 2 commits
    • Peter Rosin's avatar
      i2c: busses: make use of i2c_8bit_addr_from_msg · 30a64757
      Peter Rosin authored
      
      
      Because it looks neater.
      
      For diolan, this allows factoring out some code that is now common
      between if and else.
      
      For eg20t, pch_i2c_writebytes is always called with a write in
      msgs->flags, and pch_i2c_readbytes with a read.
      
      For imx, i2c_imx_dma_write and i2c_imx_write are always called with a
      write in msgs->flags, and i2c_imx_read with a read.
      
      For qup, qup_i2c_write_tx_fifo_v1 is always called with a write in
      qup->msg->flags.
      
      For stu300, also restructure debug output for resends, since that
      code as a result is only handling debug output.
      
      Reviewed-by: Guenter Roeck <linux@roeck-us.net> [diolan]
      Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> [efm32 and imx]
      Acked-by: Linus Walleij <linus.walleij@linaro.org> [stu300]
      Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      30a64757
    • Federico Vaga's avatar
      i2c: ocores: update HDL sources URL · a0ccb6b5
      Federico Vaga authored
      
      
      The URL is broken. This patch fixes it.
      Signed-off-by: default avatarFederico Vaga <federico.vaga@vaga.pv.it>
      [wsa: shortened the URL a bit]
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      a0ccb6b5
  12. 17 May, 2018 1 commit
  13. 29 Aug, 2017 1 commit
  14. 22 Aug, 2016 1 commit
  15. 14 Aug, 2016 1 commit
  16. 11 Apr, 2016 1 commit
  17. 20 Oct, 2015 1 commit
  18. 20 Feb, 2015 1 commit
  19. 05 Feb, 2015 2 commits
  20. 20 Oct, 2014 1 commit
  21. 16 Jul, 2014 1 commit
    • Wolfram Sang's avatar
      i2c: i2c-ocores: Drop class based scanning to improve bootup time · 1ce97e07
      Wolfram Sang authored
      
      
      This driver has been flagged to drop class based instantiation. The removal
      improves boot-up time and is unneeded for embedded controllers. Users have been
      warned to switch for some time now, so we can actually do the removal. Keep the
      DEPRECATED flag, so the core can inform users that the behaviour finally
      changed now. After another transition period, this flag can go, too.
      While we are here, remove the indentation for the array setup because
      such things always break after some time.
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      Acked-by: default avatarPeter Korsgaard <peter@korsgaard.com>
      1ce97e07
  22. 02 Jun, 2014 1 commit
  23. 05 Mar, 2014 1 commit
  24. 24 Jan, 2014 1 commit
  25. 23 Aug, 2013 1 commit
    • Wolfram Sang's avatar
      i2c: move OF helpers into the core · 687b81d0
      Wolfram Sang authored
      
      
      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: default avatarWolfram Sang <wsa@the-dreams.de>
      687b81d0
  26. 19 Aug, 2013 1 commit
  27. 15 Aug, 2013 2 commits
    • Julia Lawall's avatar
      drivers/i2c/busses/i2c-ocores.c: simplify use of devm_ioremap_resource · b7d12a86
      Julia Lawall authored
      Remove unneeded error handling on the result of a call to
      platform_get_resource when the value is passed to devm_ioremap_resource.
      
      Move the call to platform_get_resource adjacent to the call to
      devm_ioremap_resource to make the connection between them more clear.
      
      A simplified version of the semantic patch that makes this change is as
      follows: (http://coccinelle.lip6.fr/
      
      )
      
      // <smpl>
      @@
      expression pdev,res,n,e,e1;
      expression ret != 0;
      identifier l;
      @@
      
      - res = platform_get_resource(pdev, IORESOURCE_MEM, n);
        ... when != res
      - if (res == NULL) { ... \(goto l;\|return ret;\) }
        ... when != res
      + res = platform_get_resource(pdev, IORESOURCE_MEM, n);
        e = devm_ioremap_resource(e1, res);
      // </smpl>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      b7d12a86
    • Jingoo Han's avatar
      i2c: ocores: add CONFIG_PM_SLEEP to suspend/resume functions · f076e916
      Jingoo Han authored
      
      
      Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following
      build warning when CONFIG_PM_SLEEP is not selected. This is because
      sleep PM callbacks defined by SIMPLE_DEV_PM_OPS are only used when
      the CONFIG_PM_SLEEP is enabled.
      
      drivers/i2c/busses/i2c-ocores.c:460:12: warning: 'ocores_i2c_suspend' defined but not used [-Wunused-function]
      drivers/i2c/busses/i2c-ocores.c:471:12: warning: 'ocores_i2c_resume' defined but not used [-Wunused-function]
      Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      f076e916
  28. 21 Feb, 2013 2 commits