From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754195Ab2KZG2G (ORCPT ); Mon, 26 Nov 2012 01:28:06 -0500 Received: from mga01.intel.com ([192.55.52.88]:13538 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751893Ab2KZG2C (ORCPT ); Mon, 26 Nov 2012 01:28:02 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.83,318,1352102400"; d="scan'208";a="252421272" Date: Mon, 26 Nov 2012 08:31:18 +0200 From: Mika Westerberg To: "Rafael J. Wysocki" Cc: LKML , Greg Kroah-Hartman , Linux PM list , ACPI Devel Maling List , Zhang Rui , "Svahn, Kai" , Huang Ying , "Lan, Tianyu" , "Zheng, Lv" , Aaron Lu , Grant Likely Subject: Re: [PATCH 0/2] ACPI / platform: Put devices enumerated via ACPI into D0 before probing drivers Message-ID: <20121126063118.GF3867@intel.com> References: <1672179.qgDUs0YdYu@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1672179.qgDUs0YdYu@vostro.rjw.lan> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 25, 2012 at 03:54:14PM +0100, Rafael J. Wysocki wrote: > The following two patches are meant to work around a problem where some > devices may be in the ACPI D3cold power state (power off) before their > drivers' .probe() routines are called, but those routines assume devices > to be operational. They also allow ACPI PM to be used going forward with > the devices in question. We have such machines here. I've tested the series on one of them and it solves the problem - drivers can now access device registers right from the start. > [1/2] - Allow ACPI PM attach/detach routines to change device power states. > [2/2] - Call the ACPI PM attach/detach routines in the platform probe and > remove/shutdown callbacks (and change power states of devices as > necessary). Reviewed-by: Mika Westerberg Tested-by: Mika Westerberg