From: "Padhi, Beleswar" <b-padhi@ti.com>
To: Andrew Davis <afd@ti.com>, Bjorn Andersson <andersson@kernel.org>,
"Mathieu Poirier" <mathieu.poirier@linaro.org>
Cc: <linux-remoteproc@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/3] remoteproc: k3: Include what we need and only what we need
Date: Tue, 15 Sep 2026 20:00:56 +0530 [thread overview]
Message-ID: <9ab22cc8-69fe-4f76-819e-71ce480c867a@ti.com> (raw)
In-Reply-To: <20260904195634.2275867-1-afd@ti.com>
On 9/5/2026 1:26 AM, Andrew Davis wrote:
> The header ti_k3_common.h uses several definitions in headers it does not
> include itself, this makes users of this header responsible for including
> the right headers first. Instead include what we need here. Then go and
> remove some headers that we do not use from the K3 Remoteproc drivers.
>
> Signed-off-by: Andrew Davis <afd@ti.com>
Thanks for cleaning this up. Test suite is happy.
Reviewed-by: Beleswar Padhi <b-padhi@ti.com>
Tested-by: Beleswar Padhi <b-padhi@ti.com>
Thanks,
Beleswar
> ---
> drivers/remoteproc/ti_k3_common.h | 4 ++++
> drivers/remoteproc/ti_k3_dsp_remoteproc.c | 3 ---
> drivers/remoteproc/ti_k3_m4_remoteproc.c | 4 +---
> drivers/remoteproc/ti_k3_r5_remoteproc.c | 5 -----
> 4 files changed, 5 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/remoteproc/ti_k3_common.h b/drivers/remoteproc/ti_k3_common.h
> index aee3c28dbe510..c8430e42225fe 100644
> --- a/drivers/remoteproc/ti_k3_common.h
> +++ b/drivers/remoteproc/ti_k3_common.h
> @@ -21,6 +21,10 @@
> #ifndef REMOTEPROC_TI_K3_COMMON_H
> #define REMOTEPROC_TI_K3_COMMON_H
>
> +#include <linux/mailbox_client.h>
> +#include <linux/platform_device.h>
> +#include <linux/types.h>
> +
> #define KEYSTONE_RPROC_LOCAL_ADDRESS_MASK (SZ_16M - 1)
>
> /**
> diff --git a/drivers/remoteproc/ti_k3_dsp_remoteproc.c b/drivers/remoteproc/ti_k3_dsp_remoteproc.c
> index d6ceea6dc920e..c916a86bc8294 100644
> --- a/drivers/remoteproc/ti_k3_dsp_remoteproc.c
> +++ b/drivers/remoteproc/ti_k3_dsp_remoteproc.c
> @@ -7,11 +7,8 @@
> */
>
> #include <linux/io.h>
> -#include <linux/mailbox_client.h>
> #include <linux/module.h>
> #include <linux/of.h>
> -#include <linux/of_reserved_mem.h>
> -#include <linux/omap-mailbox.h>
> #include <linux/platform_device.h>
> #include <linux/remoteproc.h>
> #include <linux/reset.h>
> diff --git a/drivers/remoteproc/ti_k3_m4_remoteproc.c b/drivers/remoteproc/ti_k3_m4_remoteproc.c
> index 3a11fd24eb52b..4c46f4a256a92 100644
> --- a/drivers/remoteproc/ti_k3_m4_remoteproc.c
> +++ b/drivers/remoteproc/ti_k3_m4_remoteproc.c
> @@ -7,10 +7,8 @@
> */
>
> #include <linux/io.h>
> -#include <linux/mailbox_client.h>
> #include <linux/module.h>
> -#include <linux/of_address.h>
> -#include <linux/of_reserved_mem.h>
> +#include <linux/of.h>
> #include <linux/platform_device.h>
> #include <linux/remoteproc.h>
> #include <linux/reset.h>
> diff --git a/drivers/remoteproc/ti_k3_r5_remoteproc.c b/drivers/remoteproc/ti_k3_r5_remoteproc.c
> index b1d04d082e44c..404acc1a9bb7c 100644
> --- a/drivers/remoteproc/ti_k3_r5_remoteproc.c
> +++ b/drivers/remoteproc/ti_k3_r5_remoteproc.c
> @@ -6,17 +6,12 @@
> * Suman Anna <s-anna@ti.com>
> */
>
> -#include <linux/dma-mapping.h>
> #include <linux/err.h>
> #include <linux/interrupt.h>
> -#include <linux/kernel.h>
> -#include <linux/mailbox_client.h>
> #include <linux/module.h>
> #include <linux/of.h>
> #include <linux/of_address.h>
> -#include <linux/of_reserved_mem.h>
> #include <linux/of_platform.h>
> -#include <linux/omap-mailbox.h>
> #include <linux/platform_device.h>
> #include <linux/pm_runtime.h>
> #include <linux/remoteproc.h>
prev parent reply other threads:[~2026-09-15 14:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 19:56 Andrew Davis
2026-09-04 19:56 ` [PATCH 2/3] remoteproc: k3-dsp: Fix usage of omap_mbox_message and mbox_msg_t Andrew Davis
2026-09-09 15:48 ` Mathieu Poirier
2026-09-09 16:07 ` Andrew Davis
2026-09-15 14:31 ` Padhi, Beleswar
2026-09-04 19:56 ` [PATCH 3/3] remoteproc: Add compile testing for additional TI drivers Andrew Davis
2026-09-15 14:33 ` Padhi, Beleswar
2026-09-15 15:44 ` Mathieu Poirier
2026-09-15 14:30 ` Padhi, Beleswar [this message]
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=9ab22cc8-69fe-4f76-819e-71ce480c867a@ti.com \
--to=b-padhi@ti.com \
--cc=afd@ti.com \
--cc=andersson@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=mathieu.poirier@linaro.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
all inboxes | Powered by JetHome®