Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932824AbbBILP7 (ORCPT ); Mon, 9 Feb 2015 06:15:59 -0500 Received: from mga09.intel.com ([134.134.136.24]:58857 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbbBILP5 (ORCPT ); Mon, 9 Feb 2015 06:15:57 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,543,1418112000"; d="scan'208";a="649428097" Date: Mon, 9 Feb 2015 13:15:38 +0200 From: Mika Westerberg To: "Rafael J. Wysocki" Cc: Suravee Suthikulpanit , Greg Kroah-Hartman , lenb@kernel.org, hdegoede@redhat.com, tj@kernel.org, arnd@arndb.de, mjg59@srcf.ucam.org, grant.likely@linaro.org, hanjun.guo@linaro.org, al.stone@linaro.org, graeme.gregory@linaro.org, leo.duran@amd.com, linux-ide@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, Lv Zheng Subject: Re: [V3 PATCH 1/2] ACPI / scan: Add support for ACPI _CLS device matching Message-ID: <20150209111538.GB1480@lahna.fi.intel.com> References: <1423412404-4690-1-git-send-email-Suravee.Suthikulpanit@amd.com> <1423412404-4690-2-git-send-email-Suravee.Suthikulpanit@amd.com> <6495379.TIpKZohZf0@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6495379.TIpKZohZf0@vostro.rjw.lan> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1211 Lines: 25 On Mon, Feb 09, 2015 at 12:02:43AM +0100, Rafael J. Wysocki wrote: > On Monday, February 09, 2015 12:20:03 AM Suravee Suthikulpanit wrote: > > Device drivers typically use ACPI _HIDs/_CIDs listed in struct device_driver > > acpi_match_table to match devices. However, for generic drivers, we do > > not want to list _HID for all supported devices, and some device classes > > do not have _CID (e.g. SATA, USB). Instead, we can leverage ACPI _CLS, > > which specifies PCI-defined class code (i.e. base-class, subclass and > > programming interface). > > > > This patch adds support for matching ACPI devices using the _CLS method. > > > > Signed-off-by: Suravee Suthikulpanit > > Greg, Mika, any problems with this? Is there some specific reason why this cannot be done in similar way than PCI already does? In other words, stuff _CLS fields to struct acpi_device_id and make match functions match against those if they are != 0. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/