diff options
author | Gabe Black <gabeblack@google.com> | 2013-06-24 03:20:22 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-07-10 23:00:56 +0200 |
commit | f396ad5a6c5dec6c84343005a38c0931e7281e69 (patch) | |
tree | d6056b2748ea9ed2ff0a9718b1662a215a0b8e08 /src/mainboard/google | |
parent | 7c2ae7ae53ac2bc4dadc55ba5445d0556ee32251 (diff) | |
download | coreboot-f396ad5a6c5dec6c84343005a38c0931e7281e69.tar.xz |
exynos5420: i2c: Fix error handling.
The functions which checked the status of a transfer would return success if
the bus was no longer occupied, even if it's no longer occupied because the
transfer failed. This change modifies those functions to return three possible
values, 0 if the transfer isn't done, -1 if there was a fault, and 1 if the
transaction completed successfully.
Change-Id: Idcc5fdf73cab3c3ece0e96f14113a216db289e05
Signed-off-by: Gabe Black <gabeblack@chromium.org>
Reviewed-on: http://review.coreboot.org/3704
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/google')
0 files changed, 0 insertions, 0 deletions