All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Wiklander <jens.wiklander@linaro.org>
To: op-tee@lists.trustedfirmware.org
Subject: Re: [PATCH] optee: enable apci support
Date: Wed, 17 Mar 2021 09:04:42 +0100	[thread overview]
Message-ID: <20210317080442.GA3018337@jade> (raw)
In-Reply-To: <20210312083653.38780-1-ran.wang_1@nxp.com>

[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]

On Fri, Mar 12, 2021 at 04:36:53PM +0800, Ran Wang wrote:
> This patch add ACPI support for optee driver.
> 
> Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
> ---
>  drivers/tee/optee/core.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
> index cf4718c6d35d..8fb261f4b9db 100644
> --- a/drivers/tee/optee/core.c
> +++ b/drivers/tee/optee/core.c
> @@ -5,6 +5,7 @@
>  
>  #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
>  
> +#include <linux/acpi.h>
>  #include <linux/arm-smccc.h>
>  #include <linux/errno.h>
>  #include <linux/io.h>
> @@ -735,12 +736,21 @@ static const struct of_device_id optee_dt_match[] = {
>  };
>  MODULE_DEVICE_TABLE(of, optee_dt_match);
>  
> +#ifdef CONFIG_ACPI
> +static const struct acpi_device_id optee_acpi_match[] = {
> +	{ "OPTEE01",},
> +	{ },
> +};
> +MODULE_DEVICE_TABLE(acpi, dwc3_acpi_match);
> +#endif
> +
>  static struct platform_driver optee_driver = {
>  	.probe  = optee_probe,
>  	.remove = optee_remove,
>  	.driver = {
>  		.name = "optee",
>  		.of_match_table = optee_dt_match,
> +		.acpi_match_table = ACPI_PTR(optee_acpi_match),
>  	},
>  };
>  module_platform_driver(optee_driver);
> -- 
> 2.25.1
> 

This looks simple enough. Ard, is this what you had in mind earlier?

Thanks,
Jens

WARNING: multiple messages have this Message-ID (diff)
From: Jens Wiklander <jens.wiklander@linaro.org>
To: Ran Wang <ran.wang_1@nxp.com>, Ard Biesheuvel <ardb@kernel.org>
Cc: op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] optee: enable apci support
Date: Wed, 17 Mar 2021 09:04:42 +0100	[thread overview]
Message-ID: <20210317080442.GA3018337@jade> (raw)
In-Reply-To: <20210312083653.38780-1-ran.wang_1@nxp.com>

On Fri, Mar 12, 2021 at 04:36:53PM +0800, Ran Wang wrote:
> This patch add ACPI support for optee driver.
> 
> Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
> ---
>  drivers/tee/optee/core.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
> index cf4718c6d35d..8fb261f4b9db 100644
> --- a/drivers/tee/optee/core.c
> +++ b/drivers/tee/optee/core.c
> @@ -5,6 +5,7 @@
>  
>  #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
>  
> +#include <linux/acpi.h>
>  #include <linux/arm-smccc.h>
>  #include <linux/errno.h>
>  #include <linux/io.h>
> @@ -735,12 +736,21 @@ static const struct of_device_id optee_dt_match[] = {
>  };
>  MODULE_DEVICE_TABLE(of, optee_dt_match);
>  
> +#ifdef CONFIG_ACPI
> +static const struct acpi_device_id optee_acpi_match[] = {
> +	{ "OPTEE01",},
> +	{ },
> +};
> +MODULE_DEVICE_TABLE(acpi, dwc3_acpi_match);
> +#endif
> +
>  static struct platform_driver optee_driver = {
>  	.probe  = optee_probe,
>  	.remove = optee_remove,
>  	.driver = {
>  		.name = "optee",
>  		.of_match_table = optee_dt_match,
> +		.acpi_match_table = ACPI_PTR(optee_acpi_match),
>  	},
>  };
>  module_platform_driver(optee_driver);
> -- 
> 2.25.1
> 

This looks simple enough. Ard, is this what you had in mind earlier?

Thanks,
Jens

  reply	other threads:[~2021-03-17  8:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-12  8:36 [PATCH] optee: enable apci support Ran Wang
2021-03-12  8:36 ` Ran Wang
2021-03-17  8:04 ` Jens Wiklander [this message]
2021-03-17  8:04   ` Jens Wiklander
2021-03-17  8:29   ` Ard Biesheuvel
2021-03-17  8:29     ` Ard Biesheuvel
     [not found] < <CAMj1kXFg1a5ezoVBvrZ7xc7oM2zH-Phu1eNoXv+YZ+Yda1k7SQ@mail.gmail.com>
2021-03-18  7:29 ` Ran Wang
2021-03-18  7:29   ` Ran Wang
     [not found] <=?utf-8?q?=3CAM6PR04MB54133297642949378521C6A9F1699=40AM6PR04MB?= =?utf-8?q?5413=2Eeurprd04=2Eprod=2Eoutlook=2Ecom=3E?=>
2021-03-18  7:47 ` Ard Biesheuvel
2021-03-18  7:47   ` Ard Biesheuvel
     [not found] < <CAMj1kXEfVh-q=cae1RWTVwABYsmX=-OZbWmgRMm4DSK7NjQBEg@mail.gmail.com>
2021-03-18  7:59 ` Ran Wang
2021-03-18  7:59   ` Ran Wang

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=20210317080442.GA3018337@jade \
    --to=jens.wiklander@linaro.org \
    --cc=op-tee@lists.trustedfirmware.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.