On 18 May 2017 at 01:58,  <patrice.chot...@st.com> wrote:
> From: Patrice Chotard <patrice.chot...@st.com>
>
> This deassert counter allow to manage "shared" reset lines
> encountered in some specific case. On STiH410 SoC, DWC3,
> EHCI and OHCI are all using a respective PHY, but all of
> these PHYs shared a "global" reset.
>
> Currently, during command "usb stop", all host controller are
> stopped (XHCI, EHCI and OHCI). XHCI is first shutdowned, which
> means that PHY global reset is asserted. Then EHCI is shutdowned,
> but its PHY reset has already been asserted which make handshake()
> call failed in ehci_shutdown().
>
> This counter allows to really assert a reset lines only when the
> "last" user is asserting it.
>
> Signed-off-by: Patrice Chotard <patrice.chot...@st.com>
> ---
>  drivers/reset/sti-reset.c | 41 ++++++++++++++++++++++++++++++-----------
>  1 file changed, 30 insertions(+), 11 deletions(-)
>

Reviewed-by: Simon Glass <s...@chromium.org>
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to