[PATCH linux dev-5.3 12/13] mtd: spi-nor: aspeed: check upper freq limit when doing training
Cédric Le Goater
clg at kaod.org
Wed Sep 25 22:42:38 AEST 2019
Signed-off-by: Cédric Le Goater <clg at kaod.org>
---
drivers/mtd/spi-nor/aspeed-smc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/spi-nor/aspeed-smc.c b/drivers/mtd/spi-nor/aspeed-smc.c
index c6a80fdf51ef..48164d819a37 100644
--- a/drivers/mtd/spi-nor/aspeed-smc.c
+++ b/drivers/mtd/spi-nor/aspeed-smc.c
@@ -1075,7 +1075,7 @@ static int aspeed_smc_optimize_read(struct aspeed_smc_chip *chip,
/* Compare timing to max */
freq = ahb_freq / i;
- if (freq >= max_freq)
+ if (freq > max_freq)
continue;
/* Set the timing */
--
2.21.0
More information about the openbmc
mailing list