From: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
To: Gustavo Piaz da Silva <gustavopiazdasilva2102@gmail.com>,
gregkh@linuxfoundation.org, dan.carpenter@linaro.org
Cc: gshahrouzi@gmail.com, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v8 1/2] staging: axis-fifo: use u32 for fifo depth flags
Date: Mon, 9 Feb 2026 14:32:45 +0200 [thread overview]
Message-ID: <5c97b29f-c26d-4209-a74d-763d813576ef@gmail.com> (raw)
In-Reply-To: <20260209113229.7871-2-gustavopiazdasilva2102@gmail.com>
Hi Gustavo,
On 2/9/26 1:32 PM, Gustavo Piaz da Silva wrote:
> Update has_rx_fifo and has_tx_fifo types from int to u32 in struct
> axis_fifo.
>
> The of_property_read_u32() function expects a pointer to u32. Although
> the current code works correctly with int, using u32 aligns the data
> structure with the Device Tree API and prevents potential
> type-mismatch issues.
>
> Signed-off-by: Gustavo Piaz da Silva <gustavopiazdasilva2102@gmail.com>
> ---
> drivers/staging/axis-fifo/axis-fifo.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c
> index 509d620d6ce7..7bc7bf191250 100644
> --- a/drivers/staging/axis-fifo/axis-fifo.c
> +++ b/drivers/staging/axis-fifo/axis-fifo.c
> @@ -121,8 +121,8 @@ struct axis_fifo {
>
> unsigned int rx_fifo_depth; /* max words in the receive fifo */
> unsigned int tx_fifo_depth; /* max words in the transmit fifo */
> - int has_rx_fifo; /* whether the IP has the rx fifo enabled */
> - int has_tx_fifo; /* whether the IP has the tx fifo enabled */
> + u32 has_rx_fifo; /* whether the IP has the rx fifo enabled */
> + u32 has_tx_fifo; /* whether the IP has the tx fifo enabled */
>
I think you are working with an older tree, these comments were removed
in commit:
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/commit/?h=staging-next&id=02b2a366a64f22cc367911d479297772d6269200
Could you please rebase the patches on top of the staging-next branch?
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/log/?h=staging-next
Thanks,
Ovidiu
> wait_queue_head_t read_queue; /* wait queue for asynchronos read */
> struct mutex read_lock; /* lock for reading */
next prev parent reply other threads:[~2026-02-09 12:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 11:32 [PATCH v8 0/2] staging: axis-fifo: clean up probe logic Gustavo Piaz da Silva
2026-02-09 11:32 ` [PATCH v8 1/2] staging: axis-fifo: use u32 for fifo depth flags Gustavo Piaz da Silva
2026-02-09 12:32 ` Ovidiu Panait [this message]
2026-02-09 11:32 ` [PATCH v8 2/2] staging: axis-fifo: refactor device tree parsing Gustavo Piaz da Silva
2026-02-09 12:12 ` [PATCH v8 0/2] staging: axis-fifo: clean up probe logic Dan Carpenter
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=5c97b29f-c26d-4209-a74d-763d813576ef@gmail.com \
--to=ovidiu.panait.oss@gmail.com \
--cc=dan.carpenter@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=gshahrouzi@gmail.com \
--cc=gustavopiazdasilva2102@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/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