From: Felipe Balbi <balbi@ti.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Kishon Vijay Abraham I <kishon@ti.com>,
balbi@ti.com, arnd@arndb.de, gregkh@linuxfoundation.org,
linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-usb@vger.kernel.org, richard.zhao@freescale.com,
B29397@freescale.com, alexander.shishkin@linux.intel.com,
marex@denx.de
Subject: Re: [RFC PATCH] drivers: phy: add generic PHY framework
Date: Fri, 14 Sep 2012 16:12:49 +0300 [thread overview]
Message-ID: <20120914131247.GC21130@arwen.pp.htv.fi> (raw)
In-Reply-To: <505322E3.4090806@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 1452 bytes --]
On Fri, Sep 14, 2012 at 02:28:19PM +0200, Marc Kleine-Budde wrote:
> On 09/14/2012 01:58 PM, Kishon Vijay Abraham I wrote:
> > The PHY framework provides a set of API's for the PHY drivers to
> > create/remove a PHY and the PHY users to obtain a reference to the PHY
> > using or without using phandle. If the PHY users has to obtain a reference to
> > the PHY without using phandle, the platform specfic intialization code (say
> > from board file) should have already called phy_bind with the binding
> > information. The binding information consists of phy's device name, phy
> > user device name and an index. The index is used when the same phy user
> > binds to mulitple phys.
> >
> > PHY drivers should create the PHY by passing phy_descriptor that has
> > information about the PHY and ops like init, exit, suspend, resume,
> > poweron, shutdown.
>
> Some comments inside.
>
> While looking over the code, I was thinking why not abstract the phy
> with a "bus" in the linux kernel. The ethernet phys are on the mdio_bus,
> see /sys/bus/mdio_bus. This saves you hand crafting devices, drivers and
> bindings,
I don't think that's a good idea, actually. You can have USB PHYs which
are memory mapped, or connected through i2c, or connected through any
other bus. If the PHYs layer itself is a bus, it means we will need to
register a device on two different buses, which doesn't sound very
nice IMHO.
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-09-14 13:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-14 11:58 [RFC PATCH] drivers: phy: add generic PHY framework Kishon Vijay Abraham I
2012-09-14 12:28 ` Marc Kleine-Budde
2012-09-14 13:06 ` ABRAHAM, KISHON VIJAY
2012-09-17 9:33 ` Marc Kleine-Budde
2012-09-26 9:20 ` ABRAHAM, KISHON VIJAY
2012-09-26 9:37 ` Marc Kleine-Budde
2012-09-14 13:12 ` Felipe Balbi [this message]
2012-09-17 1:20 ` Chen Peter-B29397
2012-09-17 5:49 ` ABRAHAM, KISHON VIJAY
2012-09-17 13:19 ` Felipe Balbi
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=20120914131247.GC21130@arwen.pp.htv.fi \
--to=balbi@ti.com \
--cc=B29397@freescale.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=marex@denx.de \
--cc=mkl@pengutronix.de \
--cc=richard.zhao@freescale.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