summaryrefslogtreecommitdiff
path: root/src/cpu/samsung/exynos5420/cpu.c
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2013-06-24 03:20:22 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-07-10 23:00:56 +0200
commitf396ad5a6c5dec6c84343005a38c0931e7281e69 (patch)
treed6056b2748ea9ed2ff0a9718b1662a215a0b8e08 /src/cpu/samsung/exynos5420/cpu.c
parent7c2ae7ae53ac2bc4dadc55ba5445d0556ee32251 (diff)
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/cpu/samsung/exynos5420/cpu.c')
0 files changed, 0 insertions, 0 deletions