sb/intel/common: SMBus execute_command()
commita2dcf735e4dcfe23f641344c4808f31be9f7f9d2
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Sun, 20 Aug 2017 18:36:15 +0000 (20 21:36 +0300)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 24 Jan 2019 13:37:46 +0000 (24 13:37 +0000)
tree44b12afa90daff3955f24421be39de61dddc4831
parent957511cd9235f0cabaf61d3ea275a9ed69d2dc45
sb/intel/common: SMBus execute_command()

Implement the common start of transaction.

Fixes a problem where smbus_wait_until_active()
can miss SMBHSTSTS_HOST_BUSY being set, if
transaction completes very fast. Or if we are
single-stepping or executing under SerialIce
emulation.

Change-Id: Icb27d7d6a1c54968950ca292dbae05415f97e461
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/21119
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
src/southbridge/intel/common/smbus.c