Skip to content

omap24xx_i2c: Enable Repeated Start functionality

Aniket Limaye u-boot 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 9 repliesIn review
  2. v24 patches 6 repliesSuperseded
  3. v13 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- Fixup [PATCH 2/4] to avoid unused function __omap24_i2c_xfer_msg() compile time warnings... Move this behind DM_I2C ifdef
- Link to v2: https://lore.kernel.org/all/[email protected]/

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4i2c: omap24xx_i2c: Remove unused CONFIG_I2C_REPEATED_STARTdrivers/i2c/omap24xx_i2c.c+1 -92 replies
2/4i2c: omap24xx_i2c: Use new function __omap24_i2c_xfer_msg()drivers/i2c/omap24xx_i2c.c+123 -202 replies
3/4i2c: omap24xx_i2c: support CONFIG for repeated start in DM_I2C xferdrivers/i2c/omap24xx_i2c.c+16 -62 replies
4/4drivers: i2c: Kconfig: Add CONFIG_SYS_I2C_OMAP24XX_REPEATED_STARTdrivers/i2c/Kconfig+9 -02 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHeiko SchocherUdit Kumar
SeriesR-b
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] omap24xx_i2c: Enable Repeated Start functionality

This series implements Repeated Start functionality for the DM_I2C xfer API (omap_i2c_xfer())

First, split out the actual implementation for each individual i2c msg transfer into a new function __omap24_i2c_xfer_msg() and use this to implement omap_i2c_xfer().

Then, add support for the Repeated Start condition in omap_i2c_xfer() through the CONFIG_I2C_REPEATED_START option.

Also add this config to Kconfig and enable it for ARCH_K3 platforms by default.

Test logs (On J7200 EVM with DEBUG enabled):
https://gist.github.com/aniket-l/9124c65a85a093a5bdc4517e0f813259

---
v3:
- Fixup [PATCH 2/4] to avoid unused function __omap24_i2c_xfer_msg() compile time warnings... Move this behind DM_I2C ifdef
- Link to v2: https://lore.kernel.org/all/[email protected]/

v2:
- Add another patch to remove unused CONFIG_I2C_REPEATED_START
- use new CONFIG_SYS_I2C_OMAP24XX_REPEATED_START
- Return right error codes and update debug prints to be driver specific
- patch formatting updates
- Link to v1: https://lore.kernel.org/u-boot/[email protected]/

Aniket Limaye (4):
i2c: omap24xx_i2c: Remove unused CONFIG_I2C_REPEATED_START
i2c: omap24xx_i2c: Use new function __omap24_i2c_xfer_msg()
i2c: omap24xx_i2c: support CONFIG for repeated start in DM_I2C xfer
drivers: i2c: Kconfig: Add CONFIG_SYS_I2C_OMAP24XX_REPEATED_START

 drivers/i2c/Kconfig        |   9 ++
 drivers/i2c/omap24xx_i2c.c | 165 ++++++++++++++++++++++++++++++-------
 2 files changed, 144 insertions(+), 30 deletions(-)
Signature · 1 line
2.49.0