From: Matthew Garrett <mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
To: Lukas Wunner <lukas-JFq808J9C/izQB+pC5nmwQ@public.gmane.org>
Cc: Leif Liddy <leif.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Mika Westerberg
<mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: ACPI SPI slave device
Date: Thu, 3 Mar 2016 17:45:35 +0000 [thread overview]
Message-ID: <20160303174535.GA11728@srcf.ucam.org> (raw)
In-Reply-To: <20160303114740.GA24132-JFq808J9C/izQB+pC5nmwQ@public.gmane.org>
On Thu, Mar 03, 2016 at 12:47:40PM +0100, Lukas Wunner wrote:
> I think you want to add a quirk to spi.c:acpi_spi_add_device()
> which checks if acpi_dev_get_resources() returned nothing and
> the HID of the acpi_device is APP000D: Search the namespace below
> the acpi_device's handle for _CRS.UBUF (using acpi_get_handle()).
> If this exists, call acpi_walk_resource_buffer() on it (with the
> acpi_spi_add_resource callback). You need to somehow convert the
> acpi_handle to an acpi_buffer, maybe that just involves filling in
> acpi_buffer->pointer = acpi_handle and somehow determining the
> length of the resource settings from the handle. Someone more
> intimately familiar with the layout of the namespace in memory
> should be able to answer this. Hopefully this will already get
> you started, if not just ask questions.
If Apple are consistently using this mechanism to define resources, do
we want to extend acpi_dev_get_resources to attempt to call the _DSM
method as well?
--
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-03-03 17:45 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-23 1:54 ACPI SPI slave device Leif Liddy
2016-02-23 7:38 ` Mika Westerberg
2016-02-23 14:18 ` Leif Liddy
2016-02-23 15:02 ` Mika Westerberg
2016-02-23 15:32 ` Mika Westerberg
2016-02-23 20:30 ` Leif Liddy
2016-02-29 8:21 ` Mika Westerberg
2016-02-29 17:21 ` Leif Liddy
2016-03-01 15:42 ` Leif Liddy
2016-03-01 16:07 ` Lukas Wunner
2016-03-01 23:33 ` Leif Liddy
2016-03-02 3:13 ` Leif Liddy
2016-03-02 11:42 ` Lukas Wunner
2016-03-02 13:07 ` Leif Liddy
2016-03-02 14:37 ` Leif Liddy
2016-03-03 11:47 ` Lukas Wunner
[not found] ` <20160303114740.GA24132-JFq808J9C/izQB+pC5nmwQ@public.gmane.org>
2016-03-03 17:45 ` Matthew Garrett [this message]
2016-03-03 18:55 ` Lukas Wunner
2016-03-03 19:12 ` Matthew Garrett
2016-03-08 14:40 ` Leif Liddy
[not found] ` <CAAbRKOu8UWrn5bhxjrHx5cykFWOChyxr_ZCWK=R4nYCc11cvsw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-09 12:36 ` Lukas Wunner
[not found] ` <20160309123625.GA26143-JFq808J9C/izQB+pC5nmwQ@public.gmane.org>
2016-03-10 18:12 ` Leif Liddy
2016-03-03 17:48 ` Matthew Garrett
-- strict thread matches above, loose matches on Subject: below --
2016-02-22 19:37 ACPI: " Leif Liddy
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=20160303174535.GA11728@srcf.ucam.org \
--to=mjg59-1xo5oi07kqx4cg9nei1l7q@public.gmane.org \
--cc=jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=leif.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lukas-JFq808J9C/izQB+pC5nmwQ@public.gmane.org \
--cc=mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.