From: Ray Jui <rjui@broadcom.com>
To: Kishon Vijay Abraham I <kishon@ti.com>, Arnd Bergmann <arnd@arndb.de>
Cc: <linux-kernel@vger.kernel.org>,
"JD (Jiandong) Zheng" <jdzheng@broadcom.com>,
Arun Parameswaran <arunp@broadcom.com>,
<bcm-kernel-feedback-list@broadcom.com>
Subject: Re: [PATCH v2 0/5] Add iProc MDIO and Cygnus PCIe PHY support
Date: Tue, 1 Sep 2015 14:13:41 -0700 [thread overview]
Message-ID: <55E61505.20704@broadcom.com> (raw)
In-Reply-To: <1432256829-17931-1-git-send-email-rjui@broadcom.com>
Hi Arnd,
Please help to advise if the following changes make sense to you. There
does not seem to be a maintainer for drivers/bus/* and Florian mentioned
that you "may" be able to help to pull in changes for ARM SoCs related
changes under drivers/bus/*.
The problem I'm trying to solve:
Some iProc based SoCs (like Cygnus) has an internal MDIO based bus
interface that is used to communicate with various types of Serdes/PHYs
including PCIe, Ethernet, and etc. However, there's only one MDIO
interface per SoC so the access needs to be serialized and protected in
software
The solution:
1. According to convention, Ethernet PHYs should be in drivers/net/phy/*
and PCIe (and other) PHYs should be in drivers/phy/*
2. Kishon suggested putting the low-level MDIO interface/bus driver in
drivers/bus/* which I also think is more proper than leaving it any
where else
3. Both PCIe PHY driver and Ethernet PHY driver call specific iproc
based MDIO API to access their PHYs (e.g., iproc_mdio_write and
iproc_mdio_read).
There are some changes/fixes I need to make to both the MDIO bus driver
and PCIe PHY driver so there will be a v3 of this patchset. But before I
do that, I'd like to cross check with you and make sure the way how I
partition these drivers are acceptable.
Thanks,
Ray
On 5/21/2015 6:07 PM, Ray Jui wrote:
> This patch series adds support for the Cygnus PCIe PHY and support of the
> MDC/MDIO bus interface found in various iProc based of SoCs. The iProc
> MDC/MDIO bus interface can be used by the host processor to communicate with
> various internal Serdes/PHYs including Ethernet, PCIe, USB, etc.
>
> This patch series is based on Linux v4.1-rc4 and is avaliable in:
> https://github.com/Broadcom/cygnus-linux/tree/cygnus-pcie-phy-v2
>
> Changes from v1:
> - Move the MDC/MDIO bus driver from drivers/phy/* to drivers/bus/*
> - Make the PCIe PHY device node child node of the MDIO bus
> - Change the PCIe PHY driver to tristate so it can be compiled as a module
> - Other minor changes
>
> Ray Jui (5):
> dt_bindings: Add iProc MDC/MDIO interface binding
> phy: iproc-mdio: Initial iProc MDC/MDIO support
> phy: cygnus: pcie: Define DT binding
> phy: cygnus: pcie: Add Cygnus PCIe PHY support
> ARM: dts: enable PCIe PHY support for Cygnus
>
> .../devicetree/bindings/bus/brcm,iproc-mdio.txt | 21 ++
> .../bindings/phy/brcm,cygnus-pcie-phy.txt | 34 ++
> arch/arm/boot/dts/bcm-cygnus.dtsi | 20 ++
> drivers/bus/Kconfig | 12 +
> drivers/bus/Makefile | 1 +
> drivers/bus/iproc-mdio-bus.c | 255 +++++++++++++++
> drivers/phy/Kconfig | 15 +
> drivers/phy/Makefile | 1 +
> drivers/phy/phy-cygnus-pcie.c | 340 ++++++++++++++++++++
> include/linux/iproc_mdio_bus.h | 22 ++
> 10 files changed, 721 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/bus/brcm,iproc-mdio.txt
> create mode 100644 Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.txt
> create mode 100644 drivers/bus/iproc-mdio-bus.c
> create mode 100644 drivers/phy/phy-cygnus-pcie.c
> create mode 100644 include/linux/iproc_mdio_bus.h
>
prev parent reply other threads:[~2015-09-01 21:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-22 1:07 [PATCH v2 0/5] Add iProc MDIO and Cygnus PCIe PHY support Ray Jui
2015-05-22 1:07 ` [PATCH v2 1/5] dt_bindings: Add iProc MDC/MDIO interface binding Ray Jui
2015-05-22 1:07 ` [PATCH v2 2/5] phy: iproc-mdio: Initial iProc MDC/MDIO support Ray Jui
2015-05-22 1:07 ` [PATCH v2 3/5] phy: cygnus: pcie: Define DT binding Ray Jui
2015-05-22 1:07 ` [PATCH v2 4/5] phy: cygnus: pcie: Add Cygnus PCIe PHY support Ray Jui
2015-05-22 1:07 ` [PATCH v2 5/5] ARM: dts: enable PCIe PHY support for Cygnus Ray Jui
2015-09-01 21:13 ` Ray Jui [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=55E61505.20704@broadcom.com \
--to=rjui@broadcom.com \
--cc=arnd@arndb.de \
--cc=arunp@broadcom.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=jdzheng@broadcom.com \
--cc=kishon@ti.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox