From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Alan <alan@linux.intel.com>,
linux-fbdev@vger.kernel.org, plagnioj@jcrosoft.com,
linux-acpi@vger.kernel.org
Subject: Re: [PATCH 2/5] Subject: goldfish: Enable ACPI-based enumeration for goldfish framebuffer
Date: Mon, 7 Mar 2016 20:35:19 +0200 [thread overview]
Message-ID: <56DDC9E7.8040609@ti.com> (raw)
In-Reply-To: <20160226184157.2731.30846.stgit@localhost.localdomain>
[-- Attachment #1.1: Type: text/plain, Size: 1747 bytes --]
On 26/02/16 20:41, Alan wrote:
> From: Yu Ning <yu.ning@intel.com>
>
> Enable ACPI bindings for the Goldfish framebuffer device.
>
> Signed-off-by: Yu Ning <yu.ning@intel.com>
> Signed-off-by: Jin Qian <jinqian@android.com>
> Signed-off-by: Alan <alan@linux.intel.com>
> ---
> drivers/video/fbdev/goldfishfb.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c
> index f0e651b..58b33e4 100644
> --- a/drivers/video/fbdev/goldfishfb.c
> +++ b/drivers/video/fbdev/goldfishfb.c
> @@ -26,6 +26,7 @@
> #include <linux/interrupt.h>
> #include <linux/ioport.h>
> #include <linux/platform_device.h>
> +#include <linux/acpi.h>
>
> enum {
> FB_GET_WIDTH = 0x00,
> @@ -310,6 +311,12 @@ static const struct of_device_id goldfish_fb_of_match[] = {
> };
> MODULE_DEVICE_TABLE(of, goldfish_fb_of_match);
>
> +static const struct acpi_device_id goldfish_fb_acpi_match[] = {
> + { "GFSH0004", 0 },
I'm not familiar with ACPI, so I need to ask... Where does the ID come
from? Is it safe to use that one, and there's no chance for a clash with
some other device in the future?
> + { },
> +};
> +MODULE_DEVICE_TABLE(acpi, goldfish_fb_acpi_match);
> +
> static struct platform_driver goldfish_fb_driver = {
> .probe = goldfish_fb_probe,
> .remove = goldfish_fb_remove,
> @@ -317,6 +324,7 @@ static struct platform_driver goldfish_fb_driver = {
> .name = "goldfish_fb",
> .owner = THIS_MODULE,
> .of_match_table = goldfish_fb_of_match,
> + .acpi_match_table = ACPI_PTR(goldfish_fb_acpi_match),
So does the emulator sometimes use devicetree and sometimes ACPI to
match the device?
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Alan <alan@linux.intel.com>,
linux-fbdev@vger.kernel.org, plagnioj@jcrosoft.com,
linux-acpi@vger.kernel.org
Subject: Re: [PATCH 2/5] Subject: goldfish: Enable ACPI-based enumeration for goldfish framebuffer
Date: Mon, 07 Mar 2016 18:35:19 +0000 [thread overview]
Message-ID: <56DDC9E7.8040609@ti.com> (raw)
In-Reply-To: <20160226184157.2731.30846.stgit@localhost.localdomain>
[-- Attachment #1.1: Type: text/plain, Size: 1747 bytes --]
On 26/02/16 20:41, Alan wrote:
> From: Yu Ning <yu.ning@intel.com>
>
> Enable ACPI bindings for the Goldfish framebuffer device.
>
> Signed-off-by: Yu Ning <yu.ning@intel.com>
> Signed-off-by: Jin Qian <jinqian@android.com>
> Signed-off-by: Alan <alan@linux.intel.com>
> ---
> drivers/video/fbdev/goldfishfb.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c
> index f0e651b..58b33e4 100644
> --- a/drivers/video/fbdev/goldfishfb.c
> +++ b/drivers/video/fbdev/goldfishfb.c
> @@ -26,6 +26,7 @@
> #include <linux/interrupt.h>
> #include <linux/ioport.h>
> #include <linux/platform_device.h>
> +#include <linux/acpi.h>
>
> enum {
> FB_GET_WIDTH = 0x00,
> @@ -310,6 +311,12 @@ static const struct of_device_id goldfish_fb_of_match[] = {
> };
> MODULE_DEVICE_TABLE(of, goldfish_fb_of_match);
>
> +static const struct acpi_device_id goldfish_fb_acpi_match[] = {
> + { "GFSH0004", 0 },
I'm not familiar with ACPI, so I need to ask... Where does the ID come
from? Is it safe to use that one, and there's no chance for a clash with
some other device in the future?
> + { },
> +};
> +MODULE_DEVICE_TABLE(acpi, goldfish_fb_acpi_match);
> +
> static struct platform_driver goldfish_fb_driver = {
> .probe = goldfish_fb_probe,
> .remove = goldfish_fb_remove,
> @@ -317,6 +324,7 @@ static struct platform_driver goldfish_fb_driver = {
> .name = "goldfish_fb",
> .owner = THIS_MODULE,
> .of_match_table = goldfish_fb_of_match,
> + .acpi_match_table = ACPI_PTR(goldfish_fb_acpi_match),
So does the emulator sometimes use devicetree and sometimes ACPI to
match the device?
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-03-07 18:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-26 18:41 [PATCH 0/5] goldfish: bring the framebuffer in sync with upstream Alan
2016-02-26 18:41 ` [PATCH 1/5] Subject: video: goldfishfb: add devicetree bindings Alan
[not found] ` <20160226184146.2731.41848.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2016-03-07 18:29 ` Tomi Valkeinen
2016-03-07 18:29 ` Tomi Valkeinen
2016-02-26 18:41 ` [PATCH 2/5] Subject: goldfish: Enable ACPI-based enumeration for goldfish framebuffer Alan
2016-03-07 18:35 ` Tomi Valkeinen [this message]
2016-03-07 18:35 ` Tomi Valkeinen
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=56DDC9E7.8040609@ti.com \
--to=tomi.valkeinen@ti.com \
--cc=alan@linux.intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=plagnioj@jcrosoft.com \
/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.