Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t] lib/igt_kmod: Drop PM interaction on unbind
Date: Mon, 4 Nov 2024 11:22:17 -0800	[thread overview]
Message-ID: <Zyke6aBQfB+lh0a2@orsosgc001> (raw)
In-Reply-To: <20241030234838.857880-1-lucas.demarchi@intel.com>

On Wed, Oct 30, 2024 at 04:48:38PM -0700, Lucas De Marchi wrote:
>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>

LGTM,

Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>

Thanks,
Umesh
>---
> 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
>

      parent reply	other threads:[~2024-11-04 19:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Umesh Nerlige Ramappa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Zyke6aBQfB+lh0a2@orsosgc001 \
    --to=umesh.nerlige.ramappa@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox