Merge "drivers: mtd: nand: Extract the Status register value"

This commit is contained in:
Linux Build Service Account 2022-01-27 10:08:51 -08:00 committed by Gerrit - the friendly Code Review server
commit fdd40cf3fd

View file

@ -1421,6 +1421,7 @@ int qpic_spi_nand_config(struct mtd_info *mtd)
if ((status >> 8) & FLASH_SPI_NAND_FR_ECC_ENABLE) {
qspi_debug("%s : Internal ECC enabled, disabling internal ECC\n",__func__);
status >>= 8;
status &= ~(FLASH_SPI_NAND_FR_ECC_ENABLE);
status = qpic_serial_set_feature(mtd, FLASH_SPI_NAND_FR_ADDR,
status);