Linux Media Controller development
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: "Yong Zhi" <yong.zhi@intel.com>,
	"Bingbu Cao" <bingbu.cao@intel.com>,
	"Dan Scally" <djrscally@gmail.com>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	"Tianshu Qiu" <tian.shu.qiu@intel.com>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Hyungwoo Yang" <hyungwoo.yang@intel.com>,
	"Rajmohan Mani" <rajmohan.mani@intel.com>,
	"Vijaykumar Ramya" <ramya.vijaykumar@intel.com>,
	"Samu Onkalo" <samu.onkalo@intel.com>,
	"Jouni Högander" <jouni.hogander@intel.com>,
	"Jouni Ukkonen" <jouni.ukkonen@intel.com>,
	"Antti Laakso" <antti.laakso@intel.com>
Subject: Re: [PATCH] media: ipu-cio2: Remove unnecessary runtime PM power state setting
Date: Thu, 4 Apr 2024 07:27:47 +0000	[thread overview]
Message-ID: <Zg5Wc6DMPYBqlCFr@kekkonen.localdomain> (raw)
In-Reply-To: <20240325220325.1452712-1-helgaas@kernel.org>

Hi Bjorn,

On Mon, Mar 25, 2024 at 05:03:25PM -0500, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@google.com>
> 
> ipu-cio2 uses generic power management, and pci_pm_runtime_suspend() and
> pci_pm_runtime_resume() already take care of setting the PCI device power
> state, so the driver doesn't need to do it explicitly.
> 
> Remove explicit setting to D3hot or D0 during runtime suspend and resume.
> 
> Remove #defines that are no longer used.
> 
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> Cc: Hyungwoo Yang <hyungwoo.yang@intel.com>
> Cc: Rajmohan Mani <rajmohan.mani@intel.com>
> Cc: Vijaykumar Ramya <ramya.vijaykumar@intel.com>
> Cc: Samu Onkalo <samu.onkalo@intel.com>
> Cc: Jouni Högander <jouni.hogander@intel.com>
> Cc: Jouni Ukkonen <jouni.ukkonen@intel.com>
> Cc: Antti Laakso <antti.laakso@intel.com>
> ---
> This code was initially added by c2a6a07afe4a ("media: intel-ipu3: cio2:
> add new MIPI-CSI2 driver").
> 
> Even at that time, the explicit power state setting should not have been
> necessary, so maybe there's a reason for it.  I have no way to test this,
> so if it *is* needed, please:
> 
>   - Add a comment about the reason and
> 
>   - Convert it to use pci_set_power_state() so the PCI core knows about the
>     change and all the required state transition delays are observed.

Thanks for the patch.

The device seems to work fine with the patch applied so I presume it wasn't
necessary to begin with.

-- 
Regards,

Sakari Ailus

      reply	other threads:[~2024-04-04  7:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-25 22:03 [PATCH] media: ipu-cio2: Remove unnecessary runtime PM power state setting Bjorn Helgaas
2024-04-04  7:27 ` Sakari Ailus [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=Zg5Wc6DMPYBqlCFr@kekkonen.localdomain \
    --to=sakari.ailus@linux.intel.com \
    --cc=antti.laakso@intel.com \
    --cc=bhelgaas@google.com \
    --cc=bingbu.cao@intel.com \
    --cc=djrscally@gmail.com \
    --cc=helgaas@kernel.org \
    --cc=hyungwoo.yang@intel.com \
    --cc=jouni.hogander@intel.com \
    --cc=jouni.ukkonen@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=rajmohan.mani@intel.com \
    --cc=ramya.vijaykumar@intel.com \
    --cc=samu.onkalo@intel.com \
    --cc=tian.shu.qiu@intel.com \
    --cc=yong.zhi@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