[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <514A9EBF.4030505@ti.com>
Date: Thu, 21 Mar 2013 11:16:39 +0530
From: kishon <kishon@...com>
To: Sylwester Nawrocki <sylvester.nawrocki@...il.com>
CC: <balbi@...com>, <gregkh@...uxfoundation.org>, <arnd@...db.de>,
<akpm@...ux-foundation.org>, <rob@...dley.net>,
<broonie@...nsource.wolfsonmicro.com>, <linux@....linux.org.uk>,
<linux-doc@...r.kernel.org>, <devicetree-discuss@...ts.ozlabs.org>,
<linux-usb@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<rob.herring@...xeda.com>, <eballetbo@...il.com>,
<santosh.shilimkar@...com>, <linux-arm-kernel@...ts.infradead.org>,
<swarren@...dia.com>, <javier@...hile0.org>,
<linux-omap@...r.kernel.org>, <davem@...emloft.net>,
<cesarb@...arb.net>, <mchehab@...hat.com>
Subject: Re: [PATCH v3 1/6] drivers: phy: add generic PHY framework
Hi,
On Thursday 21 March 2013 04:06 AM, Sylwester Nawrocki wrote:
> Hi Kishon,
>
> On 03/20/2013 10:12 AM, Kishon Vijay Abraham I wrote:
>> The PHY framework provides a set of APIs for the PHY drivers to
>> create/destroy a PHY and APIs for the PHY users to obtain a reference
>> to the
>> PHY with or without using phandle. 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
>> describes the PHY (label, type etc..) and ops like init, exit,
>> suspend, resume,
>> poweron, shutdown.
>>
>> The documentation for the generic PHY framework is added in
>> Documentation/phy.txt and the documentation for the sysfs entry is added
>> in Documentation/ABI/testing/sysfs-class-phy.
>>
>> Signed-off-by: Kishon Vijay Abraham I<kishon@...com>
>> ---
> [...]
>> +static inline struct phy *phy_get(struct device *dev, int index)
>> +{
>> + return ERR_PTR(-EOPNOTSUPP);
>
> Shouldn't these be -ENOSYS ? EOPNOTSUPP is defined by POSIX as
> "Operation not supported on socket". And EOPNOTSUPP appears to be
> mostly used in the network code in the kernel.
Fair enough. Will change to ENOSYS.
Thanks
Kishon
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists