linux/drivers/clk/at91
Clément Léger c405f5c15e clk: at91: check pmc node status before registering syscore ops
Currently, at91 pmc driver always register the syscore_ops whatever
the status of the pmc node that has been found. When set as secure
and disabled, the pmc should not be accessed or this will generate
abort exceptions.
To avoid this, add a check on node availability before registering
the syscore operations.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Link: https://lore.kernel.org/r/20210913082633.110168-1-clement.leger@bootlin.com
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Fixes: b3b02eac33 ("clk: at91: Add sama5d2 suspend/resume")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2021-10-07 20:47:47 -07:00
..
at91rm9200.c clk: at91: Fix the declaration of the clocks 2021-02-09 16:54:44 -08:00
at91sam9g45.c clk: at91: Fix the declaration of the clocks 2021-02-09 16:54:44 -08:00
at91sam9n12.c clk: at91: Fix the declaration of the clocks 2021-02-09 16:54:44 -08:00
at91sam9rl.c clk: at91: Fix the declaration of the clocks 2021-02-09 16:54:44 -08:00
at91sam9x5.c clk: at91: Fix the declaration of the clocks 2021-02-09 16:54:44 -08:00
at91sam9260.c clk: at91: Fix the declaration of the clocks 2021-02-09 16:54:44 -08:00
clk-audio-pll.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-generated.c clk: at91: clk-generated: Limit the requested rate to our range 2021-08-28 22:28:24 -07:00
clk-h32mx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-i2s-mux.c clk: at91: move DT compatibility code to its own file 2018-10-17 10:45:39 -07:00
clk-main.c clk: at91: clk-main: update key before writing AT91_CKGR_MOR 2020-10-13 19:59:01 -07:00
clk-master.c clk: at91: clk-master: re-factor master clock 2020-12-19 11:50:56 -08:00
clk-peripheral.c clk: at91: remove the checking of parent_name 2020-10-13 19:59:01 -07:00
clk-pll.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-plldiv.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-programmable.c clk: at91: clk-programmable: add mux_table option 2020-07-24 02:19:08 -07:00
clk-sam9x60-pll.c clk: at91: clk-sam9x60-pll: allow runtime changes for pll 2020-12-19 11:50:55 -08:00
clk-slow.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-smd.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-system.c clk: at91: replace conditional operator with double logical not 2020-07-24 02:19:08 -07:00
clk-usb.c clk: at91: usb: introduce num_parents in driver's structure 2020-02-12 15:31:47 -08:00
clk-utmi.c clk: at91: clk-utmi: add utmi support for sama7g5 2020-07-24 02:19:08 -07:00
dt-compat.c clk: at91: clk-master: re-factor master clock 2020-12-19 11:50:56 -08:00
Makefile clk: at91: sama7g5: add clock support for sama7g5 2020-07-24 02:19:09 -07:00
pmc.c clk: at91: check pmc node status before registering syscore ops 2021-10-07 20:47:47 -07:00
pmc.h clk: at91: clk-master: re-factor master clock 2020-12-19 11:50:56 -08:00
sam9x60.c clk: at91: sam9x60: remove atmel,osc-bypass support 2020-12-19 15:33:00 -08:00
sama5d2.c clk: at91: Fix the declaration of the clocks 2021-02-09 16:54:44 -08:00
sama5d3.c clk: at91: Fix the declaration of the clocks 2021-02-09 16:54:44 -08:00
sama5d4.c clk: at91: Fix the declaration of the clocks 2021-02-09 16:54:44 -08:00
sama7g5.c clk: at91: sama7g5: remove all kernel-doc & kernel-doc warnings 2021-08-28 21:19:52 -07:00
sckc.c clk: at91: sckc: register slow_rc with accuracy option 2020-07-24 02:19:08 -07:00