Skip to contentSkip to conversation

vt6655/trivial: replace numeric with standard PM state macros

PATCH Applied Yijing Wang 2 participants 4 messages Jun 27, 2013 – Jul 2, 2013 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 vt6655/trivial: replace numeric with standard PM state macros

Use standard PM state macros PCI_Dx instead of numeric 0/1/2..

Cc Forest Bond <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jiri Kosina <[email protected]>
Cc Devendra Naga <[email protected]>
Cc Joe Perches <[email protected]>
Cc Marcos Paulo de Souza <[email protected]>
Cc Bill Pemberton <[email protected]>
---
 drivers/staging/vt6655/device_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/vt6655/device_main.c +2 -2
index 08b250f..7f36a71 100644
@@ -3370,8 +3370,8 @@ viawget_resume(struct pci_dev *pcid)
 	PSMgmtObject  pMgmt = pDevice->pMgmt;
 	int power_status;   // to silence the compiler
 
-	power_status = pci_set_power_state(pcid, 0);
-	power_status = pci_enable_wake(pcid, 0, 0);
+	power_status = pci_set_power_state(pcid, PCI_D0);
+	power_status = pci_enable_wake(pcid, PCI_D0, 0);
 	pci_restore_state(pcid);
 	if (netif_running(pDevice->dev)) {
 		spin_lock_irq(&pDevice->lock);
Signature · 1 line
1.7.1
#1 lore raw

ping...?

Quoted 32 lines · Yijing Wang

Use standard PM state macros PCI_Dx instead of numeric 0/1/2..

Cc Forest Bond <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jiri Kosina <[email protected]>
Cc Devendra Naga <[email protected]>
Cc Joe Perches <[email protected]>
Cc Marcos Paulo de Souza <[email protected]>
Cc Bill Pemberton <[email protected]>
---
 drivers/staging/vt6655/device_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/vt6655/device_main.c +2 -2
index 08b250f..7f36a71 100644
@@ -3370,8 +3370,8 @@ viawget_resume(struct pci_dev *pcid)
 	PSMgmtObject  pMgmt = pDevice->pMgmt;
 	int power_status;   // to silence the compiler
 
-	power_status = pci_set_power_state(pcid, 0);
-	power_status = pci_enable_wake(pcid, 0, 0);
+	power_status = pci_set_power_state(pcid, PCI_D0);
+	power_status = pci_enable_wake(pcid, PCI_D0, 0);
 	pci_restore_state(pcid);
 	if (netif_running(pDevice->dev)) {
 		spin_lock_irq(&pDevice->lock);
Signature · 2 lines
Thanks!
Yijing
#2 lore raw
Quoted 1 line · Yijing Wang

ping...?

You are asking yourself the status of a patch? Interesting...

Quoted 1 line · Yijing Wang

You sent this after I closed my staging tree, so it will be applied after 3.11-rc1 is out, don't worry, it's not lost.

thanks,

greg k-h

#3 lore raw
Quoted 9 lines · Greg Kroah-Hartman
Quoted 1 line · Yijing Wang

ping...?

You are asking yourself the status of a patch? Interesting...

Quoted 1 line · Yijing Wang

You sent this after I closed my staging tree, so it will be applied after 3.11-rc1 is out, don't worry, it's not lost.

Hi Greg,
I get it, thanks for your reply.

Thanks!
Yijing.

Quoted 2 lines

.

Signature · 2 lines
Thanks!
Yijing