2019-11-01 03:11:32 +00:00
|
|
|
From 9cca9b3e55989f8b227d05897877648d67910a6d Mon Sep 17 00:00:00 2001
|
|
|
|
From: Guochun Mao <guochun.mao@mediatek.com>
|
|
|
|
Date: Wed, 16 Jan 2019 10:12:04 +0800
|
|
|
|
Subject: [PATCH] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ to
|
|
|
|
spi_nor_hwcaps mask
|
|
|
|
|
|
|
|
SNOR_HWCAPS_READ should be supported by this controller, so add this
|
|
|
|
flag to spi_nor_hwcaps mask.
|
|
|
|
|
|
|
|
Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
|
|
|
|
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
|
|
|
|
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
|
|
|
|
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
|
|
|
|
---
|
|
|
|
drivers/mtd/spi-nor/mtk-quadspi.c | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
--- a/drivers/mtd/spi-nor/mtk-quadspi.c
|
|
|
|
+++ b/drivers/mtd/spi-nor/mtk-quadspi.c
|
2019-11-06 16:19:11 +00:00
|
|
|
@@ -431,7 +431,8 @@ static int mtk_nor_init(struct mtk_nor *
|
2019-11-01 03:11:32 +00:00
|
|
|
struct device_node *flash_node)
|
|
|
|
{
|
|
|
|
const struct spi_nor_hwcaps hwcaps = {
|
|
|
|
- .mask = SNOR_HWCAPS_READ_FAST |
|
|
|
|
+ .mask = SNOR_HWCAPS_READ |
|
|
|
|
+ SNOR_HWCAPS_READ_FAST |
|
|
|
|
SNOR_HWCAPS_READ_1_1_2 |
|
|
|
|
SNOR_HWCAPS_PP,
|
|
|
|
};
|