in At91EfcSectorWrite;page number is calculated in a wrong way from give offset
I don't see any problem with the page offset calculation in the current trunk. The patch would change
off & MC_PAGEN_MASK
to
((off / PAGE_SIZE) << 8) & MC_PAGEN_MASK
Problem:
PAGE_SIZE is not defined in this context.
However, the PAGE_SIZE of the At91 efc is 256 bytes, so
Is exactly the same as
is'nt it?
I don't see any problem with the page offset calculation in the current
trunk. The patch would change
off & MC_PAGEN_MASK
to
((off / PAGE_SIZE) << 8) & MC_PAGEN_MASK
Problem:
PAGE_SIZE is not defined in this context.
However, the PAGE_SIZE of the At91 efc is 256 bytes, so
((off / PAGE_SIZE) << 8) & MC_PAGEN_MASK
Is exactly the same as
off & MC_PAGEN_MASK
is'nt it?