Skip to content

Commit

Permalink
pmdomain: raspberrypi-power: Avoid powering down USB
Browse files Browse the repository at this point in the history
During supend to idle any request to power off the USB domain
leads to a timeout. As a temporary workaround don't register
the relevant power off handler.

Link: raspberrypi/firmware#1894
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
  • Loading branch information
lategoodbye committed Jun 23, 2024
1 parent cbdd251 commit 6240930
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drivers/pmdomain/bcm/raspberrypi-power.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,14 @@ static void rpi_common_init_power_domain(struct rpi_power_domains *rpi_domains,

dom->base.name = name;
dom->base.power_on = rpi_domain_on;
dom->base.power_off = rpi_domain_off;

/*
* During supend to idle any request to power off the USB domain
* leads to a timeout. As a temporary workaround don't register
* the relevant power off handler.
*/
if (strcmp("USB", name))
dom->base.power_off = rpi_domain_off;

/*
* Treat all power domains as off at boot.
Expand Down

0 comments on commit 6240930

Please sign in to comment.