mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tomasz Figa <t.figa@samsung.com>
To: Vivek Gautam <gautamvivek1987@gmail.com>
Cc: Vivek Gautam <gautam.vivek@samsung.com>,
	Linux USB Mailing List <linux-usb@vger.kernel.org>,
	"linux-samsung-soc@vger.kernel.org" 
	<linux-samsung-soc@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	linux-doc@vger.kernel.org, Greg KH <gregkh@linuxfoundation.org>,
	Kukjin Kim <kgene.kim@samsung.com>, Felipe Balbi <balbi@ti.com>,
	kishon <kishon@ti.com>, Kamil Debski <k.debski@samsung.com>,
	Sylwester Nawrocki <s.nawrocki@samsung.com>,
	Julius Werner <jwerner@chromium.org>,
	Jingoo Han <jg1.han@samsung.com>
Subject: Re: [PATCH v3] phy: Add new Exynos5 USB 3.0 PHY driver
Date: Fri, 14 Feb 2014 16:47:29 +0100	[thread overview]
Message-ID: <52FE3A91.1090107@samsung.com> (raw)
In-Reply-To: <CAFp+6iFYoN1w_BX7mMEa-Xx5ADaPTTKeDzjsSbQmwVKdSEsmOw@mail.gmail.com>

Hi Vivek,

On 14.02.2014 14:53, Vivek Gautam wrote:
>>> Changes from v2:
>>> 1) Added support for multiple PHYs (UTMI+ and PIPE3) and
>>>      related changes in the driver structuring.
>>
>>
>> I'm a bit skeptical about this separation. Can the PHY operate with just the
>> UTMI+ or PIPE3 part enabled alone without the other? Can any PHY consumer
>> operate this way?
>
> Yes :-)
> As also pointed by Kishon the PHY consumer (which is DWC3 in case of
> Exynos5 SoC series)
> should theoretically be able use either UTMI+ phy for High speed
> operations or both (UTMI+ and PIPE3)
> for Super Speed operations.

OK, that's fine then. This is the explanation I needed, thanks.

>>
>> I believe the right thing to do here is to do all the initialization in
>> .power_on() and let the driver simply call phy_power_on() when it needs the
>> PHY and phy_power_off() otherwise.
>
> If this is what we should be doing then what will be the purpose of
> two separate APIs :
> phy_power_on() and phy_init().
> Am i missing while understanding the things.
>

I don't understand this separation as well. Operations that should be 
done together shouldn't be separated. Is there any case when you can 
call one of phy_power_on() and phy_init() without calling another one 
right before/after it?

Best regards,
Tomasz

  reply	other threads:[~2014-02-14 15:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-04 10:09 [PATCH v2 0/4] Add Exynos5 USB 3.0 phy driver based on generic PHY framework Vivek Gautam
2013-12-04 10:09 ` [PATCH v2 1/4] phy: Add new Exynos5 USB 3.0 PHY driver Vivek Gautam
2013-12-23  9:11   ` Vivek Gautam
2013-12-23 16:48     ` Felipe Balbi
2013-12-24  5:43       ` Vivek Gautam
2014-01-20 13:42   ` [PATCH v3] " Vivek Gautam
2014-01-21  7:46     ` Vivek Gautam
2014-01-27  8:57     ` Kishon Vijay Abraham I
2014-01-30  4:19       ` Vivek Gautam
2014-01-30  6:18         ` Kishon Vijay Abraham I
2014-01-30  7:33           ` Vivek Gautam
2014-02-06 14:07     ` Tomasz Figa
2014-02-10  8:27       ` Kishon Vijay Abraham I
2014-02-14 13:53       ` Vivek Gautam
2014-02-14 15:47         ` Tomasz Figa [this message]
2014-02-17 10:01           ` Vivek Gautam
2013-12-04 10:09 ` [PATCH v2 2/4] dt: exynos5250: Enable support for generic USB 3.0 phy Vivek Gautam
2013-12-04 12:50   ` Bartlomiej Zolnierkiewicz
2013-12-05  8:17     ` Vivek Gautam
2013-12-04 10:09 ` [PATCH v2 3/4] dt: exynos5420: Enable support for USB 3.0 PHY controller Vivek Gautam
2013-12-04 10:09 ` [PATCH v2 4/4] dt: exynos5420: Enable support for DWC3 controller Vivek Gautam

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=52FE3A91.1090107@samsung.com \
    --to=t.figa@samsung.com \
    --cc=balbi@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gautam.vivek@samsung.com \
    --cc=gautamvivek1987@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jg1.han@samsung.com \
    --cc=jwerner@chromium.org \
    --cc=k.debski@samsung.com \
    --cc=kgene.kim@samsung.com \
    --cc=kishon@ti.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=s.nawrocki@samsung.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

Powered by JetHome