usb: cdns3: gadget: set fast access bit
authorPeter Chen <peter.chen@nxp.com>
Tue, 1 Sep 2020 02:33:49 +0000 (10:33 +0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 2 Oct 2020 06:57:40 +0000 (09:57 +0300)
commitb5148d946f45bb7a780c2dc45a20f5b47e73f995
tree8af70bc81ae8dcb47a5e542bbe9f0fc620f4f49c
parent50642709f6590fe40afa6d22c32f23f5b842aed5
usb: cdns3: gadget: set fast access bit

Below is the recommendation from Cadence designer:
Using this bit to be sure that PHY clock is keeping up in active
state. It's good to keep Fast Access bit enabled as long as there
is any access to USB register.

It is used to fix the potential ARM core hang when visit controller
register after DEVDS (.pullup is cleared) is set, the threaded irq
may be scheduled at that time.

Cc: Pawel Laszczak <pawell@cadence.com>
Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/cdns3/gadget.c