Skip to content

i2c-i801: Various cleanups

[email protected] linux-i2c lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest10 patches 13 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10i2c-i801: Remove hwpec from block byte-by-byte functiondrivers/i2c/busses/i2c-i801.c+2 -31 reply
2/10i2c-i801: Move hostcfg set/reset to i801_access()drivers/i2c/busses/i2c-i801.c+19 -222 replies
3/10i2c-i801: Move hwpec handling into block transactiondrivers/i2c/busses/i2c-i801.c+25 -221 reply
4/10i2c-i801: Consolidate calls to i801_check_pre()drivers/i2c/busses/i2c-i801.c+4 -82 replies
5/10i2c-i801: Consolidate calls to i801_check_postdrivers/i2c/busses/i2c-i801.c+25 -262 replies
6/10i2c-i801: Pass around a boolean read/write variabledrivers/i2c/busses/i2c-i801.c+24 -271 reply
7/10i2c-i801: Fix some inconsistent variable namesdrivers/i2c/busses/i2c-i801.c+14 -152 replies
8/10i2c-i801: Handle a protocol error in byte-by-byte isrdrivers/i2c/busses/i2c-i801.c+16 -111 reply
9/10i2c-i801: Null isr data buffer when done with itdrivers/i2c/busses/i2c-i801.c+1 -01 reply
10/10i2c-i801: Only write the host control reg when necessarydrivers/i2c/busses/i2c-i801.c+3 -30 replies

Reviews trailers per patch

3 of 10 patches have a Reviewed-by or Acked-by.

PatchBenjamin Tissoires
1/10R-b
2/10R-b
3/10
4/10
5/10
6/10
7/10
8/10
9/10R-b
10/10

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 00/10] i2c-i801: Various cleanups

This is a new set that is fairly different than the old set, though it fixes a lot of the same issues, and some new ones I noticed.

I did not do the consolidation of the isr and non-isr byte-by-byte handling, based on Jean's comments.

I tested this on qemu (including returning a bad number of bytes to cause a protocol error) with all four combinations of block/byte-by-byte and interrupts/polled.

I also tested all those combinations on an Intel Chesnee board.

I do not know aobut hwpec, so I assumed it doesn't work on byte-by-byte transactions. I'm not quite sure how to test that.

Feel free to say if you like or don't like certain changes, and I will rework as necessary, of course.

-corey