From 4439db7b8f941e4e418fc4d07e84a2eb31c6f339 Mon Sep 17 00:00:00 2001 From: Mike Tipton Date: Mon, 9 Oct 2023 13:24:20 -0700 Subject: [PATCH] ANDROID: interconnect: Enable debugfs client The interconnect debugfs client supports voting for any path registered with the framework from shell, which is important for debugging and testing. This is normally disabled by default since directly touching bus HW from user space can introduce security issues. However, Android already considers debugfs itself unsafe and doesn't allow mounting it on user devices anyway. A similar approach was taken to enable writable debugfs files for the clock framework in commit 861a024589b3 ("ANDROID: clk: Enable writable debugfs files"). Bug: 304307718 Change-Id: I800692b5151e6f0277f6a6db1ffdb4d4696f8350 Signed-off-by: Mike Tipton --- drivers/interconnect/debugfs-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/interconnect/debugfs-client.c b/drivers/interconnect/debugfs-client.c index bc3fd8a7b9eb..7d616cf85b3f 100644 --- a/drivers/interconnect/debugfs-client.c +++ b/drivers/interconnect/debugfs-client.c @@ -13,7 +13,7 @@ * configuration option for this feature. * People who want to use this will need to modify the source code directly. */ -#undef INTERCONNECT_ALLOW_WRITE_DEBUGFS +#define INTERCONNECT_ALLOW_WRITE_DEBUGFS #if defined(INTERCONNECT_ALLOW_WRITE_DEBUGFS) && defined(CONFIG_DEBUG_FS)