From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752098Ab1AJHKT (ORCPT ); Mon, 10 Jan 2011 02:10:19 -0500 Received: from mga02.intel.com ([134.134.136.20]:58330 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751593Ab1AJHKQ (ORCPT ); Mon, 10 Jan 2011 02:10:16 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,299,1291622400"; d="scan'208";a="695183271" Date: Mon, 10 Jan 2011 15:10:13 +0800 From: Yin Kangkai To: Matthew Garrett Cc: platform-driver-x86 , linux-kernel@vger.kernel.org, "Wang, Yong Y" , "Liu, Bing Wei" , Corentin Chary Subject: Re: [PATCH V2] platform-driver-x86: ACPI EC Extra driver for Oaktrail Message-ID: <20110110071013.GJ30215@kai-debian> References: <20110106025949.GJ9496@kai-debian> <20110107074115.GH30215@kai-debian> <20110107220940.GA32575@srcf.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110107220940.GA32575@srcf.ucam.org> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2011-01-07, 22:09 +0000, Matthew Garrett wrote: > On Fri, Jan 07, 2011 at 03:41:15PM +0800, Yin Kangkai wrote: > > > This driver implements an Extra ACPI EC driver for products based on Intel > > Oaktrail platform. It is programming the EC space, through existing ACPI EC > > driver, to provide user space layer the sysfs and rfkill interfaces to > > enable/disable the Camera, Bluetooth, GPS, WiFi, 3G, and to show the status of > > Touchscreen. > > As far as I can tell, the only ACPI aspect of this driver is that it > makes use of the ACPI EC driver? In that case I think the name's > misleading. OK, am rename the driver "EC Extra driver...", > > @@ -0,0 +1,13 @@ > > +What: /sys/devices/platform/intel_oaktrail/camera > > +Date: Jan 2011 > > +KernelVersion: 2.6.37 > > +Contact: "Yin Kangkai" > > +Description: > > + Control the camera. 1 means on, 0 means off. > > We really need a better approach for this kind of thing... > > > +What: /sys/devices/platform/intel_oaktrail/touchscreen > > +Date: Jan 2011 > > +KernelVersion: 2.6.37 > > +Contact: "Yin Kangkai" > > +Description: > > + Show the status of the touch screen. 1 means on, 0 means off. > > And this one, but we don't have one yet so I think this is ok. > > > + wwan_rfkill = oaktrail_rfkill_new("oaktrail-wwan", > > + RFKILL_TYPE_WWAN, > > + OT_EC_WWAN_MASK); > > Do you have any way to identify whether the hardware has all these > features before registering? AFAIK, no, sorry. > > +static struct dmi_system_id __initdata oaktrail_dmi_table[] = { > > + { > > + .ident = "OakTrail platform", > > + .matches = { > > + DMI_MATCH(DMI_PRODUCT_NAME, "OakTrail platform"), > > + }, > > + .callback = dmi_check_cb > > + }, > > + { } > > +}; > > Is any hardware actually going to ship with this identifier, or will > vendors change the string? I think vendors and OEMs will change this string. But we can add the DMI_BOARD_NAME, DMI_BOARD_VERSION, etc. back later, can we? Thanks.