Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758131Ab0LBWbn (ORCPT ); Thu, 2 Dec 2010 17:31:43 -0500 Received: from cavan.codon.org.uk ([93.93.128.6]:38263 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757677Ab0LBWbm (ORCPT ); Thu, 2 Dec 2010 17:31:42 -0500 Date: Thu, 2 Dec 2010 22:31:35 +0000 From: Matthew Garrett To: "Rafael J. Wysocki" 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 Message-ID: <20101202223135.GA12652@srcf.ucam.org> References: <1291326904-14822-1-git-send-email-mjg@redhat.com> <201012022324.31760.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201012022324.31760.rjw@sisk.pl> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 627 Lines: 18 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. -- Matthew Garrett | mjg59@srcf.ucam.org -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/