ppp: add sourcefilter option support
[openwrt/staging/stintel.git] / target / linux / at91 / patches-5.15 / 104-clk-at91-pmc-add-sama7g5-to-the-list-of-available-pm.patch
1 From 8a38e0dda46c9d941a61d8b2e6c14704531b7871 Mon Sep 17 00:00:00 2001
2 From: Claudiu Beznea <claudiu.beznea@microchip.com>
3 Date: Mon, 11 Oct 2021 14:27:10 +0300
4 Subject: [PATCH 239/247] clk: at91: pmc: add sama7g5 to the list of available
5 pmcs
6
7 Add SAMA7G5 to the list of available PMCs such that the suspend/resume
8 code for clocks to be used on backup mode.
9
10 Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
11 Link: https://lore.kernel.org/r/20211011112719.3951784-7-claudiu.beznea@microchip.com
12 Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
13 Signed-off-by: Stephen Boyd <sboyd@kernel.org>
14 ---
15 drivers/clk/at91/pmc.c | 5 +++--
16 1 file changed, 3 insertions(+), 2 deletions(-)
17
18 --- a/drivers/clk/at91/pmc.c
19 +++ b/drivers/clk/at91/pmc.c
20 @@ -148,8 +148,9 @@ static struct syscore_ops pmc_syscore_op
21 .resume = at91_pmc_resume,
22 };
23
24 -static const struct of_device_id sama5d2_pmc_dt_ids[] = {
25 +static const struct of_device_id pmc_dt_ids[] = {
26 { .compatible = "atmel,sama5d2-pmc" },
27 + { .compatible = "microchip,sama7g5-pmc", },
28 { /* sentinel */ }
29 };
30
31 @@ -157,7 +158,7 @@ static int __init pmc_register_ops(void)
32 {
33 struct device_node *np;
34
35 - np = of_find_matching_node(NULL, sama5d2_pmc_dt_ids);
36 + np = of_find_matching_node(NULL, pmc_dt_ids);
37 if (!np)
38 return -ENODEV;
39