OneNAND: Always print error messages
Hi Adrian,
I think it's too verbose.
As you know, nand flash has several initial bad blocks. Maybe many uses don't like to see the some error message at boot time.
At least, onenand_wait(), onenand_do_read_oob() have to change from KERN_ERR to KERN_DEBUG I'm not sure how to handle error message, especillay at onenand_wait(). controller error is very important but it's too verbose at boot time.
Thank you,
Kyungmin Park
Quoted 2 lines · Kyungmin Park
As you know, nand flash has several initial bad blocks. Maybe many uses don't like to see the some error message at boot time.
Yeah, it indeed makes few sense to print out error message if we meet a bad block. But being silent when errors occur is bad as well.
Quoted 1 line
At least,
onenand_wait(),onenand_do_read_oob()have to change from
KERN_ERR to KERN_DEBUG
KERN_ERR and KERN_DEBUG are just printk priorities. I would better say "printk to DEBUG()".
Quoted 2 lines
I'm not sure how to handle error message, especillay at
onenand_wait(). controller error is very important but it's too verbose at boot time.
We can avoid doing this if (1) we cannot read OOB (1) and we are scanning (2). In other cases we print the error message. Comments?
Signature · 2 lines
Best regards, Artem Bityutskiy