]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: core: move the core check before soft reset
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 29 Aug 2011 11:56:36 +0000 (13:56 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 9 Sep 2011 10:02:09 +0000 (13:02 +0300)
commit369a1b52ea5815b7140ab149c305b17d9b70be1f
treec3478d45ed646a0bf5b3dd18fd8f0f8902ce40ff
parent5fb9b3a1da91473006471428417f65836de17ca8
usb: dwc3: core: move the core check before soft reset

We read the DWC3_GSNPSID register to make sure we got the correct
register offset passed. One of the recent commits moved the soft reset
before this so in case of the wrong offset we end up with "reset timed
out". This patch moves the "id" check before the reset again.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c