From: Tom Rini <trini@konsulko.com>
To: Samuel Holland <samuel@sholland.org>, nm@ti.com
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH 2/3] remoteproc: Remove unused mem_type platform data
Date: Mon, 20 Feb 2023 11:54:28 -0500 [thread overview]
Message-ID: <Y/OlxL5eXpNFofFP@bill-the-cat> (raw)
In-Reply-To: <20230220061304.43198-3-samuel@sholland.org>
[-- Attachment #1: Type: text/plain, Size: 5176 bytes --]
On Mon, Feb 20, 2023 at 12:13:02AM -0600, Samuel Holland wrote:
> There is only one possible value for this field, it is unused except for
> debugging, and the devicetree property is not documented.
>
> Signed-off-by: Samuel Holland <samuel@sholland.org>
> ---
>
> cmd/remoteproc.c | 12 +-----------
> doc/develop/driver-model/remoteproc-framework.rst | 1 -
> drivers/remoteproc/rproc-uclass.c | 7 -------
> drivers/remoteproc/sandbox_testproc.c | 1 -
> include/remoteproc.h | 15 ---------------
> 5 files changed, 1 insertion(+), 35 deletions(-)
>
> diff --git a/cmd/remoteproc.c b/cmd/remoteproc.c
> index ca3b436242a..2b2e52e7d3e 100644
> --- a/cmd/remoteproc.c
> +++ b/cmd/remoteproc.c
> @@ -20,7 +20,6 @@ static int print_remoteproc_list(void)
> struct udevice *dev;
> struct uclass *uc;
> int ret;
> - char *type;
>
> ret = uclass_get(UCLASS_REMOTEPROC, &uc);
> if (ret) {
> @@ -38,18 +37,9 @@ static int print_remoteproc_list(void)
> if (!(dev_get_flags(dev) & DM_FLAG_ACTIVATED))
> continue;
>
> - switch (uc_pdata->mem_type) {
> - case RPROC_INTERNAL_MEMORY_MAPPED:
> - type = "internal memory mapped";
> - break;
> - default:
> - type = "unknown";
> - break;
> - }
> - printf("%d - Name:'%s' type:'%s' supports: %s%s%s%s%s%s\n",
> + printf("%d - Name:'%s' supports: %s%s%s%s%s%s\n",
> dev_seq(dev),
> uc_pdata->name,
> - type,
> ops->load ? "load " : "",
> ops->start ? "start " : "",
> ops->stop ? "stop " : "",
> diff --git a/doc/develop/driver-model/remoteproc-framework.rst b/doc/develop/driver-model/remoteproc-framework.rst
> index 566495a21c4..bdbbb8ab7be 100644
> --- a/doc/develop/driver-model/remoteproc-framework.rst
> +++ b/doc/develop/driver-model/remoteproc-framework.rst
> @@ -121,7 +121,6 @@ a simplified definition of a device is as follows:
>
> struct dm_rproc_uclass_pdata proc_3_test = {
> .name = "proc_3_legacy",
> - .mem_type = RPROC_INTERNAL_MEMORY_MAPPED,
> .driver_plat_data = &mydriver_data;
> };
>
> diff --git a/drivers/remoteproc/rproc-uclass.c b/drivers/remoteproc/rproc-uclass.c
> index 50bcc9030e9..3eacd4a8d9b 100644
> --- a/drivers/remoteproc/rproc-uclass.c
> +++ b/drivers/remoteproc/rproc-uclass.c
> @@ -136,12 +136,6 @@ static int rproc_pre_probe(struct udevice *dev)
> bool tmp;
> debug("'%s': using fdt\n", dev->name);
> uc_pdata->name = dev_read_string(dev, "remoteproc-name");
> -
> - /* Default is internal memory mapped */
> - uc_pdata->mem_type = RPROC_INTERNAL_MEMORY_MAPPED;
> - tmp = dev_read_bool(dev, "remoteproc-internal-memory-mapped");
> - if (tmp)
> - uc_pdata->mem_type = RPROC_INTERNAL_MEMORY_MAPPED;
> #else
> /* Nothing much we can do about this, can we? */
> return -EINVAL;
> @@ -153,7 +147,6 @@ static int rproc_pre_probe(struct udevice *dev)
> debug("'%s': using legacy data\n", dev->name);
> if (pdata->name)
> uc_pdata->name = pdata->name;
> - uc_pdata->mem_type = pdata->mem_type;
> uc_pdata->driver_plat_data = pdata->driver_plat_data;
> }
>
> diff --git a/drivers/remoteproc/sandbox_testproc.c b/drivers/remoteproc/sandbox_testproc.c
> index 78b108184bb..4cb784ce32e 100644
> --- a/drivers/remoteproc/sandbox_testproc.c
> +++ b/drivers/remoteproc/sandbox_testproc.c
> @@ -349,7 +349,6 @@ U_BOOT_DRIVER(sandbox_testproc) = {
> /* TODO(nm@ti.com): Remove this along with non-DT support */
> static struct dm_rproc_uclass_pdata proc_3_test = {
> .name = "proc_3_legacy",
> - .mem_type = RPROC_INTERNAL_MEMORY_MAPPED,
> };
>
> U_BOOT_DRVINFO(proc_3_demo) = {
> diff --git a/include/remoteproc.h b/include/remoteproc.h
> index d8cde73748b..0c4d64706d9 100644
> --- a/include/remoteproc.h
> +++ b/include/remoteproc.h
> @@ -383,23 +383,9 @@ struct rproc {
> u32 trace_len;
> };
>
> -/**
> - * enum rproc_mem_type - What type of memory model does the rproc use
> - * @RPROC_INTERNAL_MEMORY_MAPPED: Remote processor uses own memory and is memory
> - * mapped to the host processor over an address range.
> - *
> - * Please note that this is an enumeration of memory model of different types
> - * of remote processors. Few of the remote processors do have own internal
> - * memories, while others use external memory for instruction and data.
> - */
> -enum rproc_mem_type {
> - RPROC_INTERNAL_MEMORY_MAPPED = 0,
> -};
> -
> /**
> * struct dm_rproc_uclass_pdata - platform data for a CPU
> * @name: Platform-specific way of naming the Remote proc
> - * @mem_type: one of 'enum rproc_mem_type'
> * @driver_plat_data: driver specific platform data that may be needed.
> *
> * This can be accessed with dev_get_uclass_plat() for any UCLASS_REMOTEPROC
> @@ -408,7 +394,6 @@ enum rproc_mem_type {
> */
> struct dm_rproc_uclass_pdata {
> const char *name;
> - enum rproc_mem_type mem_type;
> void *driver_plat_data;
> };
>
Adding Nishanth, since he knows the TI remoteproc stuff.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2023-02-20 16:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-20 6:13 [PATCH 0/3] remoteproc: uclass cleanup Samuel Holland
2023-02-20 6:13 ` [PATCH 1/3] remoteproc: Move rproc_cfg_arr out of the uclass header Samuel Holland
2023-02-21 19:35 ` Simon Glass
2023-02-20 6:13 ` [PATCH 2/3] remoteproc: Remove unused mem_type platform data Samuel Holland
2023-02-20 16:21 ` Simon Glass
2023-02-20 16:54 ` Tom Rini [this message]
2023-02-20 6:13 ` [PATCH 3/3] remoteproc: Remove legacy probing method Samuel Holland
2023-02-21 19:35 ` Simon Glass
2023-03-30 19:09 ` Tom Rini
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=Y/OlxL5eXpNFofFP@bill-the-cat \
--to=trini@konsulko.com \
--cc=nm@ti.com \
--cc=samuel@sholland.org \
--cc=u-boot@lists.denx.de \
/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