linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers/perf: Prevent forced unbinding of ARM_DMC620_PMU drivers
@ 2021-02-02  7:58 Qi Liu
  2021-02-02 21:25 ` Will Deacon
  0 siblings, 1 reply; 2+ messages in thread
From: Qi Liu @ 2021-02-02  7:58 UTC (permalink / raw)
  To: will, mark.rutland; +Cc: linux-kernel, linux-arm-kernel, linuxarm

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(+)

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,
--
2.8.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drivers/perf: Prevent forced unbinding of ARM_DMC620_PMU drivers
  2021-02-02  7:58 [PATCH] drivers/perf: Prevent forced unbinding of ARM_DMC620_PMU drivers Qi Liu
@ 2021-02-02 21:25 ` Will Deacon
  0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2021-02-02 21:25 UTC (permalink / raw)
  To: mark.rutland, Qi Liu
  Cc: Will Deacon, catalin.marinas, linux-kernel, linuxarm,
	kernel-team, linux-arm-kernel

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,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-02 21:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02  7:58 [PATCH] drivers/perf: Prevent forced unbinding of ARM_DMC620_PMU drivers Qi Liu
2021-02-02 21:25 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).