Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33225 )
Change subject: soc/intel/braswell/smbus.c: Add support for i2c mode block write
......................................................................
Patch Set 9:
Patch Set 9:
(1 comment)
my goal is having SMBus i2c support merged in coreboot, but I get comments which points to different ways.
To avoid accessing smbus registers before 'checking ready' I suggest creating do_i2c_block_write() in SB/intel/common.
I agree, you can still pass just the array of bytes to send (with count) as arguments, drop the separate offset, thus making a clean API. You can then write both CMD and DAT1 in the new implementation with sufficient commentary.
BTW: Was it actually documented for Braswell like that, such that both registers have to be written, or was this trial-and-error? Really sounds like errata to me.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/33225
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I50c1a03f624b3ab3b987d4f3b1d15dac4374e48a
Gerrit-Change-Number: 33225
Gerrit-PatchSet: 9
Gerrit-Owner: Frans Hendriks
fhendriks@eltan.com
Gerrit-Reviewer: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Reviewer: David Hendricks
david.hendricks@gmail.com
Gerrit-Reviewer: Felix Held
felix-coreboot@felixheld.de
Gerrit-Reviewer: Frans Hendriks
fhendriks@eltan.com
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Philipp Deppenwiese
zaolin.daisuki@gmail.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Mon, 17 Jun 2019 13:19:56 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment