From patchwork Wed May 19 15:43:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Garrett X-Patchwork-Id: 100893 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4JFhX84021940 for ; Wed, 19 May 2010 15:43:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752351Ab0ESPnc (ORCPT ); Wed, 19 May 2010 11:43:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14857 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752044Ab0ESPnb (ORCPT ); Wed, 19 May 2010 11:43:31 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4JFhSMg011442 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 19 May 2010 11:43:28 -0400 Received: from cavan.codon.org.uk (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4JFhQcn002654 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Wed, 19 May 2010 11:43:27 -0400 Received: from 209-6-34-250.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.34.250] helo=localhost.localdomain) by cavan.codon.org.uk with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1OElQZ-0006LG-DI; Wed, 19 May 2010 16:43:23 +0100 From: Matthew Garrett To: linux-acpi@vger.kernel.org Cc: robert.moore@intel.com, lenb@kernel.org, Matthew Garrett Subject: [PATCH 3/3] ACPI: Enable Windows ioport access compatibility on Windows-compatible systems Date: Wed, 19 May 2010 11:43:11 -0400 Message-Id: <1274283791-3380-3-git-send-email-mjg@redhat.com> In-Reply-To: <1274283791-3380-1-git-send-email-mjg@redhat.com> References: <1274283791-3380-1-git-send-email-mjg@redhat.com> X-SA-Do-Not-Run: Yes X-SA-Exim-Connect-IP: 209.6.34.250 X-SA-Exim-Mail-From: mjg@redhat.com X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 19 May 2010 15:43:33 +0000 (UTC) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 743576b..a10144b 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -904,6 +904,14 @@ static int __init acpi_bus_init(void) goto error1; } + /* + * _SB_._INI has been called, so any _OSI requests should now have + * been completed - enable any OS-specific workarounds + */ + + if (acpi_gbl_osi_data >= ACPI_OSI_WIN_2000) + acpi_gbl_ignore_high_ioport_bits = TRUE; + acpi_early_processor_set_pdc(); /*