linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rajat Jain <rajatjain@juniper.net>
To: "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	"linux-hotplug@vger.kernel.org" <linux-hotplug@vger.kernel.org>
Subject: pre-configuring PCIe switch
Date: Thu, 10 Oct 2013 19:19:29 +0000	[thread overview]
Message-ID: <3036fa5270dc4ede90e60abdbe6f0b57@BLUPR05MB118.namprd05.prod.outlook.com> (raw)

Hello,

For the purposes of hot-plug, I want to configure my PCI Express's switch's downstream port capabilities before enumeration. (I am currently interested in setting "Slot Implemented", "hot-plug capable" and "physical slot number". But in future, this may also come in handy to configure some downstream ports as non-transparent). These registers seem to be only writable via an external EEPROM (which is not populated), or an I2C bus. Thus PCI quirks cannot be used. What is the best way to achieve this? 

I'm thinking of configuring over I2C before the PCI enumeration begins. My question is how do I ensure that the I2C subsystem is ready to be used, before the PCI subsystem is scanned by the kernel? (This is a Powerpc system, no ACPI or BIOS) Is it OK to use I2C bus at such an early stage in boot up, for purposes like this?

Thanks,

Rajat


                 reply	other threads:[~2013-10-10 19:19 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=3036fa5270dc4ede90e60abdbe6f0b57@BLUPR05MB118.namprd05.prod.outlook.com \
    --to=rajatjain@juniper.net \
    --cc=linux-hotplug@vger.kernel.org \
    --cc=linux-pci@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 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 read-only IMAP folder(s) and NNTP newsgroup(s).