Skip to content

Commit fe104ad

Browse files
mkshahcgregkh
authored andcommitted
soc: qcom: rpmh-rsc: Set suppress_bind_attrs flag
[ Upstream commit 1a53ce9 ] 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 <swboyd@chromium.org> Signed-off-by: Maulik Shah <mkshah@codeaurora.org> Link: https://lore.kernel.org/r/1592808805-2437-1-git-send-email-mkshah@codeaurora.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 1e3a04c commit fe104ad

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/soc/qcom/rpmh-rsc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ static struct platform_driver rpmh_driver = {
715715
.driver = {
716716
.name = "rpmh",
717717
.of_match_table = rpmh_drv_match,
718+
.suppress_bind_attrs = true,
718719
},
719720
};
720721

0 commit comments

Comments
 (0)