diff options
author | Samuel Holland <samuel@sholland.org> | 2021-09-01 00:05:20 -0500 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-09-13 09:03:20 +0200 |
commit | 66028ddb94c1717411eb7f84a9648e1a94d2a947 (patch) | |
tree | 5ff030ed5f5d5070df895f9b8016e98cf6e73cc3 /drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | |
parent | 9bec2b9c6134052994115d2d3374e96f2ccb9b9d (diff) | |
download | linux-66028ddb94c1717411eb7f84a9648e1a94d2a947.tar.gz |
clk: sunxi-ng: Prevent unbinding CCUs via sysfs
The CCU drivers are not really designed to be unbound. Unbinding a SoC's
main CCU is especially pointless, as very few of the peripherals on the
SoC will work without it. Let's avoid any potential problems by removing
the bind/unbind attributes from sysfs for these drivers.
This change is not applied to the "secondary" CCUs (DE, USB) as those
could reasonably be unbound without making the system useless.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20210901050526.45673-3-samuel@sholland.org
Diffstat (limited to 'drivers/clk/sunxi-ng/ccu-sun8i-a83t.c')
-rw-r--r-- | drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c b/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c index c2ddcd2ddab4..e663ab0c9935 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c +++ b/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c @@ -918,6 +918,7 @@ static struct platform_driver sun8i_a83t_ccu_driver = { .probe = sun8i_a83t_ccu_probe, .driver = { .name = "sun8i-a83t-ccu", + .suppress_bind_attrs = true, .of_match_table = sun8i_a83t_ccu_ids, }, }; |