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

* Re: [PATCH v3] hid: remove NO_D3 flag when remove driver
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Jiri Kosina @ 2019-06-26 12:07 UTC (permalink / raw)
  To: hongyan.song
  Cc: srinivas.pandruvada, linux-input, linux-iio, hdegoede, jic23,
	even.xu

On Sun, 2 Jun 2019, hongyan.song@intel.com wrote:

> 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.

Srinivas, I'd prefer changes like this to go to Linus tree in merge window 
and not -rc phase, so I'll do that unless you tell me there is a good 
reason to push it to Linus still in -rc.

Thanks,

-- 
Jiri Kosina
SUSE Labs


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

* Re: [PATCH v3] hid: remove NO_D3 flag when remove driver
  2019-06-26 12:07 ` Jiri Kosina
@ 2019-06-26 15:30   ` Srinivas Pandruvada
  2019-06-26 21:35     ` Jiri Kosina
  0 siblings, 1 reply; 5+ messages in thread
From: Srinivas Pandruvada @ 2019-06-26 15:30 UTC (permalink / raw)
  To: Jiri Kosina, hongyan.song
  Cc: linux-input, linux-iio, hdegoede, jic23, even.xu

On Wed, 2019-06-26 at 14:07 +0200, Jiri Kosina wrote:
> On Sun, 2 Jun 2019, hongyan.song@intel.com wrote:
> 
> > 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.
> 
> Srinivas, I'd prefer changes like this to go to Linus tree in merge
> window 
> and not -rc phase, so I'll do that unless you tell me there is a
> good 
> reason to push it to Linus still in -rc.
Correct. I will tell you if it is important enough to go to -rc
release, otherwise all changes you can assume for the next merge
window.

This change is also for the next merge window.

Thanks,
Srinivas

> 
> Thanks,
> 


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

* Re: [PATCH v3] hid: remove NO_D3 flag when remove driver
  2019-06-26 15:30   ` Srinivas Pandruvada
@ 2019-06-26 21:35     ` Jiri Kosina
  2019-06-27  0:43       ` Song, Hongyan
  0 siblings, 1 reply; 5+ messages in thread
From: Jiri Kosina @ 2019-06-26 21:35 UTC (permalink / raw)
  To: Srinivas Pandruvada
  Cc: hongyan.song, linux-input, linux-iio, hdegoede, jic23, even.xu

On Wed, 26 Jun 2019, Srinivas Pandruvada wrote:

> > Srinivas, I'd prefer changes like this to go to Linus tree in merge 
> > window and not -rc phase, so I'll do that unless you tell me there is 
> > a good reason to push it to Linus still in -rc.
> Correct. I will tell you if it is important enough to go to -rc
> release, otherwise all changes you can assume for the next merge
> window.

Thanks for your confirmation. Now queued in for-5.3/ish.

-- 
Jiri Kosina
SUSE Labs


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

* RE: [PATCH v3] hid: remove NO_D3 flag when remove driver
  2019-06-26 21:35     ` Jiri Kosina
@ 2019-06-27  0:43       ` Song, Hongyan
  0 siblings, 0 replies; 5+ messages in thread
From: Song, Hongyan @ 2019-06-27  0:43 UTC (permalink / raw)
  To: Jiri Kosina, Srinivas Pandruvada
  Cc: linux-input@vger.kernel.org, linux-iio@vger.kernel.org,
	hdegoede@redhat.com, jic23@kernel.org, Xu, Even

Hi,
Thanks Jiri& Srinivas for the merge schedule information.

BR
Hongyan
-----Original Message-----
From: Jiri Kosina [mailto:jikos@kernel.org] 
Sent: Thursday, June 27, 2019 5:35 AM
To: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Song, Hongyan <hongyan.song@intel.com>; linux-input@vger.kernel.org; linux-iio@vger.kernel.org; hdegoede@redhat.com; jic23@kernel.org; Xu, Even <even.xu@intel.com>
Subject: Re: [PATCH v3] hid: remove NO_D3 flag when remove driver

On Wed, 26 Jun 2019, Srinivas Pandruvada wrote:

> > Srinivas, I'd prefer changes like this to go to Linus tree in merge 
> > window and not -rc phase, so I'll do that unless you tell me there 
> > is a good reason to push it to Linus still in -rc.
> Correct. I will tell you if it is important enough to go to -rc 
> release, otherwise all changes you can assume for the next merge 
> window.

Thanks for your confirmation. Now queued in for-5.3/ish.

--
Jiri Kosina
SUSE Labs


^ permalink raw reply	[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