]> git.ipfire.org Git - thirdparty/u-boot.git/commit
usb: cdns3: gadget.c: Set fast access bit
authorAswath Govindraju <a-govindraju@ti.com>
Wed, 24 Apr 2024 07:39:11 +0000 (13:09 +0530)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Tue, 14 May 2024 09:55:04 +0000 (11:55 +0200)
commit83eed2cba32ad8c683bd42e0ad5426589f630bd2
tree2f900ff362fcf2b307fccf662791285d23e9a024
parentc8ffd1356d42223cbb8c86280a083cc3c93e6426
usb: cdns3: gadget.c: Set fast access bit

When the device port is in a low power state [U3/L2/Not Connected],
accesses to usb device registers may take a long time. This could lead to
potential core hang when the controller registers are accessed after the
port is disabled by setting DEVDS field. Setting the fast register access
bit ensures that the PHY clock is keeping up in active state.

Therefore, set fast access bit to ensure the accesses to device registers
are quick even in low power states.

commit b5148d946f45 ("usb: cdns3: gadget: set fast access bit") in the
upstream kernel is taken as reference.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240424073911.1943-1-r-gunasekaran@ti.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
drivers/usb/cdns3/gadget.c