From: Tom Rini Date: Mon, 5 Jun 2017 20:21:05 -0400 Subject: [U-Boot] [U-Boot, 1/1] reset: sti: add deassert counter in reset channel descriptor In-Reply-To: <1495094280-17440-1-git-send-email-patrice.chotard@st.com> References: <1495094280-17440-1-git-send-email-patrice.chotard@st.com> Message-ID: <20170606002105.GN10782@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, May 18, 2017 at 09:58:00AM +0200, Patrice Chotard wrote: > From: Patrice Chotard > > 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 > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: