do_erase_oneblock failing to detect lock-bit failure

David Woodhouse dwmw2 at infradead.org
Thu Mar 25 08:40:37 EST 2004


On Thu, 2004-03-25 at 07:30 -0600, Dan Eisenhut wrote:
> Is byte-lane swapping common?  

Not really. It's generally a symptom of hardware engineers who really
don't understand the problem, and think it might help.

> Wouldn't this code fail for someone
> without byte-lane swapping but requiring little endian enabled?  By
> changing the if statements with (chipstatus & 0xNN) with (status &
> CMD(0xNN)) appears to correct my problem, but I sure this is not the
> best solution.

You made me think about it again and now my head hurts. I suspect that
we should be using cfi_read_query() to read the status bits, not
cfi_read(). 


-- 
dwmw2




More information about the linux-mtd mailing list