All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: EHCI: don't stop after finding the first controller
Date: Thu, 31 May 2012 11:44:10 +0200	[thread overview]
Message-ID: <4FC73D6A.6000408@gmail.com> (raw)
In-Reply-To: <4FC72FD3.2030203@weinigel.se>

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

Please update to latest bzr. Something similar was applied quite some
time ago.
On 31.05.2012 10:46, Christer Weinigel wrote:

> Hi,
> 
> Modern Intel chipsets have multiple EHCI controllers but the EHCI code
> will only detect the first one.  I noticed this because on a test
> laptop all external USB ports are connected to the second EHCI
> controller so none of them would show up in grub.
> 
> The reason is that the PCI code will stop if the PCI iterator function
> returns a nonzero value.  Change the return value to zero on success so
> that the PCI iterator continues with the next controller.
> 
> diff --git a/grub-core/bus/usb/ehci.c b/grub-core/bus/usb/ehci.c
> index d8ecf26..240c0d5 100644
> --- a/grub-core/bus/usb/ehci.c
> +++ b/grub-core/bus/usb/ehci.c
> @@ -839,7 +839,7 @@ grub_ehci_pci_iter (grub_pci_device_t dev,
>    grub_dprintf ("ehci", "EHCI grub_ehci_pci_iter: CONFIG_FLAG: %08x\n",
>                 grub_ehci_oper_read32 (e, GRUB_EHCI_CONFIG_FLAG));
> 
> -  return 1;
> +  return 0;
> 
>  fail:
>    if (e)
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
> 



-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


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

  reply	other threads:[~2012-05-31  9:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-31  8:46 EHCI: don't stop after finding the first controller Christer Weinigel
2012-05-31  9:44 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2012-05-31 11:32 ` Christer Weinigel

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=4FC73D6A.6000408@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.