]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: ipu-cio2: Remove unnecessary runtime PM power state setting
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 25 Mar 2024 22:03:25 +0000 (17:03 -0500)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 10 Apr 2024 13:15:31 +0000 (15:15 +0200)
commitca7329c617963a271c1694f18808bc528c0db7ba
tree6013adbc425feecb7f0f1d3e401729995cc8420d
parentf55aa90b88994f58796022af71001cda2a4ddf83
media: ipu-cio2: Remove unnecessary runtime PM power state setting

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>
[Sakari Ailus: Remove now-redundant local variables.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/intel/ipu3/ipu3-cio2.c
drivers/media/pci/intel/ipu3/ipu3-cio2.h