Skip to content

Commit 88093de

Browse files
committed
ATM: at91: pm: add ulp0-fast to the list of wol affected pm modes
SoCs are affected also if suspended to ULP0 fast, WoL configured on ethernet interfaces and WoL packet received while in ULP0 fast. Thus add ULP0 fast to the list of affected PM modes. Fixes: 1e29fb2 ("ARM: at91: pm: add quirks for pm") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
1 parent 1e29fb2 commit 88093de

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • arch/arm/mach-at91

arch/arm/mach-at91/pm.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,6 +1517,7 @@ void __init sama5_pm_init(void)
15171517
};
15181518
static const u32 iomaps[] __initconst = {
15191519
[AT91_PM_ULP0] = AT91_PM_IOMAP(ETHC),
1520+
[AT91_PM_ULP0_FAST] = AT91_PM_IOMAP(ETHC),
15201521
};
15211522
int ret;
15221523

@@ -1533,9 +1534,11 @@ void __init sama5_pm_init(void)
15331534

15341535
/* Quirks applies to ULP0 and ULP1 modes. */
15351536
soc_pm.quirks.eth[AT91_PM_G_ETH].modes = BIT(AT91_PM_ULP0) |
1537+
BIT(AT91_PM_ULP0_FAST) |
15361538
BIT(AT91_PM_ULP1);
15371539
/* Do not suspend in ULP0 if GETH is the only wakeup source. */
1538-
soc_pm.quirks.eth[AT91_PM_G_ETH].dns_modes = BIT(AT91_PM_ULP0);
1540+
soc_pm.quirks.eth[AT91_PM_G_ETH].dns_modes = BIT(AT91_PM_ULP0) |
1541+
BIT(AT91_PM_ULP0_FAST);
15391542
}
15401543

15411544
void __init sama5d2_pm_init(void)
@@ -1546,6 +1549,7 @@ void __init sama5d2_pm_init(void)
15461549
};
15471550
static const u32 iomaps[] __initconst = {
15481551
[AT91_PM_ULP0] = AT91_PM_IOMAP(ETHC),
1552+
[AT91_PM_ULP0_FAST] = AT91_PM_IOMAP(ETHC),
15491553
[AT91_PM_ULP1] = AT91_PM_IOMAP(SHDWC) |
15501554
AT91_PM_IOMAP(ETHC),
15511555
[AT91_PM_BACKUP] = AT91_PM_IOMAP(SHDWC) |
@@ -1575,9 +1579,11 @@ void __init sama5d2_pm_init(void)
15751579

15761580
/* Quirk applies to ULP0 and ULP1 modes. */
15771581
soc_pm.quirks.eth[AT91_PM_G_ETH].modes = BIT(AT91_PM_ULP0) |
1582+
BIT(AT91_PM_ULP0_FAST) |
15781583
BIT(AT91_PM_ULP1);
15791584
/* Do not suspend in ULP0 if GETH is the only wakeup source. */
1580-
soc_pm.quirks.eth[AT91_PM_G_ETH].dns_modes = BIT(AT91_PM_ULP0);
1585+
soc_pm.quirks.eth[AT91_PM_G_ETH].dns_modes = BIT(AT91_PM_ULP0) |
1586+
BIT(AT91_PM_ULP0_FAST);
15811587
}
15821588

15831589
void __init sama7_pm_init(void)

0 commit comments

Comments
 (0)