File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ static int w25n02kv_ecc_get_status(struct spinand_device *spinand,
108
108
{
109
109
struct nand_device * nand = spinand_to_nand (spinand );
110
110
u8 mbf = 0 ;
111
- struct spi_mem_op op = SPINAND_GET_FEATURE_OP (0x30 , & mbf );
111
+ struct spi_mem_op op = SPINAND_GET_FEATURE_OP (0x30 , spinand -> scratchbuf );
112
112
113
113
switch (status & STATUS_ECC_MASK ) {
114
114
case STATUS_ECC_NO_BITFLIPS :
@@ -126,7 +126,7 @@ static int w25n02kv_ecc_get_status(struct spinand_device *spinand,
126
126
if (spi_mem_exec_op (spinand -> spimem , & op ))
127
127
return nanddev_get_ecc_conf (nand )-> strength ;
128
128
129
- mbf >>= 4 ;
129
+ mbf = * ( spinand -> scratchbuf ) >> 4 ;
130
130
131
131
if (WARN_ON (mbf > nanddev_get_ecc_conf (nand )-> strength || !mbf ))
132
132
return nanddev_get_ecc_conf (nand )-> strength ;
You can’t perform that action at this time.
0 commit comments