staging: dwc2: add check on dwc2_core_reset return
authorJulien DELACOU <julien.delacou@st.com>
Wed, 20 Nov 2013 16:29:49 +0000 (17:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 19:57:53 +0000 (11:57 -0800)
commitbeb7e592bcfd750951c47580494f13065f0fd44c
tree3d677a4ee663a3f86b3b46e0d7c800862bd51ef0
parentb34085fdc2bb44b3d3cb16521ebd495f86fe717b
staging: dwc2: add check on dwc2_core_reset return

If the GRSTCTL_CSFTRST self-clearing bit never comes
back to 0 for any reason, the controller is under reset
state and cannot be used. It's preferable to abort
initialization in such case.

Signed-off-by: Julien Delacou <julien.delacou@st.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/core.c