Skip to content

Commit

Permalink
rk35xx/legacy: rewrite-kernel-patches, no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rpardini committed Jan 5, 2025
1 parent bc38307 commit ec42135
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions patch/kernel/rk35xx-legacy/001-hid-sony.patch
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
Signed-off-by: Ivan Mironov <[email protected]>
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: monkaBlyat <[email protected]>
Date: Sun, 18 Aug 2024 10:39:57 +0200
Subject: [ARCHEOLOGY] legacy kernel patch for ds4 controllers

> X-Git-Archeology: - Revision 54cc6ea4e2460c31960b7cbef5d27d588534eb77: https://github.com/armbian/build/commit/54cc6ea4e2460c31960b7cbef5d27d588534eb77
> X-Git-Archeology: Date: Sun, 18 Aug 2024 10:39:57 +0200
> X-Git-Archeology: From: monkaBlyat <[email protected]>
> X-Git-Archeology: Subject: legacy kernel patch for ds4 controllers
> X-Git-Archeology:
---
drivers/hid/hid-sony.c | 72 ++++++++++++++++++++++++++++++------------
drivers/hid/hid-sony.c | 72 +++++++---
1 file changed, 52 insertions(+), 20 deletions(-)

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

#define DS4_FEATURE_REPORT_0x02_SIZE 37
#define DS4_FEATURE_REPORT_0x05_SIZE 41
+#define DS4_FEATURE_REPORT_0x12_SIZE 16
#define DS4_FEATURE_REPORT_0x81_SIZE 7
#define DS4_FEATURE_REPORT_0xA3_SIZE 49
#define DS4_INPUT_REPORT_0x11_SIZE 78
@@ -2593,6 +2594,53 @@ static int sony_get_bt_devaddr(struct sony_sc *sc)
@@ -2454,6 +2455,53 @@ static int sony_get_bt_devaddr(struct sony_sc *sc)
return 0;
}

Expand Down Expand Up @@ -69,7 +78,7 @@ index e3a557dc9ffd..97df12180e45 100644
static int sony_check_add(struct sony_sc *sc)
{
u8 *buf = NULL;
@@ -2613,26 +2661,9 @@ static int sony_check_add(struct sony_sc *sc)
@@ -2474,26 +2522,9 @@ static int sony_check_add(struct sony_sc *sc)
return 0;
}
} else if (sc->quirks & (DUALSHOCK4_CONTROLLER_USB | DUALSHOCK4_DONGLE)) {
Expand Down Expand Up @@ -99,7 +108,7 @@ index e3a557dc9ffd..97df12180e45 100644

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

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

out_free:
--
2.29.2
Armbian

0 comments on commit ec42135

Please sign in to comment.