[1/3] spi: atmel: Drop CONFIG_SYS_SPI_WRITE_TOUT

Message ID 20200527190002.202913-1-jagan@amarulasolutions.com
State New
Headers show
Series
  • [1/3] spi: atmel: Drop CONFIG_SYS_SPI_WRITE_TOUT
Related show

Commit Message

Jagan Teki May 27, 2020, 7 p.m. UTC
Drop CONFIG_SYS_SPI_WRITE_TOUT there is no code usage.

Cc: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 drivers/spi/atmel_spi.h      | 4 ----
 scripts/config_whitelist.txt | 1 -
 2 files changed, 5 deletions(-)

Comments

Jagan Teki June 11, 2020, 8:42 a.m. UTC | #1
On Thu, May 28, 2020 at 12:30 AM Jagan Teki <jagan@amarulasolutions.com> wrote:
>
> Drop CONFIG_SYS_SPI_WRITE_TOUT there is no code usage.
>
> Cc: Wenyou Yang <wenyou.yang@atmel.com>
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> ---

Applied to u-boot-spi/master

Patch

diff --git a/drivers/spi/atmel_spi.h b/drivers/spi/atmel_spi.h
index 6167bd164b..b602887c29 100644
--- a/drivers/spi/atmel_spi.h
+++ b/drivers/spi/atmel_spi.h
@@ -95,7 +95,3 @@  static inline struct atmel_spi_slave *to_atmel_spi(struct spi_slave *slave)
 	readl(as->regs + ATMEL_SPI_##reg)
 #define spi_writel(as, reg, value)				\
 	writel(value, as->regs + ATMEL_SPI_##reg)
-
-#if !defined(CONFIG_SYS_SPI_WRITE_TOUT)
-#define CONFIG_SYS_SPI_WRITE_TOUT	(5 * CONFIG_SYS_HZ)
-#endif
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 92e202e5aa..761da1aef6 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -3816,7 +3816,6 @@  CONFIG_SYS_SPI_MXC_WAIT
 CONFIG_SYS_SPI_RTC_DEVID
 CONFIG_SYS_SPI_ST_ENABLE_WP_PIN
 CONFIG_SYS_SPI_U_BOOT_SIZE
-CONFIG_SYS_SPI_WRITE_TOUT
 CONFIG_SYS_SPL_ARGS_ADDR
 CONFIG_SYS_SPL_LEN
 CONFIG_SYS_SPL_MALLOC_SIZE