From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5CA9C31E46 for ; Wed, 12 Jun 2019 16:37:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C60F720866 for ; Wed, 12 Jun 2019 16:37:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438250AbfFLQhK convert rfc822-to-8bit (ORCPT ); Wed, 12 Jun 2019 12:37:10 -0400 Received: from mga03.intel.com ([134.134.136.65]:20710 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438245AbfFLQhK (ORCPT ); Wed, 12 Jun 2019 12:37:10 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jun 2019 09:37:09 -0700 X-ExtLoop1: 1 Received: from orsmsx106.amr.corp.intel.com ([10.22.225.133]) by orsmga005.jf.intel.com with ESMTP; 12 Jun 2019 09:37:09 -0700 Received: from orsmsx122.amr.corp.intel.com ([169.254.11.228]) by ORSMSX106.amr.corp.intel.com ([169.254.1.121]) with mapi id 14.03.0415.000; Wed, 12 Jun 2019 09:37:09 -0700 From: "Schmauss, Erik" To: Udit Kumar , ACPI Devel Maling List CC: "lenb@kernel.org" , "Rafael J. Wysocki" Subject: RE: Help on named object in kernel Thread-Topic: Help on named object in kernel Thread-Index: AdUhB80T6nszZCo6R5C7RlLTfZjWmQANR+Sw Date: Wed, 12 Jun 2019 16:37:09 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzE5ZjY1YWItOGNhZC00ZWU5LTk0ZjMtODQ5M2MwYTAzYWRjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiRmVFakVxd1hZTytiKzNtSG5SbjRrTjZBRU5mK0FlQW9BWTNhb05Ma0hERFJFcW5ldDRVeEFENGczak5HMVFuNSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org > -----Original Message----- > From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi- > owner@vger.kernel.org] On Behalf Of Udit Kumar > Sent: Wednesday, June 12, 2019 4:48 AM > To: ACPI Devel Maling List > Cc: lenb@kernel.org; Rafael J. Wysocki > Subject: Help on named object in kernel > > Dear ACPI experts, > I need your help on defining named objected in ACPI under _CRS. > In my firmware, I have defined two addresses for my device using > Memory32Fixed and QwordMemory under _CRS. > These two addresses are 32-bit and 64-bit long respectively. > For Memory32Fixed, I gave DescriptorName name as REG0 and for > QwordMemory I gave DescriptorName as SATA. Could you give us the ASL for the code snippet that you're talking about? Erik > > In Linux, all of resource of this device is added under its name (NXP0003:00). > Reading r-> name for all resource of this device is giving name as NXP0003:00. > So I am not able to use existing OS driver using call > platform_get_resource_byname, I have to use platform_get_resource API > with index to get above addresses. > > Could you help me, if there is way to use named resource in acpi. > Fyi, I am on kernel 4.14.122 > > Many Thanks > Udit