Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754202AbbHYGMX (ORCPT ); Tue, 25 Aug 2015 02:12:23 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:62520 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752039AbbHYGMV (ORCPT ); Tue, 25 Aug 2015 02:12:21 -0400 X-AuditID: cbfec7f5-f794b6d000001495-b7-55dc07413d11 Message-id: <55DC073D.8050909@samsung.com> Date: Tue, 25 Aug 2015 15:12:13 +0900 From: Krzysztof Kozlowski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-version: 1.0 To: Marek Szyprowski , Kishon Vijay Abraham I , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Robert Baldyga , John Youn , Kukjin Kim , Kamil Debski Subject: Re: [PATCH 1/7] phy: exynos-usb2: add vbus regulator support References: <1440160723-6636-1-git-send-email-m.szyprowski@samsung.com> <1440160723-6636-2-git-send-email-m.szyprowski@samsung.com> <55D71D3E.3010807@ti.com> <55DC0173.9030702@samsung.com> In-reply-to: <55DC0173.9030702@samsung.com> Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsVy+t/xy7qO7HdCDebe4rLYffoSo8WP1xfY LF6/MLTof/ya2eLC0x42i8u75rBZzDi/j8li0bJWZou1R+6yWzw4vJPdgctj06pONo++LasY Pbbs/8zocfzGdiaPz5vkAlijuGxSUnMyy1KL9O0SuDLW7xEomChQ8WPpN/YGxm88XYycHBIC JhIf10xnhbDFJC7cW8/WxcjFISSwlFHi3fr/7BDOF0aJp+d2sYFU8QpoSbTOmcUMYrMIqEr8 WDKZBcRmEzCW2Lx8CViNqECExPLVJxkh6gUlfky+xwIySERgO6PEy1u/mEAcZoHJjBINrzaD 7RYWcJVoXbqJCcQWEjjAKPH4SQSIzSmgLbHy03ygbg6gBnWJKVNyQcLMAvISm9e8ZZ7AKDAL yY5ZCFWzkFQtYGRexSiaWppcUJyUnmukV5yYW1yal66XnJ+7iRESAV93MC49ZnWIUYCDUYmH d8b826FCrIllxZW5hxglOJiVRHifbwQK8aYkVlalFuXHF5XmpBYfYpTmYFES5525632IkEB6 YklqdmpqQWoRTJaJg1OqgTGBi6OcSzXfb8LFYNHMhTuX2V/59rBOb+mRpTs/Kj7kP9PxsJ8r sGmP0bX97ROPHjrkd3J2c0kEh6ueccMlWbljkwufMk59G+z6p5uJYVrr2VdMJ8IbjRdslLnt YteQcO176ZwvixbpRVyJuWznpl556dvhCtF440m8V/ruGVwXKLxsm/pQWEGJpTgj0VCLuag4 EQBM73m7fAIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2263 Lines: 52 On 25.08.2015 14:47, Marek Szyprowski wrote: > Hello, > > On 2015-08-21 14:44, Kishon Vijay Abraham I wrote: >> On Friday 21 August 2015 06:08 PM, Marek Szyprowski wrote: >>> Exynos USB2 PHY has separate power supply, which is usually provided by >>> VBUS regulator. This patch adds support for it. VBUS regulator is >>> optional, to keep compatibility with boards, which have VBUS provided >>> from some always-on power source. >>> >>> Signed-off-by: Marek Szyprowski >>> --- >>> .../devicetree/bindings/phy/samsung-phy.txt | 3 +++ >>> drivers/phy/phy-samsung-usb2.c | 25 >>> ++++++++++++++++++++-- >>> drivers/phy/phy-samsung-usb2.h | 2 ++ >>> 3 files changed, 28 insertions(+), 2 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/phy/samsung-phy.txt >>> b/Documentation/devicetree/bindings/phy/samsung-phy.txt >>> index 60c6f2a633e0..0289d3b07853 100644 >>> --- a/Documentation/devicetree/bindings/phy/samsung-phy.txt >>> +++ b/Documentation/devicetree/bindings/phy/samsung-phy.txt >>> @@ -44,6 +44,9 @@ Required properties: >>> - the "ref" clock is used to get the rate of the clock provided >>> to the >>> PHY module >>> +Optional properties: >>> +- vbus-supply: power-supply phandle for vbus power source >> how about using phy-supply? > > I wanted to make it a bit more descriptive (vbus-supply is rather self > explaining name) > and keep it in line with Exynos usb3-drd phy, which already supports > vbus-supply. > If you think that this is a bad idea, a will use phy-supply then. This is actually supply for VBUS, not for the phy. Using phy-supply would work fine and reduce the size of code... but would be rather a hacky-use of phy and it could be misleading. I don't have strong feeling about this, both ideas have its advantages. If I had to choose than I would like to use vbus-supply because of its correctness with real-world (this is a VBUS after all). Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/