All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrice CHOTARD <patrice.chotard@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 10/14] usb: extend generic EHCI with PHY
Date: Fri, 12 May 2017 08:49:45 +0000	[thread overview]
Message-ID: <0219ac79-4ba0-dacc-9336-d66758c2fb6c@st.com> (raw)
In-Reply-To: <eb08a235-909c-f4bd-6a8f-595043f607fc@denx.de>

Hi Marek

On 05/11/2017 01:55 PM, Marek Vasut wrote:
> On 05/11/2017 09:19 AM, Patrice CHOTARD wrote:
>> Hi Marek
>>
>> On 05/10/2017 11:18 PM, Marek Vasut wrote:
>>> On 05/10/2017 06:09 PM, patrice.chotard at st.com wrote:
>>>> From: Patrice Chotard <patrice.chotard@st.com>
>>>
>>> Commit message missing.
>>
>> ok i will fix it
>>
>>>
>>> You should also break this patchset up into smaller pieces.
>>
>> You mean, extract the update of generic OHCI and >EHCI driver from this
>> series ?
>
> Yes, split the patchset into independent pieces so it's not such a
> massive drop of code.
>

Ok

>>>> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
>>>> ---
>>>>
>>>> v5:   _ add support of new generic PHY UCLASS
>>>>
>>>>  drivers/usb/host/ehci-generic.c | 13 +++++++++++++
>>>>  1 file changed, 13 insertions(+)
>>>>
>>>> diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c
>>>> index 2190adb..3c2f5a7 100644
>>>> --- a/drivers/usb/host/ehci-generic.c
>>>> +++ b/drivers/usb/host/ehci-generic.c
>>>> @@ -6,6 +6,8 @@
>>>>
>>>>  #include <common.h>
>>>>  #include <clk.h>
>>>> +#include <fdtdec.h>
>>>> +#include <generic-phy.h>
>>>>  #include <reset.h>
>>>>  #include <asm/io.h>
>>>>  #include <dm.h>
>>>> @@ -50,6 +52,17 @@ static int ehci_usb_probe(struct udevice *dev)
>>>>  		reset_free(&reset);
>>>>  	}
>>>>
>>>> +	for (i = 0; ; i++) {
>>>> +		struct phy usb_phy;
>>>> +		int ret;
>>>> +
>>>> +		ret = generic_phy_get_by_index(dev, i, &usb_phy);
>>>> +		if (ret < 0)
>>>> +			break;
>>>> +		if (generic_phy_init(&usb_phy))
>>>> +			printf("failed to init usb phy %d\n", i);
>>>
>>> How does this whole block work ? What is this about ?
>>
>> It allows to retrieve any present USB phys node and call the associated
>> init callback. see patch 4 of this series ([PATCH v5 04/14] usb: phy:
>> Add STi USB2 PHY)
>>
>> FYI, in dm next branch, there is a new generic PHY framework implementation.
>> See  0ace7fe60d5c258324ef4b2caaa556616b96d1d9 drivers: phy: add generic
>> PHY framework
>
> And why do you need to iterate over indexes ? Why don't you just parse a
> phandle ?
>

As for clocks or resets, in case there is more than 1 phy connected.

Patrice

  reply	other threads:[~2017-05-12  8:49 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-10 16:09 [U-Boot] [PATCH v5 00/14] STiH410-B2260: add reset, usb and fastboot support patrice.chotard at st.com
2017-05-10 16:09 ` [U-Boot] [PATCH v5 01/14] mmc: sti_sdhci: Rework sti_mmc_core_config() patrice.chotard at st.com
2017-05-15  3:02   ` Simon Glass
2017-05-10 16:09 ` [U-Boot] [PATCH v5 02/14] ARM: dts: stih410-family: Add missing reset_names for mmc1 node patrice.chotard at st.com
2017-05-15  3:02   ` Simon Glass
2017-05-10 16:09 ` [U-Boot] [PATCH v5 03/14] mmc: sti_sdhci: Use reset framework patrice.chotard at st.com
2017-05-15  3:02   ` Simon Glass
2017-05-15  9:21     ` Patrice CHOTARD
2017-05-17  1:38       ` Simon Glass
2017-05-17  7:14         ` Patrice CHOTARD
2017-05-20  2:29           ` Simon Glass
2017-05-10 16:09 ` [U-Boot] [PATCH v5 04/14] usb: phy: Add STi USB2 PHY patrice.chotard at st.com
2017-05-10 16:09 ` [U-Boot] [PATCH v5 05/14] usb: xhci: Add STi xhci support patrice.chotard at st.com
2017-05-10 21:16   ` Marek Vasut
2017-05-11  7:08     ` Patrice CHOTARD
2017-05-11 11:54       ` Marek Vasut
2017-05-12  8:40         ` Patrice CHOTARD
2017-05-12 10:54           ` Marek Vasut
2017-05-12 11:15             ` Patrice CHOTARD
2017-05-12 11:20               ` Marek Vasut
2017-05-10 16:09 ` [U-Boot] [PATCH v5 06/14] usb: dwc3: Add dwc3 glue driver support for STi patrice.chotard at st.com
2017-05-15  3:02   ` Simon Glass
2017-05-15  9:24     ` Patrice CHOTARD
2017-05-10 16:09 ` [U-Boot] [PATCH v5 07/14] board: STiH410-B2260: add OHCI and XHCI related defines patrice.chotard at st.com
2017-05-15  3:02   ` Simon Glass
2017-05-10 16:09 ` [U-Boot] [PATCH v5 08/14] board: STiH410-B2260: add fastboot support patrice.chotard at st.com
2017-05-15  3:02   ` Simon Glass
2017-05-10 16:09 ` [U-Boot] [PATCH v5 09/14] STiH410-B2260: enable USB Host Networking patrice.chotard at st.com
2017-05-15  3:03   ` Simon Glass
2017-05-15  9:24     ` Patrice CHOTARD
2017-05-10 16:09 ` [U-Boot] [PATCH v5 10/14] usb: extend generic EHCI with PHY patrice.chotard at st.com
2017-05-10 21:18   ` Marek Vasut
2017-05-11  7:19     ` Patrice CHOTARD
2017-05-11 11:55       ` Marek Vasut
2017-05-12  8:49         ` Patrice CHOTARD [this message]
2017-05-12 10:54           ` Marek Vasut
2017-05-12 11:13             ` Patrice CHOTARD
2017-05-10 16:09 ` [U-Boot] [PATCH v5 11/14] ARM: DTS: STiH410: rework ehci nodes patrice.chotard at st.com
2017-05-15  3:03   ` Simon Glass
2017-05-10 16:09 ` [U-Boot] [PATCH v5 12/14] usb: extend generic OHCI with clock, reset and phy patrice.chotard at st.com
2017-05-10 21:20   ` Marek Vasut
2017-05-11  9:36     ` Patrice CHOTARD
2017-05-14  9:13   ` Simon Glass
2017-05-15  7:20     ` Patrice CHOTARD
2017-05-10 16:09 ` [U-Boot] [PATCH v5 13/14] ARM: DTS: STiH410: rework ohci nodes patrice.chotard at st.com
2017-05-15  3:03   ` Simon Glass
2017-05-10 16:09 ` [U-Boot] [PATCH v5 14/14] STiH410-B2260: enable USB, fastboot, reset related flags patrice.chotard at st.com
2017-05-15  3:03   ` Simon Glass

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=0219ac79-4ba0-dacc-9336-d66758c2fb6c@st.com \
    --to=patrice.chotard@st.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.