diff options
author | Eric Blake <eblake@redhat.com> | 2016-05-06 10:26:36 -0600 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-05-12 15:22:09 +0200 |
commit | 9fc0d361cc412251500cfe3fe9a548a363c635be (patch) | |
tree | 9aa5cfbfc5fa96c206a0a32392dfc8cc6d64285b /hw/block/pflash_cfi01.c | |
parent | a7a5b7c0fc4caeeda59b4bc91d467c4c98db79cf (diff) |
nand: Switch to byte-based block access
Sector-based blk_write() should die; switch to byte-based
blk_pwrite() instead. Likewise for blk_read().
This file is doing some complex computations to map various
flash page sizes (256, 512, and 2048) atop generic uses of
512-byte sector operations. Perhaps someone will want to tidy
up the file for fewer gymnastics in managing addresses and
offsets, and less wasteful visits of 256-byte pages, but it
was out of scope for this series, where I just went with the
mechanical conversion.
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/block/pflash_cfi01.c')
0 files changed, 0 insertions, 0 deletions