Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v3] hid: remove NO_D3 flag when remove driver
@ 2019-06-02  0:17 hongyan.song
  2019-06-26 12:07 ` Jiri Kosina
  0 siblings, 1 reply; 5+ messages in thread
From: hongyan.song @ 2019-06-02  0:17 UTC (permalink / raw)
  To: jikos, srinivas.pandruvada
  Cc: linux-input, linux-iio, hdegoede, jic23, even.xu, hongyan.song

From: Song Hongyan <hongyan.song@intel.com>

Remove the NO_D3 flag when remove the driver and let device enter
into D3, it will save more power.

Signed-off-by: Song Hongyan <hongyan.song@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
v3 changes: 
After test the former implmentation, we found FW will enter D3 when
system enter into S0i3. Change the implementation to meet the requirement:
device enter D3 and have no impact to ISH platform.

 drivers/hid/intel-ish-hid/ipc/pci-ish.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hid/intel-ish-hid/ipc/pci-ish.c b/drivers/hid/intel-ish-hid/ipc/pci-ish.c
index b239db2..5daa16f 100644
--- a/drivers/hid/intel-ish-hid/ipc/pci-ish.c
+++ b/drivers/hid/intel-ish-hid/ipc/pci-ish.c
@@ -193,6 +193,7 @@ static void ish_remove(struct pci_dev *pdev)
 	struct ishtp_device *ishtp_dev = pci_get_drvdata(pdev);
 
 	ishtp_bus_remove_all_clients(ishtp_dev, false);
+	pdev->dev_flags &= ~PCI_DEV_FLAGS_NO_D3;
 	ish_device_disable(ishtp_dev);
 }
 
-- 
2.7.4


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

end of thread, other threads:[~2019-06-27  0:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-02  0:17 [PATCH v3] hid: remove NO_D3 flag when remove driver hongyan.song
2019-06-26 12:07 ` Jiri Kosina
2019-06-26 15:30   ` Srinivas Pandruvada
2019-06-26 21:35     ` Jiri Kosina
2019-06-27  0:43       ` Song, Hongyan

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