Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752746AbbDAHsH (ORCPT ); Wed, 1 Apr 2015 03:48:07 -0400 Received: from mga01.intel.com ([192.55.52.88]:26495 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752167AbbDAHsG (ORCPT ); Wed, 1 Apr 2015 03:48:06 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,503,1422950400"; d="scan'208";a="707178736" Date: Wed, 1 Apr 2015 10:45:53 +0300 From: Mika Westerberg To: Feng Kan Cc: patches@apm.com, jassisinghbrar@gmail.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH] mailbox: add ACPI support for mailbox framework Message-ID: <20150401074553.GV1524@lahna.fi.intel.com> References: <1427836680-13008-1-git-send-email-fkan@apm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1427836680-13008-1-git-send-email-fkan@apm.com> 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: 1049 Lines: 31 On Tue, Mar 31, 2015 at 02:18:00PM -0700, Feng Kan wrote: > This will add support for ACPI parsing of the mboxes attribute > when booting with ACPI table. The client will have a attribute > mimic the dts call "mboxes". In the ACPI case, the client will > mark "mboxes" with the ACPI HID of the mbox it wishes to use. > > Name (_DSD, Package () { > ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > Package () { > Package (2) {"mboxes", "ACPIHID"}, > } > }) Instead of this, why not match against the DT compatible property? Name (_HID, "PRP0001") Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package (2) {"compatible", "your-dt-compatible-string"}, } }) This all will be done for you automatically with zero changes in the code. -- 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/