From patchwork Wed Jul 25 03:41:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 1234991 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id E9C5A3FD4F for ; Wed, 25 Jul 2012 03:50:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932845Ab2GYDmv (ORCPT ); Tue, 24 Jul 2012 23:42:51 -0400 Received: from mail-qc0-f174.google.com ([209.85.216.174]:46154 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932816Ab2GYDmt (ORCPT ); Tue, 24 Jul 2012 23:42:49 -0400 Received: by mail-qc0-f174.google.com with SMTP id o28so169000qcr.19 for ; Tue, 24 Jul 2012 20:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:reply-to:organization; bh=PISjdBvNaxVM/nZqQfzFBnlYjT79+UR/AnTuG3xvGbY=; b=bl4cOvl37isdlM40lhAK4su1efO18VDn/x2wPN6oGXGp96y+uMBn4TglJhJi7y7RCP EnxrMsoIFB6XvqJ8jAPZO0Z7N5EJlTfl8ZP8UI/PDFP6K6yqdkEg73XlTcHbq4VKegby JzjrYIFZBXUq8qvxBB0Yka/5+GF01lpTwVMmZueS7DOZb5dac3+WnkHgBE3nruAHSaBa Yc81zhVZOWWb3L7tIKUhx1vKbuuy/LCmtjfAFsXPSNUyDQtiGkVa1/FimebHnjwUVEg0 xIFnOajGEdvwxRdVbUfWikWHUEPB2nviLXnKt4HHh7RserYLPA/69TmZk3j6yTHV5mCk qm2w== Received: by 10.229.136.144 with SMTP id r16mr10482560qct.152.1343187768997; Tue, 24 Jul 2012 20:42:48 -0700 (PDT) Received: from x980.localdomain6 (h184-61-125-197.altnnh.dsl.dynamic.tds.net. [184.61.125.197]) by mx.google.com with ESMTPS id et6sm15489186qab.8.2012.07.24.20.42.47 (version=SSLv3 cipher=OTHER); Tue, 24 Jul 2012 20:42:48 -0700 (PDT) From: Len Brown To: linux-acpi@vger.kernel.org, linux-pm@lists.linux-foundation.org Cc: linux-kernel@vger.kernel.org, Toshi Kani , Len Brown Subject: [PATCH 25/52] ACPI: Set hotplug _OST support bit to _OSC Date: Tue, 24 Jul 2012 23:41:21 -0400 Message-Id: X-Mailer: git-send-email 1.7.12.rc0 In-Reply-To: <1343187708-19532-1-git-send-email-lenb@kernel.org> References: <1343187708-19532-1-git-send-email-lenb@kernel.org> In-Reply-To: <6af1c4fc5227af65092ebc848989693562bfa3e8.1343187617.git.len.brown@intel.com> References: <6af1c4fc5227af65092ebc848989693562bfa3e8.1343187617.git.len.brown@intel.com> Reply-To: Len Brown Organization: Intel Open Source Technology Center Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Toshi Kani When ACPI_HOTPLUG_OST is defined, set hotplug _OST support bit OSC_SB_HOTPLUG_OST_SUPPORT to indicate that the OS supports hotplug _OST by calling the platform-wide ACPI Operating System Capabilities (_OSC). Signed-off-by: Toshi Kani Signed-off-by: Len Brown --- drivers/acpi/bus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 3188da3..3d4fc7a 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -548,6 +548,10 @@ static void acpi_bus_osc_support(void) capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_PPC_OST_SUPPORT; #endif +#ifdef ACPI_HOTPLUG_OST + capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_HOTPLUG_OST_SUPPORT; +#endif + if (!ghes_disable) capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_APEI_SUPPORT; if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle)))