aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaulik Shah <[email protected]>2020-06-22 12:23:25 +0530
committerBjorn Andersson <[email protected]>2020-06-22 12:23:05 -0700
commit1a53ce9ab4faeb841b33d62d23283dc76c0e7c5a (patch)
tree3d008529771a3c90210fdc4b9df911157f9967ad
parent30dee220c8502a478477cd503729994e8dc850c2 (diff)
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]>
-rw-r--r--drivers/soc/qcom/rpmh-rsc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c
index 076fd27f3081..752a5619f715 100644
--- a/drivers/soc/qcom/rpmh-rsc.c
+++ b/drivers/soc/qcom/rpmh-rsc.c
@@ -1023,6 +1023,7 @@ static struct platform_driver rpmh_driver = {
.driver = {
.name = "rpmh",
.of_match_table = rpmh_drv_match,
+ .suppress_bind_attrs = true,
},
};