From: Arnd Bergmann <arnd@arndb.de>
To: Mohit KUMAR DCG <Mohit.KUMAR@st.com>
Cc: Pratyush ANAND <pratyush.anand@st.com>,
Kishon Vijay Abraham I <kishon@ti.com>,
spear-devel <spear-devel@list.st.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Lee Jones <lee.jones@linaro.org>
Subject: Re: [PATCH V5 4/8] phy: st-miphy-40lp: Add skeleton driver
Date: Tue, 11 Feb 2014 15:38:51 +0100 [thread overview]
Message-ID: <10315753.nkNxr0yDnp@wuerfel> (raw)
In-Reply-To: <2CC2A0A4A178534D93D5159BF3BCB66189FD2CAA9B@EAPEX1MAIL1.st.com>
On Tuesday 11 February 2014 11:57:46 Mohit KUMAR DCG wrote:
>
> > Maybe mention that this phy is used inside the spear13xx
> > SoC here rather than a standalone phy.
>
> - Yes, for spear13xx its used internally. Do you think that
> it requires to be mentioned here?
> We have few prototype boards that uses this as external phy.
[adding Lee since he mentioned working on a similar part]
I'm a bit confused. Is it actually the same IP block that can
be used internally as part of a SoC and as a standalone chip?
Since some of the settings of the PHY are controlled through
the misc register in case of spear13xx, I assume that part
is different on the standalone version. How do you actually
select the mode in that case?
It would certainly be helpful to explain this somewhere,
and the binding might not be the worst place for this.
On a related note, the driver in its current shape looks
a bit silly since it doesn't contain any of the miphy specific
code but only the SoC specific parts (as I suggested you
do, so I'm not blaming you :-)) and a multiplexer that
switches between the two possible implementations.
What is your plan for the future, do you intend to add
the actual miphy code soon, or is that something you just
want to leave as an option for the future but have no
specific plans to do right now? If not, the driver
would probably look nicer if it were split into two
separate implementations, one for each spear13xx SoC
and with a separate set of phy_ops but no multiplexer.
The connection to the miphy code (if you want to keep
your options open) could be done by implementing some
kind of nested phy model where the st,spear1340-phy contains
another "phys" property pointing to the st,miphy40 node
and the driver just calls the slave phy_ops recursively,
or the sata and pcie nodes actually link to two phy nodes
that are separate from one another.
Arnd
next prev parent reply other threads:[~2014-02-11 14:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-10 8:51 [PATCH V5 0/8]PCI:Add SPEAr13xx PCie support Mohit Kumar
[not found] ` <cover.1391871170.git.pratyush.anand-qxv4g6HH51o@public.gmane.org>
2014-02-10 8:51 ` [PATCH V5 4/8] phy: st-miphy-40lp: Add skeleton driver Mohit Kumar
[not found] ` <fb505abd332645671d9ad125003d8253b6346715.1391871170.git.pratyush.anand-qxv4g6HH51o@public.gmane.org>
2014-02-10 15:54 ` Arnd Bergmann
2014-02-11 3:57 ` Mohit KUMAR DCG
2014-02-11 14:38 ` Arnd Bergmann [this message]
2014-02-12 4:52 ` Mohit KUMAR DCG
2014-02-19 4:09 ` Mohit KUMAR DCG
2014-02-10 8:51 ` [PATCH V5 5/8] SPEAr13xx: Fixup: Move SPEAr1340 SATA platform code to phy driver Mohit Kumar
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=10315753.nkNxr0yDnp@wuerfel \
--to=arnd@arndb.de \
--cc=Mohit.KUMAR@st.com \
--cc=devicetree@vger.kernel.org \
--cc=kishon@ti.com \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pratyush.anand@st.com \
--cc=spear-devel@list.st.com \
/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