Skip to content

Commit 1a53ce9

Browse files
mkshahcandersson
authored andcommitted
soc: qcom: rpmh-rsc: Set suppress_bind_attrs flag
rpmh-rsc driver is fairly core to system and should not be removable once its probed. However it allows to unbind driver from sysfs using below command which results into a crash on sc7180. echo 18200000.rsc > /sys/bus/platform/drivers/rpmh/unbind Lets prevent unbind at runtime by setting suppress_bind_attrs flag. Reviewed-by: Stephen Boyd <[email protected]> Signed-off-by: Maulik Shah <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 30dee22 commit 1a53ce9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/soc/qcom/rpmh-rsc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,7 @@ static struct platform_driver rpmh_driver = {
10231023
.driver = {
10241024
.name = "rpmh",
10251025
.of_match_table = rpmh_drv_match,
1026+
.suppress_bind_attrs = true,
10261027
},
10271028
};
10281029

0 commit comments

Comments
 (0)