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 @@ -73,7 +73,7 @@ static int tx58cxgxsxraix_ecc_get_status(struct spinand_device *spinand,
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,7 +92,7 @@ static int tx58cxgxsxraix_ecc_get_status(struct spinand_device *spinand,
92
92
if (spi_mem_exec_op (spinand -> spimem , & op ))
93
93
return nanddev_get_ecc_conf (nand )-> strength ;
94
94
95
- mbf >>= 4 ;
95
+ mbf = * ( spinand -> scratchbuf ) >> 4 ;
96
96
97
97
if (WARN_ON (mbf > nanddev_get_ecc_conf (nand )-> strength || !mbf ))
98
98
return nanddev_get_ecc_conf (nand )-> strength ;
You can’t perform that action at this time.
0 commit comments