All of lore.kernel.org
 help / color / mirror / Atom feed
From: Parag Warudkar <kernel-stuff@comcast.net>
To: linux-kernel@vger.kernel.org
Subject: PCI: How to find if BIOS has already enabled the device
Date: Fri, 27 May 2005 20:35:03 -0400	[thread overview]
Message-ID: <200505272035.03800.kernel-stuff@comcast.net> (raw)

I am trying to trace the root cause of an annoying problem with a USB Storage 
device - 

My laptop's BIOS supports booting from USB devices. I have attached an 
external USB HDD to a USB 2.0 port. If I boot Linux with the HDD attached and 
powered on, load of OHCI-HCD module hangs the machine for around 2 minutes - 
after that it recovers and all is fine. I have tried different distros 
without luck, but while installing debian, I figured out that the hang 
happens after ohci-hcd calls pci_enable_device() for the USB controller.

This does not happen when the boot is complete. I.e. if I attach the HDD after 
boot is complete (BIOS did not get a chance to enable it beforehand) load of 
ohci-hcd (during and after boot) does not hang the machine.

I think since the machine supports booting from USB HDD, the BIOS must be 
enabling the USB controller and attached device early during boot, and when 
ohci-hcd tries to re-enable it, it doesn't like it and leads to a hang. 

My question - Is it possible to detect if the USB controller is already 
enabled and skip enabling it second time?

Thanks

Parag

                 reply	other threads:[~2005-05-28  0:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200505272035.03800.kernel-stuff@comcast.net \
    --to=kernel-stuff@comcast.net \
    --cc=linux-kernel@vger.kernel.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.