From: Rajat Jain <rajatxjain@gmail.com>
To: Bjorn Helgaas <bhelgaas@google.com>,
Jiri Kosina <jkosina@suse.cz>,
Andrew Morton <akpm@linux-foundation.org>,
"David S. Miller" <davem@davemloft.net>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-i2c@vger.kernel.org, linux-doc@vger.kernel.org
Cc: rajatjain@juniper.net, groeck@juniper.net
Subject: [PATCH 0/4] Driver for talking to PLX PEX8xxx PCIe switch over I2C
Date: Mon, 29 Sep 2014 21:46:11 -0700 [thread overview]
Message-ID: <542A3593.4020108@gmail.com> (raw)
Most of the PLX PCI Express switches (and also switches from other vendors such
IDT) provide an I2C based secondary interface to access and program the switch.
This can be used to program the switch in situations where the PCIe interface
may not be suitable, or even available. (For instance, we may need to program
the device in a particular fashion before we even begin enumerating on the PCI,
or to even enable the PCIe interface of the device). More information on
usecases and other details has been provided in the documentation being added
as part of this patchset.
This is a driver that allows talking to the PLX PEX8xxx family of PCIe switches
over its I2C interface. Here are the patch descriptions:
[Patch 1/4] - Adds the PEX8xxx driver that exports API calls to read / write.
[Patch 2/4] - Adds a sysfs interface, to allow access to the switch.
[Patch 3/4] - Adds the MAINTAINERS entry.
[Patch 4/4] - Adds the documentation in Documentation/PCI/pex8xxx_i2c.txt
Since this is a driver for a PCIe switch, I currently put it under /driver/pci/.
I'm very open to suggestions for moving this around (Does introducing
drivers/pci/switch/ seem any better?). Especially I can see that the
drivers/pci/Kconfig appears under "Bus Options" in the main menu which does not
look like the right place for this driver. I am looking for suggestions here.
Looking forward to comments,
Thanks,
Rajat
Rajat Jain (4):
pci: Add I2C driver for the PLX PEX8xxx PCIe switch
pci/pex8xxx: Add sysfs interface for userspace access.
MAINTAINERS: Add new device driver entry for PEX pex8xxx
Documentation: Add documentation for the PCI switch PEX8xxx I2C
driver
Documentation/PCI/pex8xxx_i2c.txt | 134 +++++++++
MAINTAINERS | 7 +
drivers/pci/Kconfig | 13 +
drivers/pci/Makefile | 2 +
drivers/pci/pex8xxx_i2c.c | 538 +++++++++++++++++++++++++++++++++++++
include/linux/i2c/pex8xxx_i2c.h | 36 +++
6 files changed, 730 insertions(+)
create mode 100644 Documentation/PCI/pex8xxx_i2c.txt
create mode 100644 drivers/pci/pex8xxx_i2c.c
create mode 100644 include/linux/i2c/pex8xxx_i2c.h
--
1.7.9.5
next reply other threads:[~2014-09-30 4:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-30 4:46 Rajat Jain [this message]
2014-09-30 20:45 ` [PATCH 0/4] Driver for talking to PLX PEX8xxx PCIe switch over I2C Bjorn Helgaas
2014-09-30 21:13 ` Wolfram Sang
2014-09-30 21:35 ` Guenter Roeck
2014-09-30 22:24 ` Greg Kroah-Hartman
2014-09-30 21:37 ` Rajat Jain
2014-10-01 7:29 ` Wolfram Sang
2014-10-01 21:32 ` Rajat Jain
2014-10-02 6:34 ` Wolfram Sang
2014-10-03 1:43 ` Rajat Jain
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=542A3593.4020108@gmail.com \
--to=rajatxjain@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=bhelgaas@google.com \
--cc=davem@davemloft.net \
--cc=gregkh@linuxfoundation.org \
--cc=groeck@juniper.net \
--cc=jkosina@suse.cz \
--cc=linux-doc@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=rajatjain@juniper.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).