[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] (ata.mod) Fix ATAPI protocol
From: |
Christian Franke |
Subject: |
Re: [PATCH] (ata.mod) Fix ATAPI protocol |
Date: |
Tue, 20 Jan 2009 10:55:34 +0100 |
Marco Gerards wrote:
> > Committed, plus an additional wait in grub_atapi_identify.
>
> Great! :-)
>
> > Open issues:
> > - grub_pio_read/write() check the ERR bit without ensuring !BSY.
> > - ata_read fails if (batch % size) == 0.
> > - ata_write does not work at all, it uses the read cmd.
>
> grub_ata_write does not use the read cmd, or do you mean indirectly?
> In that case, where does it use the read command?
>
cmd_write is set, but not used:
grub_ata_readwrite (...)
{
...
cmd = GRUB_ATA_CMD_READ_SECTORS;
cmd_write = GRUB_ATA_CMD_WRITE_SECTORS;
if (rw == 0)
{
...
} else {
/* Write sectors. */
if (grub_ata_cmd (dev, cmd))
-----------------------------^^^ GRUB_ATA_CMD_READ_SECTORS
...
}
...
}
I will post a patch for all 3 issues soon.
Christian