1. 15 11月, 2022 1 次提交
  2. 16 8月, 2022 1 次提交
  3. 27 7月, 2022 1 次提交
  4. 20 3月, 2022 1 次提交
    • J
      i2c: add tracepoints for I2C slave events · d714fb25
      Jae Hyun Yoo 提交于
      I2C slave events tracepoints can be enabled by:
      
      	echo 1 > /sys/kernel/tracing/events/i2c_slave/enable
      
      and logs in /sys/kernel/tracing/trace will look like:
      
      	... i2c_slave: i2c-0 a=010 ret=0 WR_REQ []
      	... i2c_slave: i2c-0 a=010 ret=0 WR_RCV [02]
      	... i2c_slave: i2c-0 a=010 ret=0 WR_RCV [0c]
      	... i2c_slave: i2c-0 a=010 ret=0   STOP []
      	... i2c_slave: i2c-0 a=010 ret=0 RD_REQ [04]
      	... i2c_slave: i2c-0 a=010 ret=0 RD_PRO [b4]
      	... i2c_slave: i2c-0 a=010 ret=0  STOP []
      
      formatted as:
      
      	i2c-<adapter_nr>
      	a=<addr>
      	ret=<ret>	<- callback return value
      	<event>
      	[<data>]
      
      trace printings can be selected by adding a filter like:
      
      	echo adapter_nr==1 >/sys/kernel/tracing/events/i2c_slave/filter
      Signed-off-by: NJae Hyun Yoo <quic_jaehyoo@quicinc.com>
      Signed-off-by: NWolfram Sang <wsa@kernel.org>
      d714fb25
  5. 13 12月, 2021 1 次提交
  6. 15 11月, 2021 2 次提交
  7. 04 11月, 2021 1 次提交
  8. 12 8月, 2021 1 次提交
  9. 25 6月, 2021 1 次提交
  10. 07 6月, 2021 1 次提交
  11. 29 5月, 2021 1 次提交
  12. 11 4月, 2021 4 次提交
  13. 09 4月, 2021 1 次提交
  14. 06 4月, 2021 1 次提交
  15. 21 9月, 2020 1 次提交
  16. 05 8月, 2020 1 次提交
    • C
      i2c: core: add generic I2C GPIO recovery · 75820314
      Codrin Ciubotariu 提交于
      Multiple I2C bus drivers use similar bindings to obtain information needed
      for I2C recovery. For example, for platforms using device-tree, the
      properties look something like this:
      
      &i2c {
      	...
      	pinctrl-names = "default", "gpio";
      	pinctrl-0 = <&pinctrl_i2c_default>;
      	pinctrl-1 = <&pinctrl_i2c_gpio>;
      	sda-gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
      	scl-gpios = <&pio 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
      	...
      }
      
      For this reason, we can add this common initialization in the core. This
      way, other I2C bus drivers will be able to support GPIO recovery just by
      providing a pointer to platform's pinctrl and calling i2c_recover_bus()
      when SDA is stuck low.
      Signed-off-by: NCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
      [wsa: inverted one logic for better readability, minor update to kdoc]
      Signed-off-by: NWolfram Sang <wsa@kernel.org>
      75820314
  17. 28 7月, 2020 1 次提交
  18. 25 7月, 2020 1 次提交
  19. 22 7月, 2020 1 次提交
  20. 19 6月, 2020 1 次提交
  21. 29 5月, 2020 1 次提交
  22. 22 5月, 2020 1 次提交
  23. 20 5月, 2020 1 次提交
  24. 05 5月, 2020 1 次提交
  25. 15 4月, 2020 1 次提交
  26. 25 3月, 2020 1 次提交
  27. 23 3月, 2020 1 次提交
  28. 17 12月, 2019 1 次提交
  29. 11 12月, 2019 3 次提交
  30. 29 11月, 2019 1 次提交
  31. 16 11月, 2019 1 次提交
  32. 25 10月, 2019 1 次提交
  33. 14 8月, 2019 1 次提交
    • W
      i2c: replace i2c_new_secondary_device with an ERR_PTR variant · af80559b
      Wolfram Sang 提交于
      In the general move to have i2c_new_*_device functions which return
      ERR_PTR instead of NULL, this patch converts i2c_new_secondary_device().
      
      There are only few users, so this patch converts the I2C core and all
      users in one go. The function gets renamed to i2c_new_ancillary_device()
      so out-of-tree users will get a build failure to understand they need to
      adapt their error checking code.
      Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
      Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> # adv748x
      Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> # adv7511 + adv7604
      Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> # adv7604
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      af80559b
  34. 01 8月, 2019 1 次提交