rombios/ata: wait for BSY to clear after write
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Tue, 20 Jun 2017 15:13:02 +0000 (17:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Jun 2017 15:13:02 +0000 (17:13 +0200)
commit4c09689153c32a61ebf547391caecdfa55d1ae8b
tree7613cba574debb133d3dc769e9523ccbb7889a5e
parent592e834522086009975bd48d59386094771bd06b
rombios/ata: wait for BSY to clear after write

After rombios transfers the data for a write, it checks the status and
fails if BSY is set. qemu-trad doesn't set BSY for PIO writes, but QEMU
upstream does, and this causes rombios to fail writes because they are
marked as BSY. Instead, wait for BSY to clear after a write.

INT 13 writes are probably rarely used these days, but they are used by
GRUB 2 to write to its environment file which happens by default on
Ubuntu.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/firmware/rombios/rombios.c