Skip to content

i2c: qup: Add support for v2 tags and bam dma

Sricharan R linux-arm-kernel linux-arm-msm linux-devicetree linux-i2c lkml 7 versions – Applied

Status from this message: Applied to for-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest6 patches 19 repliesApplied
  2. v66 patches 2 repliesSuperseded
  3. v56 patches 5 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v47 patches8 repliesSuperseded
v36 patches9 repliesSuperseded
v26 patches2 repliesSuperseded
v16 patches10 repliesSuperseded

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/6i2c: qup: Change qup_wait_writeready function to use for all timeoutsdrivers/i2c/busses/i2c-qup.c+48 -191 reply
2/6i2c: qup: Add V2 tags supportdrivers/i2c/busses/i2c-qup.c+386 -291 reply
3/6i2c: qup: Transfer each i2c_msg in i2c_msgs without a stop bitdrivers/i2c/busses/i2c-qup.c+26 -85 replies
4/6i2c: qup: Add bam dma capabilitiesdrivers/i2c/busses/i2c-qup.c+435 -136 replies
5/6dts: msm8974: Add blsp2_bam dma nodearch/arm/boot/dts/qcom-msm8974.dtsi+11 -13 replies
6/6dts: msm8974: Add dma channels for blsp2_i2c1 nodearch/arm/boot/dts/qcom-msm8974.dtsi+2 -00 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchAndy GrossArchit TanejaTelkar Nagender
1/6R-b T-b T-b
2/6T-b T-b
3/6R-b T-b T-b
4/6R-b T-b T-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v7 thread

Cover letter [PATCH V7 0/6] i2c: qup: Add support for v2 tags and bam dma

i2c: qup: Add support for v2 tags and bam dma

QUP from version 2.1.1 onwards, supports a new format of i2c command tags. Tag codes instructs the controller to perform a operation like read/write. This new tagging version is required for adding bam dma capabilities. V2 tags supports transfer of more than 256 bytes in a single i2c transaction. Also adding bam dma support facilitates transferring each i2c_msg in i2c_msgs without a 'stop' bit in between which is required for some of the clients.

Tested this series on apq8074 dragon board eeprom client on i2c bus1

[V7] Added tested-by tags and fixed a small comment

[V6] Added review tags and fixed a checkpatch warning in patch 4/6.

[V5] Addressed few more comments from Ivan T. Ivanov.
Squashed patch 2 and 3 as no point in having only few lines of common code between v1 and v2 tags for increased complexity. Couple of non functional review comments fixes in patch 3, 4. Added a change in patch 4 to have proper transfer completion in a corner case. patch 5, 6 unchanged.

[V4] Added a patch to factor out some common code.
Removed support for freq > 400KHZ as per comments. Addressed comments from Ivan T. Ivanov to keep the code for V2 support in a separate path.
Changed the authorship of V2 tags support patch.

[V3] Added support to coalesce each i2c_msg in i2c_msgs for fifo and
block mode in Patch 2. Also addressed further code comments.

http://comments.gmane.org/gmane.linux.drivers.i2c/22497

[V2] Addressed comments from Ivan T. Ivanov, Andy Gross [v1] Initial Version

Sricharan R (6):
i2c: qup: Change qup_wait_writeready function to use for all timeouts
i2c: qup: Add V2 tags support
i2c: qup: Transfer each i2c_msg in i2c_msgs without a stop bit
i2c: qup: Add bam dma capabilities
dts: msm8974: Add blsp2_bam dma node
dts: msm8974: Add dma channels for blsp2_i2c1 node

 arch/arm/boot/dts/qcom-msm8974.dtsi |  14 +-
 drivers/i2c/busses/i2c-qup.c        | 922 ++++++++++++++++++++++++++++++++++--
 2 files changed, 887 insertions(+), 49 deletions(-)
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation