Skip to content

Commit ec42135

Browse files
committed
rk35xx/legacy: rewrite-kernel-patches, no changes
1 parent bc38307 commit ec42135

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

patch/kernel/rk35xx-legacy/001-hid-sony.patch

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
1-
Signed-off-by: Ivan Mironov <[email protected]>
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: monkaBlyat <[email protected]>
3+
Date: Sun, 18 Aug 2024 10:39:57 +0200
4+
Subject: [ARCHEOLOGY] legacy kernel patch for ds4 controllers
5+
6+
> X-Git-Archeology: - Revision 54cc6ea4e2460c31960b7cbef5d27d588534eb77: https://github.com/armbian/build/commit/54cc6ea4e2460c31960b7cbef5d27d588534eb77
7+
> X-Git-Archeology: Date: Sun, 18 Aug 2024 10:39:57 +0200
8+
> X-Git-Archeology: From: monkaBlyat <[email protected]>
9+
> X-Git-Archeology: Subject: legacy kernel patch for ds4 controllers
10+
> X-Git-Archeology:
211
---
3-
drivers/hid/hid-sony.c | 72 ++++++++++++++++++++++++++++++------------
12+
drivers/hid/hid-sony.c | 72 +++++++---
413
1 file changed, 52 insertions(+), 20 deletions(-)
514

615
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
7-
index e3a557dc9ffd..97df12180e45 100644
16+
index 111111111111..222222222222 100644
817
--- a/drivers/hid/hid-sony.c
918
+++ b/drivers/hid/hid-sony.c
10-
@@ -491,6 +491,7 @@ struct motion_output_report_02 {
19+
@@ -476,6 +476,7 @@ struct motion_output_report_02 {
1120

1221
#define DS4_FEATURE_REPORT_0x02_SIZE 37
1322
#define DS4_FEATURE_REPORT_0x05_SIZE 41
1423
+#define DS4_FEATURE_REPORT_0x12_SIZE 16
1524
#define DS4_FEATURE_REPORT_0x81_SIZE 7
1625
#define DS4_FEATURE_REPORT_0xA3_SIZE 49
1726
#define DS4_INPUT_REPORT_0x11_SIZE 78
18-
@@ -2593,6 +2594,53 @@ static int sony_get_bt_devaddr(struct sony_sc *sc)
27+
@@ -2454,6 +2455,53 @@ static int sony_get_bt_devaddr(struct sony_sc *sc)
1928
return 0;
2029
}
2130

@@ -69,7 +78,7 @@ index e3a557dc9ffd..97df12180e45 100644
6978
static int sony_check_add(struct sony_sc *sc)
7079
{
7180
u8 *buf = NULL;
72-
@@ -2613,26 +2661,9 @@ static int sony_check_add(struct sony_sc *sc)
81+
@@ -2474,26 +2522,9 @@ static int sony_check_add(struct sony_sc *sc)
7382
return 0;
7483
}
7584
} else if (sc->quirks & (DUALSHOCK4_CONTROLLER_USB | DUALSHOCK4_DONGLE)) {
@@ -99,7 +108,7 @@ index e3a557dc9ffd..97df12180e45 100644
99108

100109
snprintf(sc->hdev->uniq, sizeof(sc->hdev->uniq),
101110
"%pMR", sc->mac_address);
102-
@@ -2670,6 +2701,7 @@ static int sony_check_add(struct sony_sc *sc)
111+
@@ -2531,6 +2562,7 @@ static int sony_check_add(struct sony_sc *sc)
103112
return 0;
104113
}
105114

@@ -108,4 +117,5 @@ index e3a557dc9ffd..97df12180e45 100644
108117

109118
out_free:
110119
--
111-
2.29.2
120+
Armbian
121+

0 commit comments

Comments
 (0)