From 75240701fe6d7df6b15205c655efdcc9f0a711f9 Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Wed, 26 Jun 2013 21:22:55 +0800 Subject: [PATCH] armv7/exynos5420: Remove the extra reopen when reading SPI. The workaround of re-opening device in exynos_spi_read has been fixed by the new correct open/close and xfer procedure. It's safe to be removed now. BUG=none TEST=emerge-peach_pit chromeos-coreboot-peach_pit; # Successfully boot on pit. BRANCH=peach_pit Change-Id: I85d80a5298bbec09b4b731e83dd7bd1d97b3e039 Reviewed-on: https://gerrit.chromium.org/gerrit/60086 Reviewed-by: David Hendricks Commit-Queue: Hung-Te Lin Tested-by: Hung-Te Lin --- src/cpu/samsung/exynos5420/spi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cpu/samsung/exynos5420/spi.c b/src/cpu/samsung/exynos5420/spi.c index 906f6a7afa..1c60378f3e 100644 --- a/src/cpu/samsung/exynos5420/spi.c +++ b/src/cpu/samsung/exynos5420/spi.c @@ -364,9 +364,6 @@ static size_t exynos_spi_cbfs_read(struct cbfs_media *media, void *dest, int bytes; DEBUG_SPI("exynos_spi_cbfs_read(%u)\n", count); bytes = exynos_spi_read(spi->slave, dest, count, offset); - // Flush and re-open the device. - spi_release_bus(spi->slave); - spi_claim_bus(spi->slave); return bytes; }