]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: renesas_usbhs: add wait after initialization for R-Car Gen3
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 20 Oct 2016 04:19:19 +0000 (13:19 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 15:38:49 +0000 (16:38 +0100)
commit241208e7b721ffb8b6b44fd8446c2bf5fb55aa0e
treed7e711d45b51347f6eb04f1be9909f2ffc8ba62a
parent00dbeb06292be1045f4b96da22696e2e138bf2c3
usb: renesas_usbhs: add wait after initialization for R-Car Gen3

commit b76032396d7958f006bccf5fb2535beb5526837c upstream.

Since the controller on R-Car Gen3 doesn't have any status registers
to detect initialization (LPSTS.SUSPM = 1) and the initialization needs
up to 45 usec, this patch adds wait after the initialization. Otherwise,
writing other registers (e.g. INTENB0) will fail.

Fixes: de18757e272d ("usb: renesas_usbhs: add R-Car Gen3 power control")
Cc: <balbi@kernel.org>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/renesas_usbhs/rcar3.c