diff mbox series

drivers/perf: Prevent forced unbinding of ARM_DMC620_PMU drivers

Message ID 1612252686-50329-1-git-send-email-liuqi115@huawei.com (mailing list archive)
State New, archived
Headers show
Series drivers/perf: Prevent forced unbinding of ARM_DMC620_PMU drivers | expand

Commit Message

liuqi (BA) Feb. 2, 2021, 7:58 a.m. UTC
Set "suppress_bind_attrs" to true, so that bind/unbind can be
disabled via sysfs and prevent unbinding ARM_DMC620_PMU drivers
during perf sampling.

Signed-off-by: Qi Liu <liuqi115@huawei.com>
---
 drivers/perf/arm_dmc620_pmu.c | 1 +
 1 file changed, 1 insertion(+)

--
2.8.1

Comments

Will Deacon Feb. 2, 2021, 9:25 p.m. UTC | #1
On Tue, 2 Feb 2021 15:58:06 +0800, Qi Liu wrote:
> Set "suppress_bind_attrs" to true, so that bind/unbind can be
> disabled via sysfs and prevent unbinding ARM_DMC620_PMU drivers
> during perf sampling.

Applied to will (for-next/perf), thanks!

[1/1] drivers/perf: Prevent forced unbinding of ARM_DMC620_PMU drivers
      https://git.kernel.org/will/c/20116dd93f4d

Cheers,
diff mbox series

Patch

diff --git a/drivers/perf/arm_dmc620_pmu.c b/drivers/perf/arm_dmc620_pmu.c
index 27f54c0..66ad5b3 100644
--- a/drivers/perf/arm_dmc620_pmu.c
+++ b/drivers/perf/arm_dmc620_pmu.c
@@ -717,6 +717,7 @@  static struct platform_driver dmc620_pmu_driver = {
 	.driver	= {
 		.name		= DMC620_DRVNAME,
 		.acpi_match_table = dmc620_acpi_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe	= dmc620_pmu_device_probe,
 	.remove	= dmc620_pmu_device_remove,