public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
	jbarnes@virtuousgeek.org
Subject: Re: [PATCH] PCI: Disable ASPM if BIOS asks us to
Date: Thu, 2 Dec 2010 23:51:39 +0100	[thread overview]
Message-ID: <201012022351.39815.rjw@sisk.pl> (raw)
In-Reply-To: <20101202223135.GA12652@srcf.ucam.org>

On Thursday, December 02, 2010, Matthew Garrett wrote:
> On Thu, Dec 02, 2010 at 11:24:31PM +0100, Rafael J. Wysocki wrote:
> > > +	if (!aspm_force) {
> > >  		aspm_disabled = 1;
> > > +		if (clear)
> > > +			aspm_clear_state = clear;
> > 
> > Well, is the if(clear) really necessary?
> 
> If the FADT disables ASPM, and then we fail to get the control bits, 
> we'd call this twice and turn off aspm_clear_state.

Ah, thanks.  So if you used a separate function for handling the "BIOS tells
us there's no ASPM" case, that wouldn't be necessary? ;-)

  reply	other threads:[~2010-12-02 22:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-02 21:55 [PATCH] PCI: Disable ASPM if BIOS asks us to Matthew Garrett
2010-12-02 22:24 ` Rafael J. Wysocki
2010-12-02 22:31   ` Matthew Garrett
2010-12-02 22:51     ` Rafael J. Wysocki [this message]
2010-12-02 22:55       ` Matthew Garrett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201012022351.39815.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=jbarnes@virtuousgeek.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox