Skip to content
Commit 87e7219f authored by Bin Meng's avatar Bin Meng Committed by Jagan Teki
Browse files

mtd: spi-nor: Respect flash's hwcaps in spi_nor_adjust_hwcaps()



The smart spi_nor_adjust_hwcaps() does not respect the SPI flash's
hwcaps, and only looks to the controller on what can be supported.

The flash's hwcaps needs to be AND'ed before checking.

Fixes: 71025f01 ("mtd: spi-nor-core: Rework hwcaps selection")
Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarPratyush Yadav <p.yadav@ti.com>
Reviewed-by: default avatarJagan Teki <jagan@amarulasolutions.com>
parent cb42425a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment