All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force
@ 2008-09-16 13:27 Sitsofe Wheeler
  2008-09-16 14:08 ` Alan Cox
  2008-09-16 16:19 ` Jesse Barnes
  0 siblings, 2 replies; 5+ messages in thread
From: Sitsofe Wheeler @ 2008-09-16 13:27 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: Li, Shaohua, linux-kernel

From: Sitsofe Wheeler <sitsofe@yahoo.com>

pcie_aspm=force did not work because aspm_force was being double negated
leading to the sanity check failing. Moving a bracket should fix this.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>

---
 drivers/pci/pcie/aspm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
index 9a7c9e1..851f5b8 100644
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@ -527,7 +527,7 @@ static int pcie_aspm_sanity_check(struct pci_dev *pdev)
 		 */
 		pci_read_config_dword(child_dev, child_pos + PCI_EXP_DEVCAP,
 			&reg32);
-		if (!(reg32 & PCI_EXP_DEVCAP_RBER && !aspm_force)) {
+		if (!(reg32 & PCI_EXP_DEVCAP_RBER) && !aspm_force) {
 			printk("Pre-1.1 PCIe device detected, "
 				"disable ASPM for %s. It can be enabled forcedly"
 				" with 'pcie_aspm=force'\n", pci_name(pdev));




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

* Re: [PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force
  2008-09-16 13:27 [PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force Sitsofe Wheeler
@ 2008-09-16 14:08 ` Alan Cox
  2008-09-23 18:53   ` Jesse Barnes
  2008-09-16 16:19 ` Jesse Barnes
  1 sibling, 1 reply; 5+ messages in thread
From: Alan Cox @ 2008-09-16 14:08 UTC (permalink / raw)
  To: Sitsofe Wheeler; +Cc: Jesse Barnes, Li, Shaohua, linux-kernel

On Tue, 16 Sep 2008 14:27:13 +0100
Sitsofe Wheeler <sitsofe@yahoo.com> wrote:

> From: Sitsofe Wheeler <sitsofe@yahoo.com>
> 
> pcie_aspm=force did not work because aspm_force was being double negated
> leading to the sanity check failing. Moving a bracket should fix this.
> 
> Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>

Acked-by: Alan Cox <alan@redhat.com>

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

* Re: [PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force
  2008-09-16 13:27 [PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force Sitsofe Wheeler
  2008-09-16 14:08 ` Alan Cox
@ 2008-09-16 16:19 ` Jesse Barnes
  1 sibling, 0 replies; 5+ messages in thread
From: Jesse Barnes @ 2008-09-16 16:19 UTC (permalink / raw)
  To: Sitsofe Wheeler; +Cc: Li, Shaohua, linux-kernel

On Tuesday, September 16, 2008 6:27 am Sitsofe Wheeler wrote:
> From: Sitsofe Wheeler <sitsofe@yahoo.com>
>
> pcie_aspm=force did not work because aspm_force was being double negated
> leading to the sanity check failing. Moving a bracket should fix this.
>
> Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>

Thanks, I applied this to my for-linus branch so we can try to get this fixed 
for 2.6.27.

Jesse

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

* Re: [PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force
  2008-09-16 14:08 ` Alan Cox
@ 2008-09-23 18:53   ` Jesse Barnes
  0 siblings, 0 replies; 5+ messages in thread
From: Jesse Barnes @ 2008-09-23 18:53 UTC (permalink / raw)
  To: Alan Cox; +Cc: Sitsofe Wheeler, Li, Shaohua, linux-kernel

On Tuesday, September 16, 2008 7:08 am Alan Cox wrote:
> On Tue, 16 Sep 2008 14:27:13 +0100
>
> Sitsofe Wheeler <sitsofe@yahoo.com> wrote:
> > From: Sitsofe Wheeler <sitsofe@yahoo.com>
> >
> > pcie_aspm=force did not work because aspm_force was being double negated
> > leading to the sanity check failing. Moving a bracket should fix this.
> >
> > Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
>
> Acked-by: Alan Cox <alan@redhat.com>

Not sure if I already sent you a note, but this is queued up in my for-linus 
branch.  I'll be sending Linus a pull request later today for it.

Thanks,
Jesse

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

* Re: [PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force
@ 2008-09-23 19:42 Sitsofe Wheeler
  0 siblings, 0 replies; 5+ messages in thread
From: Sitsofe Wheeler @ 2008-09-23 19:42 UTC (permalink / raw)
  To: Jesse Barnes, Alan Cox; +Cc: Li, Shaohua, linux-kernel

> From: Jesse Barnes <jbarnes@virtuousgeek.org>
> Not sure if I already sent you a note, but this is queued up in my for-linus 
> branch.  I'll be sending Linus a pull request later today for it.


Yes you did - cheers!


      

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

end of thread, other threads:[~2008-09-23 19:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 13:27 [PATCH 2.6.27-rc6] PCI: Fix pcie_aspm=force Sitsofe Wheeler
2008-09-16 14:08 ` Alan Cox
2008-09-23 18:53   ` Jesse Barnes
2008-09-16 16:19 ` Jesse Barnes
  -- strict thread matches above, loose matches on Subject: below --
2008-09-23 19:42 Sitsofe Wheeler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.