From: "Rafael J. Wysocki" Subject: Re: [PATCH 0/6] ACPI bus conversion Date: Wed, 25 Sep 2013 16:49:04 +0200 Message-ID: <8324764.AkcjZ4DNvq@vostro.rjw.lan> References: <1380112790-2321-1-git-send-email-rui.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7Bit Return-path: Received: from v094114.home.net.pl ([79.96.170.134]:50008 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755625Ab3IYOhn (ORCPT ); Wed, 25 Sep 2013 10:37:43 -0400 In-Reply-To: <1380112790-2321-1-git-send-email-rui.zhang@intel.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Zhang Rui , Matthew Garrett Cc: linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org On Wednesday, September 25, 2013 08:39:44 PM Zhang Rui wrote: > Hi, > > Currently, all the ACPI device objects are enumerated in ACPI bus. > Some of them are used as real devices, while some of them are used > as shadow devices. > > This is misleading and confusing because we have several instances > in Linux driver model for a single device. > So Rafael proposed to stop using ACPI as a shadow bus. > To do this, we need to: > 1. for the devices that already have physical nodes, just leave them > as they are today. > 2. for the devices that are not associated with any physical nodes, > make them platform bus devices. > 3. create the sysfs subtree of ACPI objects under /sys/firmware/acpi/ > 4. remove ACPI bus from driver model. > > This patch set, which converts two different kinds of ACPI > devices/drivers to platform bus, is an experimentation of Step 2 above. > And in general, so far so good. I do not see anything can really stuck > us so far, although I do get a couple of problems when converting > the ideapad_laptop driver and rewrite the patches for a few times. > > I've tested the patches on an Lenovo U300s, which has a VPC2004 device. > Both the AC adapter and the ideapad_laptop drivers work well. > They are shown in platform bus, and their sysfs/debugfs work well. Matthew, any objections to this? Rafael