[U-Boot] [PATCH 1/1] reset: sti: add deassert counter in reset channel descriptor

Simon Glass sjg at chromium.org
Mon May 22 20:26:37 UTC 2017


On 18 May 2017 at 01:58,  <patrice.chotard at st.com> wrote:
> From: Patrice Chotard <patrice.chotard at 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.chotard at st.com>
> ---
>  drivers/reset/sti-reset.c | 41 ++++++++++++++++++++++++++++++-----------
>  1 file changed, 30 insertions(+), 11 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list