grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: Paul Menzel <paulepanter@users.sourceforge.net>
Cc: grub-devel@gnu.org
Subject: Re: [PATCH] disk/ahci: Use defines `GRUB_ATA_STATUS_BUSY` and `GRUB_ATA_STATUS_DRQ`
Date: Sun, 24 May 2015 21:19:44 +0300	[thread overview]
Message-ID: <20150524211944.26a07b73@opensuse.site> (raw)
In-Reply-To: <1432478922.2492.3.camel@users.sourceforge.net>

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]

В Sun, 24 May 2015 16:48:42 +0200
Paul Menzel <paulepanter@users.sourceforge.net> пишет:

> Date: Sun, 24 May 2015 11:11:25 +0200
> 
> Instead of hard coding `0x88` use the macros defined in `disk/ata.h`.

applied

> ---
>  grub-core/disk/ahci.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/grub-core/disk/ahci.c b/grub-core/disk/ahci.c
> index d6bdbdd..7f75724 100644
> --- a/grub-core/disk/ahci.c
> +++ b/grub-core/disk/ahci.c
> @@ -565,14 +565,14 @@ grub_ahci_pciinit (grub_pci_device_t dev,
>    while (grub_get_time_ms () < endtime)
>      {
>        for (i = 0; i < nports; i++)
> -	if (adevs[i] && (adevs[i]->hba->ports[adevs[i]->port].task_file_data & 0x88))
> +	if (adevs[i] && (adevs[i]->hba->ports[adevs[i]->port].task_file_data & (GRUB_ATA_STATUS_BUSY | GRUB_ATA_STATUS_DRQ)))
>  	  break;
>        if (i == nports)
>  	break;
>      }
>  
>    for (i = 0; i < nports; i++)
> -    if (adevs[i] && (adevs[i]->hba->ports[adevs[i]->port].task_file_data & 0x88))
> +    if (adevs[i] && (adevs[i]->hba->ports[adevs[i]->port].task_file_data & (GRUB_ATA_STATUS_BUSY | GRUB_ATA_STATUS_DRQ)))
>        {
>  	grub_dprintf ("ahci", "port %d is busy\n", i);
>  	failed_adevs[i] = adevs[i];


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

      reply	other threads:[~2015-05-24 18:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-24 14:48 [PATCH] disk/ahci: Use defines `GRUB_ATA_STATUS_BUSY` and `GRUB_ATA_STATUS_DRQ` Paul Menzel
2015-05-24 18:19 ` Andrei Borzenkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150524211944.26a07b73@opensuse.site \
    --to=arvidjaar@gmail.com \
    --cc=grub-devel@gnu.org \
    --cc=paulepanter@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).