mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-25 05:47:00 +00:00
f4c5d0e77e
Cherry-pick patches to support building RP1 modules. Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/17233 Signed-off-by: Robert Marko <robimarko@gmail.com> (cherry picked from commit 613dd79d5eabe53f07a7b74cc062d91cfc550403)
26 lines
862 B
Diff
26 lines
862 B
Diff
From 99a0201bb0abc946dc431214b638b2cc6b01dda5 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Mon, 25 Nov 2024 16:19:55 +0000
|
|
Subject: [PATCH] misc/rp1-pio: Fix copy/paste error in pio_rp1.h
|
|
|
|
As per the subject, there was a copy/paste error that caused
|
|
pio_sm_unclaim from a driver to result in a call to
|
|
pio_sm_claim. Fix it.
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
include/linux/pio_rp1.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/include/linux/pio_rp1.h
|
|
+++ b/include/linux/pio_rp1.h
|
|
@@ -318,7 +318,7 @@ static inline int pio_sm_unclaim(struct
|
|
if (bad_params_if(client, sm >= NUM_PIO_STATE_MACHINES))
|
|
return -EINVAL;
|
|
|
|
- return rp1_pio_sm_claim(client, &args);
|
|
+ return rp1_pio_sm_unclaim(client, &args);
|
|
}
|
|
|
|
static inline int pio_claim_unused_sm(struct rp1_pio_client *client, bool required)
|