From: Udit Kumar <udit.kumar@nxp.com>
To: ACPI Devel Maling List <linux-acpi@vger.kernel.org>
Cc: "lenb@kernel.org" <lenb@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>
Subject: Help on named object in kernel
Date: Wed, 12 Jun 2019 11:48:21 +0000 [thread overview]
Message-ID: <VI1PR04MB4640134AAE394D8063D9F04991EC0@VI1PR04MB4640.eurprd04.prod.outlook.com> (raw)
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.
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
next reply other threads:[~2019-06-12 11:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-12 11:48 Udit Kumar [this message]
2019-06-12 16:37 ` Help on named object in kernel Schmauss, Erik
2019-06-12 17:00 ` [EXT] " Udit Kumar
2019-06-12 17:00 ` Sudeep Holla
2019-06-13 1:20 ` [EXT] " Udit Kumar
2019-06-13 17:08 ` Sudeep Holla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=VI1PR04MB4640134AAE394D8063D9F04991EC0@VI1PR04MB4640.eurprd04.prod.outlook.com \
--to=udit.kumar@nxp.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).