From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 31 May 2017 21:10:55 -0600 Subject: [U-Boot] [PATCH v4 09/11] usb: host: ohci-generic: add CLOCK support In-Reply-To: <1495630917-25272-10-git-send-email-patrice.chotard@st.com> References: <1495630917-25272-1-git-send-email-patrice.chotard@st.com> <1495630917-25272-10-git-send-email-patrice.chotard@st.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 24 May 2017 at 07:01, wrote: > From: Patrice Chotard > > use array to save enabled clocks reference in order to > disabled them in case of error during probe() or during > driver removal. > > Signed-off-by: Patrice Chotard > --- > > v4: _ use generic_phy_valid() before generic_phy_exit() call > > v3: _ extract in this patch the CLOCK support add-on from previous patch 5 > _ keep enabled clocks reference in list in order to > disable clocks in error path or in .remove callback > > v2: _ add error path management > _ add .remove callback > > drivers/usb/host/ohci-generic.c | 53 +++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 51 insertions(+), 2 deletions(-) > Reviewed-by: Simon Glass