.. | .. |
---|
73 | 73 | { |
---|
74 | 74 | struct nand_device *nand = spinand_to_nand(spinand); |
---|
75 | 75 | u8 mbf = 0; |
---|
76 | | - struct spi_mem_op op = SPINAND_GET_FEATURE_OP(0x30, &mbf); |
---|
| 76 | + struct spi_mem_op op = SPINAND_GET_FEATURE_OP(0x30, spinand->scratchbuf); |
---|
77 | 77 | |
---|
78 | 78 | switch (status & STATUS_ECC_MASK) { |
---|
79 | 79 | case STATUS_ECC_NO_BITFLIPS: |
---|
.. | .. |
---|
92 | 92 | if (spi_mem_exec_op(spinand->spimem, &op)) |
---|
93 | 93 | return nanddev_get_ecc_requirements(nand)->strength; |
---|
94 | 94 | |
---|
95 | | - mbf >>= 4; |
---|
| 95 | + mbf = *(spinand->scratchbuf) >> 4; |
---|
96 | 96 | |
---|
97 | 97 | if (WARN_ON(mbf > nanddev_get_ecc_requirements(nand)->strength || !mbf)) |
---|
98 | 98 | return nanddev_get_ecc_requirements(nand)->strength; |
---|