mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
spi: mtk-snfi: Change default page format to setup default setting
Change default page format to setup default setting since the sector size 1024 on MT7986 will lead to probe fail. Signed-off-by: Xiangsheng Hou <xiangsheng.hou@mediatek.com> Link: https://lore.kernel.org/r/20230201020921.26712-2-xiangsheng.hou@mediatek.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7db738b5fe
commit
2b1e19811a
@ -1430,8 +1430,7 @@ static int mtk_snand_probe(struct platform_device *pdev)
|
||||
|
||||
// setup an initial page format for ops matching page_cache_op template
|
||||
// before ECC is called.
|
||||
ret = mtk_snand_setup_pagefmt(ms, ms->caps->sector_size,
|
||||
ms->caps->spare_sizes[0]);
|
||||
ret = mtk_snand_setup_pagefmt(ms, SZ_2K, SZ_64);
|
||||
if (ret) {
|
||||
dev_err(ms->dev, "failed to set initial page format\n");
|
||||
goto disable_clk;
|
||||
|
Loading…
Reference in New Issue
Block a user