Skip to content

Fix Marvell mv63xxx I2C driver

Russell King - ARM Linux linux-arm-kernel linux-i2c 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 of 9 patches 0 repliesNew

3 of 9 patches are in this archive. The cover letter announces 9.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9I2C: mv64xxx: work around signals causing I2C transactions to be aborted+0 -00 replies
3/9I2C: mv64xxx: use devm_ioremap_resource()+0 -00 replies
9/9I2C: mv64xxx: fix race between FSM/interrupt and process context+0 -01 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMark A. Greer
SeriesA-b
1/9
3/9
9/9

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

Read the v1 thread

Cover letter [PATCH 0/9] Fix Marvell mv63xxx I2C driver

This patch series fixes a whole chunk of problems with this driver, discovered with the Marvell Armada 510 chip on the Solid-run cubox.

Most notable of these is the I2C driver aborting a transaction because a signal is pending - which might be SIGPIPE or SIGALRM for the process. Meanwhile, the calling driver may be in the middle of a critical read-modify-write cycle on a device register, causing it to fail.

Other problems are race conditions in the handling of multi-part messages, where we end up sending multiple start conditions - sometimes more times than we have i2c_msg's to send.

Lastly is the rather poor probe error handling, which ranges from non-existent to lacking propagating the provided error code.