Skip to content

i2c: enable buses to save their clock frequency in adapter

[email protected] linux-arm-kernel linux-i2c lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v1 posting 3/32 patches 1 replySuperseded
  3. v1 posting 2/32 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 posting 1/32 patches0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2i2c: enable buses to save their clock frequency in adapterinclude/linux/i2c.h+1 -01 reply
2/2i2c: at91: Save the bus clock frequency in adapterdrivers/i2c/busses/i2c-at91.c+1 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchLudovic Desroches
1/2R-b
2/2A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] i2c: enable buses to save their clock frequency in adapter

From: Tudor Ambarus <[email protected]>

The clock-frequency property is not mandatory for the i2c buses. If it's not present in the device tree, the buses __usually__ assume it's 100kHZ (see altera, at91, axxia, etc.). Broadcom uses a 375kHZ default clock-frequency, so the default clock frequency varies from bus to bus.

There are i2c clients that need to know the bus clock frequency in order to compute their wake token (see atecc508a i2c client).

The clock-frequency value has to be propagated to the i2c clients, otherwise, if they will not find the i2c bus clock frequency in the device tree, they will have to make their own assumption of the clock frequency.

Spare the i2c clients of making wrong assumptions of the i2c bus clock frequency and enable the buses to save their clock frequency in adapter.

v2: fix typo in R-b tag
since rfc: reword commit messages

Tudor Ambarus (2):
i2c: enable buses to save their clock frequency in adapter
i2c: at91: Save the bus clock frequency in adapter

 drivers/i2c/busses/i2c-at91.c | 1 +
 include/linux/i2c.h           | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
2.9.4