nand: Switch to byte-based block access
authorEric Blake <eblake@redhat.com>
Fri, 6 May 2016 16:26:36 +0000 (10:26 -0600)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 May 2016 13:22:09 +0000 (15:22 +0200)
commit9fc0d361cc412251500cfe3fe9a548a363c635be
tree9aa5cfbfc5fa96c206a0a32392dfc8cc6d64285b
parenta7a5b7c0fc4caeeda59b4bc91d467c4c98db79cf
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>
hw/block/nand.c