* [PATCH 1/3] staging: axis-fifo: simplify resource mapping
@ 2026-03-01 0:55 Josh Law
2026-03-01 0:55 ` [PATCH 2/3] staging: axis-fifo: use dev_err_probe() for IRQ error handling Josh Law
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Josh Law @ 2026-03-01 0:55 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-staging, linux-kernel, Josh Law
Use devm_platform_ioremap_resource() to simplify the code and remove the unused struct resource pointer.
Signed-off-by: Josh Law <objecting@objecting.org>
---
drivers/staging/axis-fifo/axis-fifo.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c
index d83a0fd5b231..fc8e35696b31 100644
--- a/drivers/staging/axis-fifo/axis-fifo.c
+++ b/drivers/staging/axis-fifo/axis-fifo.c
@@ -450,7 +450,6 @@ static int axis_fifo_parse_dt(struct axis_fifo *fifo)
static int axis_fifo_probe(struct platform_device *pdev)
{
- struct resource *r_mem;
struct device *dev = &pdev->dev;
struct axis_fifo *fifo = NULL;
int rc = 0; /* error return value */
@@ -469,7 +468,7 @@ static int axis_fifo_probe(struct platform_device *pdev)
mutex_init(&fifo->read_lock);
mutex_init(&fifo->write_lock);
- fifo->base_addr = devm_platform_get_and_ioremap_resource(pdev, 0, &r_mem);
+ fifo->base_addr = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(fifo->base_addr))
return PTR_ERR(fifo->base_addr);
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/3] staging: axis-fifo: use dev_err_probe() for IRQ error handling
2026-03-01 0:55 [PATCH 1/3] staging: axis-fifo: simplify resource mapping Josh Law
@ 2026-03-01 0:55 ` Josh Law
2026-03-01 0:55 ` [PATCH 3/3] staging: axis-fifo: improve IRQ handler Josh Law
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Josh Law @ 2026-03-01 0:55 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-staging, linux-kernel, Josh Law
Simplify the error handling in the probe function by using dev_err_probe() instead of dev_err() when devm_request_irq() fails.
Signed-off-by: Josh Law <objecting@objecting.org>
---
drivers/staging/axis-fifo/axis-fifo.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c
index fc8e35696b31..28268881cda2 100644
--- a/drivers/staging/axis-fifo/axis-fifo.c
+++ b/drivers/staging/axis-fifo/axis-fifo.c
@@ -484,11 +484,9 @@ static int axis_fifo_probe(struct platform_device *pdev)
rc = devm_request_irq(fifo->dt_device, irq, &axis_fifo_irq, 0,
DRIVER_NAME, fifo);
- if (rc) {
- dev_err(fifo->dt_device, "couldn't allocate interrupt %i\n",
- irq);
- return rc;
- }
+ if (rc)
+ return dev_err_probe(fifo->dt_device, rc,
+ "couldn't allocate interrupt %i\n", irq);
fifo->id = ida_alloc(&axis_fifo_ida, GFP_KERNEL);
if (fifo->id < 0)
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] staging: axis-fifo: improve IRQ handler
2026-03-01 0:55 [PATCH 1/3] staging: axis-fifo: simplify resource mapping Josh Law
2026-03-01 0:55 ` [PATCH 2/3] staging: axis-fifo: use dev_err_probe() for IRQ error handling Josh Law
@ 2026-03-01 0:55 ` Josh Law
2026-03-02 9:19 ` [PATCH 1/3] staging: axis-fifo: simplify resource mapping Dan Carpenter
2026-03-02 21:31 ` Ethan Tidmore
3 siblings, 0 replies; 8+ messages in thread
From: Josh Law @ 2026-03-01 0:55 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-staging, linux-kernel, Josh Law
Return IRQ_NONE when no interrupts were triggered to avoid spurious interrupt storms, and only clear the active interrupts instead of blindly clearing all interrupts by writing 'intr' to the ISR instead of XLLF_INT_CLEAR_ALL.
Signed-off-by: Josh Law <objecting@objecting.org>
---
drivers/staging/axis-fifo/axis-fifo.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c
index 28268881cda2..aad2206b481a 100644
--- a/drivers/staging/axis-fifo/axis-fifo.c
+++ b/drivers/staging/axis-fifo/axis-fifo.c
@@ -302,6 +302,9 @@ static irqreturn_t axis_fifo_irq(int irq, void *dw)
isr = ioread32(fifo->base_addr + XLLF_ISR_OFFSET);
intr = ier & isr;
+ if (!intr)
+ return IRQ_NONE;
+
if (intr & XLLF_INT_RC_MASK)
wake_up(&fifo->read_queue);
@@ -324,7 +327,7 @@ static irqreturn_t axis_fifo_irq(int irq, void *dw)
dev_err(fifo->dt_device,
"transmit length mismatch error interrupt\n");
- iowrite32(XLLF_INT_CLEAR_ALL, fifo->base_addr + XLLF_ISR_OFFSET);
+ iowrite32(intr, fifo->base_addr + XLLF_ISR_OFFSET);
return IRQ_HANDLED;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] staging: axis-fifo: simplify resource mapping
2026-03-01 0:55 [PATCH 1/3] staging: axis-fifo: simplify resource mapping Josh Law
2026-03-01 0:55 ` [PATCH 2/3] staging: axis-fifo: use dev_err_probe() for IRQ error handling Josh Law
2026-03-01 0:55 ` [PATCH 3/3] staging: axis-fifo: improve IRQ handler Josh Law
@ 2026-03-02 9:19 ` Dan Carpenter
2026-03-02 21:31 ` Ethan Tidmore
3 siblings, 0 replies; 8+ messages in thread
From: Dan Carpenter @ 2026-03-02 9:19 UTC (permalink / raw)
To: Josh Law; +Cc: Greg Kroah-Hartman, linux-staging, linux-kernel, Josh Law
On Sun, Mar 01, 2026 at 12:55:17AM +0000, Josh Law wrote:
> Use devm_platform_ioremap_resource() to simplify the code and remove the unused struct resource pointer.
>
> Signed-off-by: Josh Law <objecting@objecting.org>
Run your patches through checkpatch.pl.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] staging: axis-fifo: simplify resource mapping
2026-03-01 0:55 [PATCH 1/3] staging: axis-fifo: simplify resource mapping Josh Law
` (2 preceding siblings ...)
2026-03-02 9:19 ` [PATCH 1/3] staging: axis-fifo: simplify resource mapping Dan Carpenter
@ 2026-03-02 21:31 ` Ethan Tidmore
2026-03-02 21:36 ` Josh Law
3 siblings, 1 reply; 8+ messages in thread
From: Ethan Tidmore @ 2026-03-02 21:31 UTC (permalink / raw)
To: Josh Law, Greg Kroah-Hartman; +Cc: linux-staging, linux-kernel, Josh Law
On Sat Feb 28, 2026 at 6:55 PM CST, Josh Law wrote:
> Use devm_platform_ioremap_resource() to simplify the code and remove the unused struct resource pointer.
>
> Signed-off-by: Josh Law <objecting@objecting.org>
> ---
I've already told you your patches will *not* be accepted if your from:
and SOB do not match, there is actually legal precedent.
Thanks,
ET
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] staging: axis-fifo: simplify resource mapping
2026-03-02 21:31 ` Ethan Tidmore
@ 2026-03-02 21:36 ` Josh Law
2026-03-02 21:38 ` Ethan Tidmore
0 siblings, 1 reply; 8+ messages in thread
From: Josh Law @ 2026-03-02 21:36 UTC (permalink / raw)
To: Ethan Tidmore; +Cc: Greg Kroah-Hartman, linux-staging, linux-kernel, Josh Law
2 Mar 2026 21:31:31 Ethan Tidmore <ethantidmore06@gmail.com>:
> On Sat Feb 28, 2026 at 6:55 PM CST, Josh Law wrote:
>> Use devm_platform_ioremap_resource() to simplify the code and remove the unused struct resource pointer.
>>
>> Signed-off-by: Josh Law <objecting@objecting.org>
>> ---
>
> I've already told you your patches will *not* be accepted if your from:
> and SOB do not match, there is actually legal precedent.
>
> Thanks,
>
> ET
Man.... Check my V2 patches, they are all fixed, Please..
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] staging: axis-fifo: simplify resource mapping
2026-03-02 21:36 ` Josh Law
@ 2026-03-02 21:38 ` Ethan Tidmore
2026-03-02 21:40 ` Josh Law
0 siblings, 1 reply; 8+ messages in thread
From: Ethan Tidmore @ 2026-03-02 21:38 UTC (permalink / raw)
To: Josh Law, Ethan Tidmore
Cc: Greg Kroah-Hartman, linux-staging, linux-kernel, Josh Law
On Mon Mar 2, 2026 at 3:36 PM CST, Josh Law wrote:
> 2 Mar 2026 21:31:31 Ethan Tidmore <ethantidmore06@gmail.com>:
>
>> On Sat Feb 28, 2026 at 6:55 PM CST, Josh Law wrote:
>>> Use devm_platform_ioremap_resource() to simplify the code and remove the unused struct resource pointer.
>>>
>>> Signed-off-by: Josh Law <objecting@objecting.org>
>>> ---
>>
>> I've already told you your patches will *not* be accepted if your from:
>> and SOB do not match, there is actually legal precedent.
>>
>> Thanks,
>>
>> ET
>
> Man.... Check my V2 patches, they are all fixed, Please..
Sorry about that, just realized this is the old. Dan's message made this
pop up.
Thanks,
Et
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] staging: axis-fifo: simplify resource mapping
2026-03-02 21:38 ` Ethan Tidmore
@ 2026-03-02 21:40 ` Josh Law
0 siblings, 0 replies; 8+ messages in thread
From: Josh Law @ 2026-03-02 21:40 UTC (permalink / raw)
To: Ethan Tidmore; +Cc: Greg Kroah-Hartman, linux-staging, linux-kernel, Josh Law
2 Mar 2026 21:38:35 Ethan Tidmore <ethantidmore06@gmail.com>:
> On Mon Mar 2, 2026 at 3:36 PM CST, Josh Law wrote:
>> 2 Mar 2026 21:31:31 Ethan Tidmore <ethantidmore06@gmail.com>:
>>
>>> On Sat Feb 28, 2026 at 6:55 PM CST, Josh Law wrote:
>>>> Use devm_platform_ioremap_resource() to simplify the code and remove the unused struct resource pointer.
>>>>
>>>> Signed-off-by: Josh Law <objecting@objecting.org>
>>>> ---
>>>
>>> I've already told you your patches will *not* be accepted if your from:
>>> and SOB do not match, there is actually legal precedent.
>>>
>>> Thanks,
>>>
>>> ET
>>
>> Man.... Check my V2 patches, they are all fixed, Please..
>
> Sorry about that, just realized this is the old. Dan's message made this
> pop up.
>
> Thanks,
>
> Et
Well, at least one has to be merged haha, I think 2-3 has issues (according to Dan), but I will fix those tomorrow
Thanks
V/R
Josh law
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-03-02 21:40 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-01 0:55 [PATCH 1/3] staging: axis-fifo: simplify resource mapping Josh Law
2026-03-01 0:55 ` [PATCH 2/3] staging: axis-fifo: use dev_err_probe() for IRQ error handling Josh Law
2026-03-01 0:55 ` [PATCH 3/3] staging: axis-fifo: improve IRQ handler Josh Law
2026-03-02 9:19 ` [PATCH 1/3] staging: axis-fifo: simplify resource mapping Dan Carpenter
2026-03-02 21:31 ` Ethan Tidmore
2026-03-02 21:36 ` Josh Law
2026-03-02 21:38 ` Ethan Tidmore
2026-03-02 21:40 ` Josh Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox