Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] lib/igt_kmod: Drop PM interaction on unbind
@ 2024-10-30 23:48 Lucas De Marchi
  2024-10-31  1:35 ` ✓ CI.xeBAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Lucas De Marchi @ 2024-10-30 23:48 UTC (permalink / raw)
  To: igt-dev; +Cc: Lucas De Marchi, Umesh Nerlige Ramappa

Setting the power/control to "auto" is not needed and will fail if
kernel is configured without CONFIG_PM. Just stop setting it and it
should still work as before.

Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
---
 lib/igt_kmod.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c
index 6f73f9220..bcbb8dc22 100644
--- a/lib/igt_kmod.c
+++ b/lib/igt_kmod.c
@@ -690,9 +690,6 @@ static int unbind(const char *driver)
 		devfd = openat(dirfd(dir), de->d_name, O_RDONLY | O_CLOEXEC);
 		igt_assert(devfd >= 0);
 
-		ret = igt_sysfs_set(devfd, "power/control", "auto");
-		igt_assert(ret);
-
 		ret = igt_sysfs_set(devfd, "driver/unbind", de->d_name);
 		igt_assert(ret);
 
-- 
2.47.0


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

end of thread, other threads:[~2024-11-04 19:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30 23:48 [PATCH i-g-t] lib/igt_kmod: Drop PM interaction on unbind Lucas De Marchi
2024-10-31  1:35 ` ✓ CI.xeBAT: success for " Patchwork
2024-10-31  1:44 ` ✓ Fi.CI.BAT: " Patchwork
2024-10-31  2:52 ` ✗ CI.xeFULL: failure " Patchwork
2024-10-31 11:52 ` ✗ Fi.CI.IGT: " Patchwork
2024-11-04 19:22 ` [PATCH i-g-t] " Umesh Nerlige Ramappa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox