Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrite all kernel patches and configs #7651

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
c4c8e73
`rockchip64`/`current`: rewrite-kernel-config, no changes
Jan 4, 2025
5b02f3d
`rockchip64`/`current`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
302e2ed
`rk35xx`/`vendor`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
61f8cad
`rk35xx`/`vendor`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
900e18d
`sunxi`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
757c4d7
`sunxi`/`current`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
7641424
`sunxi`/`legacy`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
59c5fc6
`sunxi`/`legacy`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
341a519
`sunxi`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
f234e7c
`sunxi`/`edge`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
595f621
`sunxi64`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
259a1d8
`sunxi64`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
c81c7a0
`meson64`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
b58169e
`meson64`/`edge`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
264233b
`sunxi64`/`legacy`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
3271409
`meson64`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
6d7b29a
`meson64`/`current`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
9ddc7df
`starfive`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
bb64e41
`starfive`/`edge`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
57e0198
`arm64`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
9669b9a
`arm64`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
920626f
`sm8250`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
e489333
`sm8250`/`current`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
9a731c4
`k3`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
f2e7a20
`mvebu`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
1df14d1
`mvebu`/`current`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
007de31
`mvebu`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
9437dff
`mvebu`/`edge`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
795e606
`x86`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
e459d6b
`x86`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
3eae637
`rockchip`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
b3f9378
`rockchip`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
c1fc9a2
`k3`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
32e7269
`sun55iw3-syterkit`/`legacy`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
1c5cc7d
`imx6`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
d88c016
`imx6`/`current`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
939f547
`imx6`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
88f1dd9
`meson-s4t7`/`legacy`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
d692c88
`imx8m`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
6865449
`imx8m`/`current`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
c37a450
`meson`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
7a0a10a
`meson`/`current`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
0d17497
`meson`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
e28b75e
`meson`/`edge`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
f1d610a
`x86`/`legacy`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
6a9af44
`spacemit`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
5d6f651
`spacemit`/`current`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
95de419
`mt7623`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
d6024b0
`mvebu64`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
727eec0
`mvebu64`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
a3fd5b7
`odroidxu4`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
713294c
`odroidxu4`/`current`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
78d927f
`odroidxu4`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
a87c73b
`phytium-embedded`/`legacy`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
a96466b
`phytium-embedded`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
7724fcd
`bcm2711`/`legacy`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
29aea4f
`bcm2711`/`legacy`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
5ac1d65
`bcm2711`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
7e1e9ad
`bcm2711`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
d49f8ca
`bcm2711`/`edge`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
1412643
`arm64`/`sc8280xp`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
88b98e7
`arm64`/`legacy`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
69a5d72
`arm64`/`legacy`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
4e23fc0
`riscv64`/`legacy`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
a0ee150
`riscv64`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
3a85d28
`riscv64`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
4208504
`arm64`/`wdk2023`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
e1d4e93
`wsl2-arm64`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
53fbb15
`wsl2-arm64`/`current`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
05f5df5
`wsl2-arm64`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
84364c4
`wsl2-arm64`/`edge`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
467be1a
`wsl2-x86`/`current`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
8b3a5cc
`wsl2-x86`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
29ff4c1
`sm8250`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
3ce0c4f
`rockchip64`/`edge`: rewrite-kernel-config, no changes
rpardini Jan 4, 2025
46aa88c
`rockchip64`/`edge`: rewrite-kernel-patches, no changes
rpardini Jan 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7,749 changes: 0 additions & 7,749 deletions config/kernel/linux-arm64-sc8280xp.config

Large diffs are not rendered by default.

8,299 changes: 2 additions & 8,297 deletions config/kernel/linux-arm64-wdk2023.config

Large diffs are not rendered by default.

7,045 changes: 2 additions & 7,043 deletions config/kernel/linux-bcm2711-current.config

Large diffs are not rendered by default.

7,087 changes: 2 additions & 7,085 deletions config/kernel/linux-bcm2711-edge.config

Large diffs are not rendered by default.

6,712 changes: 6 additions & 6,706 deletions config/kernel/linux-bcm2711-legacy.config

Large diffs are not rendered by default.

7,112 changes: 2 additions & 7,110 deletions config/kernel/linux-imx6-current.config

Large diffs are not rendered by default.

7,345 changes: 2 additions & 7,343 deletions config/kernel/linux-imx6-edge.config

Large diffs are not rendered by default.

7,274 changes: 2 additions & 7,272 deletions config/kernel/linux-k3-current.config

Large diffs are not rendered by default.

7,605 changes: 2 additions & 7,603 deletions config/kernel/linux-k3-edge.config

Large diffs are not rendered by default.

6,246 changes: 7 additions & 6,239 deletions config/kernel/linux-meson-current.config

Large diffs are not rendered by default.

6,505 changes: 3 additions & 6,502 deletions config/kernel/linux-meson-edge.config

Large diffs are not rendered by default.

6,540 changes: 6 additions & 6,534 deletions config/kernel/linux-meson-s4t7-legacy.config

Large diffs are not rendered by default.

6,428 changes: 4 additions & 6,424 deletions config/kernel/linux-meson64-current.config

Large diffs are not rendered by default.

6,909 changes: 3 additions & 6,906 deletions config/kernel/linux-meson64-edge.config

Large diffs are not rendered by default.

7,061 changes: 3 additions & 7,058 deletions config/kernel/linux-mt7623-current.config

Large diffs are not rendered by default.

5,652 changes: 2 additions & 5,650 deletions config/kernel/linux-mvebu-current.config

Large diffs are not rendered by default.

5,787 changes: 2 additions & 5,785 deletions config/kernel/linux-mvebu-edge.config

Large diffs are not rendered by default.

5,832 changes: 4 additions & 5,828 deletions config/kernel/linux-mvebu64-current.config

Large diffs are not rendered by default.

6,367 changes: 3 additions & 6,364 deletions config/kernel/linux-mvebu64-edge.config

Large diffs are not rendered by default.

6,093 changes: 4 additions & 6,089 deletions config/kernel/linux-odroidxu4-current.config

Large diffs are not rendered by default.

6,019 changes: 4 additions & 6,015 deletions config/kernel/linux-odroidxu4-edge.config

Large diffs are not rendered by default.

7,919 changes: 2 additions & 7,917 deletions config/kernel/linux-phytium-embedded-current.config

Large diffs are not rendered by default.

6,981 changes: 2 additions & 6,979 deletions config/kernel/linux-phytium-embedded-legacy.config

Large diffs are not rendered by default.

6,966 changes: 2 additions & 6,964 deletions config/kernel/linux-rk35xx-vendor.config

Large diffs are not rendered by default.

6,117 changes: 4 additions & 6,113 deletions config/kernel/linux-rockchip-current.config

Large diffs are not rendered by default.

6,349 changes: 2 additions & 6,347 deletions config/kernel/linux-rockchip-edge.config

Large diffs are not rendered by default.

6,982 changes: 4 additions & 6,978 deletions config/kernel/linux-rockchip64-current.config

Large diffs are not rendered by default.

6,994 changes: 4 additions & 6,990 deletions config/kernel/linux-rockchip64-edge.config

Large diffs are not rendered by default.

7,470 changes: 3 additions & 7,467 deletions config/kernel/linux-sm8250-current.config

Large diffs are not rendered by default.

7,064 changes: 6 additions & 7,058 deletions config/kernel/linux-sm8250-edge.config

Large diffs are not rendered by default.

8,160 changes: 4 additions & 8,156 deletions config/kernel/linux-spacemit-current.config

Large diffs are not rendered by default.

6,156 changes: 4 additions & 6,152 deletions config/kernel/linux-starfive-edge.config

Large diffs are not rendered by default.

6,412 changes: 5 additions & 6,407 deletions config/kernel/linux-sun55iw3-syterkit-legacy.config

Large diffs are not rendered by default.

5,881 changes: 4 additions & 5,877 deletions config/kernel/linux-sunxi-current.config

Large diffs are not rendered by default.

6,082 changes: 6 additions & 6,076 deletions config/kernel/linux-sunxi-edge.config

Large diffs are not rendered by default.

6,081 changes: 4 additions & 6,077 deletions config/kernel/linux-sunxi-legacy.config

Large diffs are not rendered by default.

6,017 changes: 2 additions & 6,015 deletions config/kernel/linux-sunxi64-current.config

Large diffs are not rendered by default.

6,361 changes: 3 additions & 6,358 deletions config/kernel/linux-sunxi64-edge.config

Large diffs are not rendered by default.

5,784 changes: 2 additions & 5,782 deletions config/kernel/linux-sunxi64-legacy.config

Large diffs are not rendered by default.

8,220 changes: 2 additions & 8,218 deletions config/kernel/linux-tqma-current.config

Large diffs are not rendered by default.

7,039 changes: 2 additions & 7,037 deletions config/kernel/linux-uefi-arm64-current.config

Large diffs are not rendered by default.

7,545 changes: 2 additions & 7,543 deletions config/kernel/linux-uefi-arm64-edge.config

Large diffs are not rendered by default.

6,537 changes: 2 additions & 6,535 deletions config/kernel/linux-uefi-arm64-legacy.config

Large diffs are not rendered by default.

6,506 changes: 4 additions & 6,502 deletions config/kernel/linux-uefi-riscv64-current.config

Large diffs are not rendered by default.

6,750 changes: 4 additions & 6,746 deletions config/kernel/linux-uefi-riscv64-edge.config

Large diffs are not rendered by default.

6,153 changes: 4 additions & 6,149 deletions config/kernel/linux-uefi-riscv64-legacy.config

Large diffs are not rendered by default.

6,328 changes: 2 additions & 6,326 deletions config/kernel/linux-uefi-x86-current.config

Large diffs are not rendered by default.

6,698 changes: 2 additions & 6,696 deletions config/kernel/linux-uefi-x86-edge.config

Large diffs are not rendered by default.

5,964 changes: 2 additions & 5,962 deletions config/kernel/linux-uefi-x86-legacy.config

Large diffs are not rendered by default.

3,978 changes: 1 addition & 3,977 deletions config/kernel/linux-wsl2-arm64-current.config

Large diffs are not rendered by default.

3,990 changes: 1 addition & 3,989 deletions config/kernel/linux-wsl2-arm64-edge.config

Large diffs are not rendered by default.

3,740 changes: 1 addition & 3,739 deletions config/kernel/linux-wsl2-x86-current.config

Large diffs are not rendered by default.

4,000 changes: 1 addition & 3,999 deletions config/kernel/linux-wsl2-x86-edge.config

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
From 988f69b247fa3a1b70876395342aeb8c7dc2e834 Mon Sep 17 00:00:00 2001
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: graysky <[email protected]>
Date: Mon, 7 Dec 2020 13:03:40 -0500
Subject: [PATCH] Make /proc/cpuinfo consistent on arm64 and arm
Subject: Make /proc/cpuinfo consistent on arm64 and arm

Signed-off-by: graysky <[email protected]>
---
arch/arm64/kernel/cpuinfo.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c
index 721350d21074..88e2b8fcd7e6 100644
index 111111111111..222222222222 100644
--- a/arch/arm64/kernel/cpuinfo.c
+++ b/arch/arm64/kernel/cpuinfo.c
@@ -153,9 +153,8 @@ static int c_show(struct seq_file *m, void *v)
@@ -175,9 +175,8 @@ static int c_show(struct seq_file *m, void *v)
* "processor". Give glibc what it expects.
*/
seq_printf(m, "processor\t: %d\n", i);
Expand All @@ -25,5 +25,5 @@ index 721350d21074..88e2b8fcd7e6 100644
seq_printf(m, "BogoMIPS\t: %lu.%02lu\n",
loops_per_jiffy / (500000UL/HZ),
--
2.29.2
Armbian

56 changes: 47 additions & 9 deletions patch/kernel/archive/bcm2711-6.1/1003-remote-wakeup.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,43 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Igor Pecovnik <[email protected]>
Date: Mon, 29 Aug 2022 08:43:24 +0200
Subject: [ARCHEOLOGY] Add patches needed for Pi-KVM on Rpi4 (#4127)

> X-Git-Archeology: > recovered message: > * Add patches needed for Pi-KVM on Rpi4
> X-Git-Archeology: > recovered message: > * Remove patch that does not belong here
> X-Git-Archeology: > recovered message: > * Update config
> X-Git-Archeology: > recovered message: > * Update edge config
> X-Git-Archeology: - Revision 2fb3aaaf86a7463ef1d26f4d623e1d3289ea4f25: https://github.com/armbian/build/commit/2fb3aaaf86a7463ef1d26f4d623e1d3289ea4f25
> X-Git-Archeology: Date: Mon, 29 Aug 2022 08:43:24 +0200
> X-Git-Archeology: From: Igor Pecovnik <[email protected]>
> X-Git-Archeology: Subject: Add patches needed for Pi-KVM on Rpi4 (#4127)
> X-Git-Archeology:
> X-Git-Archeology: - Revision acf5810cbe38c7578907ecd06e61abb0a446df1e: https://github.com/armbian/build/commit/acf5810cbe38c7578907ecd06e61abb0a446df1e
> X-Git-Archeology: Date: Sat, 11 Mar 2023 19:19:13 +0100
> X-Git-Archeology: From: Igor Pecovnik <[email protected]>
> X-Git-Archeology: Subject: Move Rpi kernels to 6.2, move current to legacy (#4898)
> X-Git-Archeology:
> X-Git-Archeology: - Revision 8caf51243e9769c48289be534f1ecc6aa4b53a15: https://github.com/armbian/build/commit/8caf51243e9769c48289be534f1ecc6aa4b53a15
> X-Git-Archeology: Date: Sun, 19 Nov 2023 22:34:54 +0100
> X-Git-Archeology: From: Igor <[email protected]>
> X-Git-Archeology: Subject: Bump rpi and ebin edge kernels to 6.6.y (#5925)
> X-Git-Archeology:
> X-Git-Archeology: - Revision f852beca0aeaec9ef5c062f089c3493e3b12fc48: https://github.com/armbian/build/commit/f852beca0aeaec9ef5c062f089c3493e3b12fc48
> X-Git-Archeology: Date: Sun, 07 Jan 2024 18:58:36 +0100
> X-Git-Archeology: From: Igor Pecovnik <[email protected]>
> X-Git-Archeology: Subject: Switch meson64, bcm2711, sunxi, imx6, mvebu current to 6.6, edge to 6.7 and leave 6.1 for legecy
> X-Git-Archeology:
---
drivers/usb/dwc2/gadget.c | 73 ++++++++++
drivers/usb/gadget/function/f_hid.c | 14 ++
drivers/usb/gadget/function/u_hid.h | 1 +
3 files changed, 88 insertions(+)

diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index 0909b088a284..31ff5348020c 100644
index 111111111111..222222222222 100644
--- a/drivers/usb/dwc2/gadget.c
+++ b/drivers/usb/dwc2/gadget.c
@@ -4763,6 +4763,78 @@ static void dwc2_gadget_set_speed(struct usb_gadget *g, enum usb_device_speed sp
@@ -4773,6 +4773,78 @@ static void dwc2_gadget_set_speed(struct usb_gadget *g, enum usb_device_speed sp
spin_unlock_irqrestore(&hsotg->lock, flags);
}

Expand Down Expand Up @@ -81,7 +116,7 @@ index 0909b088a284..31ff5348020c 100644
static const struct usb_gadget_ops dwc2_hsotg_gadget_ops = {
.get_frame = dwc2_hsotg_gadget_getframe,
.set_selfpowered = dwc2_hsotg_set_selfpowered,
@@ -4772,6 +4844,7 @@ static const struct usb_gadget_ops dwc2_hsotg_gadget_ops = {
@@ -4782,6 +4854,7 @@ static const struct usb_gadget_ops dwc2_hsotg_gadget_ops = {
.udc_set_speed = dwc2_gadget_set_speed,
.vbus_session = dwc2_hsotg_vbus_session,
.vbus_draw = dwc2_hsotg_vbus_draw,
Expand All @@ -90,7 +125,7 @@ index 0909b088a284..31ff5348020c 100644

/**
diff --git a/drivers/usb/gadget/function/f_hid.c b/drivers/usb/gadget/function/f_hid.c
index ca0a7d9eaa34..cf11ab8e88e0 100644
index 111111111111..222222222222 100644
--- a/drivers/usb/gadget/function/f_hid.c
+++ b/drivers/usb/gadget/function/f_hid.c
@@ -54,6 +54,8 @@ struct f_hidg {
Expand All @@ -102,7 +137,7 @@ index ca0a7d9eaa34..cf11ab8e88e0 100644

/* recv report */
spinlock_t read_spinlock;
@@ -422,10 +424,19 @@ static ssize_t f_hidg_write(struct file *file, const char __user *buffer,
@@ -431,10 +433,19 @@ static ssize_t f_hidg_write(struct file *file, const char __user *buffer,
size_t count, loff_t *offp)
{
struct f_hidg *hidg = file->private_data;
Expand All @@ -122,23 +157,23 @@ index ca0a7d9eaa34..cf11ab8e88e0 100644
spin_lock_irqsave(&hidg->write_spinlock, flags);

if (!hidg->req) {
@@ -1101,6 +1112,7 @@ CONFIGFS_ATTR(f_hid_opts_, name)
@@ -1098,6 +1109,7 @@ CONFIGFS_ATTR(f_hid_opts_, name)
F_HID_OPT(subclass, 8, 255);
F_HID_OPT(protocol, 8, 255);
F_HID_OPT(no_out_endpoint, 8, 1);
+F_HID_OPT(wakeup_on_write, 8, 1);
F_HID_OPT(report_length, 16, 65535);

static ssize_t f_hid_opts_report_desc_show(struct config_item *item, char *page)
@@ -1161,6 +1173,7 @@ static struct configfs_attribute *hid_attrs[] = {
@@ -1158,6 +1170,7 @@ static struct configfs_attribute *hid_attrs[] = {
&f_hid_opts_attr_subclass,
&f_hid_opts_attr_protocol,
&f_hid_opts_attr_no_out_endpoint,
+ &f_hid_opts_attr_wakeup_on_write,
&f_hid_opts_attr_report_length,
&f_hid_opts_attr_report_desc,
&f_hid_opts_attr_dev,
@@ -1293,6 +1306,7 @@ static struct usb_function *hidg_alloc(struct usb_function_instance *fi)
@@ -1299,6 +1312,7 @@ static struct usb_function *hidg_alloc(struct usb_function_instance *fi)
}
}
hidg->use_out_ep = !opts->no_out_endpoint;
Expand All @@ -147,7 +182,7 @@ index ca0a7d9eaa34..cf11ab8e88e0 100644
mutex_unlock(&opts->lock);

diff --git a/drivers/usb/gadget/function/u_hid.h b/drivers/usb/gadget/function/u_hid.h
index 84bb70292855..f7fcaf1eaf1d 100644
index 111111111111..222222222222 100644
--- a/drivers/usb/gadget/function/u_hid.h
+++ b/drivers/usb/gadget/function/u_hid.h
@@ -21,6 +21,7 @@ struct f_hid_opts {
Expand All @@ -158,3 +193,6 @@ index 84bb70292855..f7fcaf1eaf1d 100644
unsigned short report_length;
unsigned short report_desc_length;
unsigned char *report_desc;
--
Armbian

40 changes: 38 additions & 2 deletions patch/kernel/archive/bcm2711-6.1/2001-rename-msd.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,41 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Igor Pecovnik <[email protected]>
Date: Mon, 29 Aug 2022 08:43:24 +0200
Subject: [ARCHEOLOGY] Add patches needed for Pi-KVM on Rpi4 (#4127)

> X-Git-Archeology: > recovered message: > * Add patches needed for Pi-KVM on Rpi4
> X-Git-Archeology: > recovered message: > * Remove patch that does not belong here
> X-Git-Archeology: > recovered message: > * Update config
> X-Git-Archeology: > recovered message: > * Update edge config
> X-Git-Archeology: - Revision 2fb3aaaf86a7463ef1d26f4d623e1d3289ea4f25: https://github.com/armbian/build/commit/2fb3aaaf86a7463ef1d26f4d623e1d3289ea4f25
> X-Git-Archeology: Date: Mon, 29 Aug 2022 08:43:24 +0200
> X-Git-Archeology: From: Igor Pecovnik <[email protected]>
> X-Git-Archeology: Subject: Add patches needed for Pi-KVM on Rpi4 (#4127)
> X-Git-Archeology:
> X-Git-Archeology: - Revision acf5810cbe38c7578907ecd06e61abb0a446df1e: https://github.com/armbian/build/commit/acf5810cbe38c7578907ecd06e61abb0a446df1e
> X-Git-Archeology: Date: Sat, 11 Mar 2023 19:19:13 +0100
> X-Git-Archeology: From: Igor Pecovnik <[email protected]>
> X-Git-Archeology: Subject: Move Rpi kernels to 6.2, move current to legacy (#4898)
> X-Git-Archeology:
> X-Git-Archeology: - Revision 8caf51243e9769c48289be534f1ecc6aa4b53a15: https://github.com/armbian/build/commit/8caf51243e9769c48289be534f1ecc6aa4b53a15
> X-Git-Archeology: Date: Sun, 19 Nov 2023 22:34:54 +0100
> X-Git-Archeology: From: Igor <[email protected]>
> X-Git-Archeology: Subject: Bump rpi and ebin edge kernels to 6.6.y (#5925)
> X-Git-Archeology:
> X-Git-Archeology: - Revision f852beca0aeaec9ef5c062f089c3493e3b12fc48: https://github.com/armbian/build/commit/f852beca0aeaec9ef5c062f089c3493e3b12fc48
> X-Git-Archeology: Date: Sun, 07 Jan 2024 18:58:36 +0100
> X-Git-Archeology: From: Igor Pecovnik <[email protected]>
> X-Git-Archeology: Subject: Switch meson64, bcm2711, sunxi, imx6, mvebu current to 6.6, edge to 6.7 and leave 6.1 for legecy
> X-Git-Archeology:
---
drivers/usb/gadget/function/f_mass_storage.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/gadget/function/f_mass_storage.c b/drivers/usb/gadget/function/f_mass_storage.c
index 4a4703634a2a..cdba48f5ddf8 100644
index 111111111111..222222222222 100644
--- a/drivers/usb/gadget/function/f_mass_storage.c
+++ b/drivers/usb/gadget/function/f_mass_storage.c
@@ -2852,11 +2852,11 @@ void fsg_common_set_inquiry_string(struct fsg_common *common, const char *vn,
@@ -2986,11 +2986,11 @@ void fsg_common_set_inquiry_string(struct fsg_common *common, const char *vn,
/* Prepare inquiryString */
i = get_default_bcdDevice();
snprintf(common->inquiry_string, sizeof(common->inquiry_string),
Expand All @@ -17,3 +50,6 @@ index 4a4703634a2a..cdba48f5ddf8 100644
i);
}
EXPORT_SYMBOL_GPL(fsg_common_set_inquiry_string);
--
Armbian

Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Signed-off-by: graysky <[email protected]>
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c
index ee36fa8be3af..049bdca2655c 100644
index 111111111111..222222222222 100644
--- a/arch/arm64/kernel/cpuinfo.c
+++ b/arch/arm64/kernel/cpuinfo.c
@@ -193,9 +193,8 @@ static int c_show(struct seq_file *m, void *v)
@@ -211,9 +211,8 @@ static int c_show(struct seq_file *m, void *v)
* "processor". Give glibc what it expects.
*/
seq_printf(m, "processor\t: %d\n", i);
Expand Down
18 changes: 9 additions & 9 deletions patch/kernel/archive/bcm2711-6.10/1003-remote-wakeup.patch
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ Subject: [ARCHEOLOGY] Add patches needed for Pi-KVM on Rpi4 (#4127)
3 files changed, 88 insertions(+)

diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index 8b15742d9e8a..a7d997a205d5 100644
index 111111111111..222222222222 100644
--- a/drivers/usb/dwc2/gadget.c
+++ b/drivers/usb/dwc2/gadget.c
@@ -4763,6 +4763,78 @@ static void dwc2_gadget_set_speed(struct usb_gadget *g, enum usb_device_speed sp
@@ -4775,6 +4775,78 @@ static void dwc2_gadget_set_speed(struct usb_gadget *g, enum usb_device_speed sp
spin_unlock_irqrestore(&hsotg->lock, flags);
}

Expand Down Expand Up @@ -111,7 +111,7 @@ index 8b15742d9e8a..a7d997a205d5 100644
static const struct usb_gadget_ops dwc2_hsotg_gadget_ops = {
.get_frame = dwc2_hsotg_gadget_getframe,
.set_selfpowered = dwc2_hsotg_set_selfpowered,
@@ -4772,6 +4844,7 @@ static const struct usb_gadget_ops dwc2_hsotg_gadget_ops = {
@@ -4784,6 +4856,7 @@ static const struct usb_gadget_ops dwc2_hsotg_gadget_ops = {
.udc_set_speed = dwc2_gadget_set_speed,
.vbus_session = dwc2_hsotg_vbus_session,
.vbus_draw = dwc2_hsotg_vbus_draw,
Expand All @@ -120,7 +120,7 @@ index 8b15742d9e8a..a7d997a205d5 100644

/**
diff --git a/drivers/usb/gadget/function/f_hid.c b/drivers/usb/gadget/function/f_hid.c
index ea85e2c701a1..846942e4275a 100644
index 111111111111..222222222222 100644
--- a/drivers/usb/gadget/function/f_hid.c
+++ b/drivers/usb/gadget/function/f_hid.c
@@ -58,6 +58,8 @@ struct f_hidg {
Expand All @@ -132,7 +132,7 @@ index ea85e2c701a1..846942e4275a 100644

/* recv report */
spinlock_t read_spinlock;
@@ -434,10 +436,19 @@ static ssize_t f_hidg_write(struct file *file, const char __user *buffer,
@@ -435,10 +437,19 @@ static ssize_t f_hidg_write(struct file *file, const char __user *buffer,
size_t count, loff_t *offp)
{
struct f_hidg *hidg = file->private_data;
Expand All @@ -152,23 +152,23 @@ index ea85e2c701a1..846942e4275a 100644
spin_lock_irqsave(&hidg->write_spinlock, flags);

if (!hidg->req) {
@@ -1101,6 +1112,7 @@ CONFIGFS_ATTR(f_hid_opts_, name)
@@ -1102,6 +1113,7 @@ CONFIGFS_ATTR(f_hid_opts_, name)
F_HID_OPT(subclass, 8, 255);
F_HID_OPT(protocol, 8, 255);
F_HID_OPT(no_out_endpoint, 8, 1);
+F_HID_OPT(wakeup_on_write, 8, 1);
F_HID_OPT(report_length, 16, 65535);

static ssize_t f_hid_opts_report_desc_show(struct config_item *item, char *page)
@@ -1161,6 +1173,7 @@ static struct configfs_attribute *hid_attrs[] = {
@@ -1162,6 +1174,7 @@ static struct configfs_attribute *hid_attrs[] = {
&f_hid_opts_attr_subclass,
&f_hid_opts_attr_protocol,
&f_hid_opts_attr_no_out_endpoint,
+ &f_hid_opts_attr_wakeup_on_write,
&f_hid_opts_attr_report_length,
&f_hid_opts_attr_report_desc,
&f_hid_opts_attr_dev,
@@ -1296,6 +1309,7 @@ static struct usb_function *hidg_alloc(struct usb_function_instance *fi)
@@ -1297,6 +1310,7 @@ static struct usb_function *hidg_alloc(struct usb_function_instance *fi)
}
}
hidg->use_out_ep = !opts->no_out_endpoint;
Expand All @@ -177,7 +177,7 @@ index ea85e2c701a1..846942e4275a 100644
++opts->refcnt;
mutex_unlock(&opts->lock);
diff --git a/drivers/usb/gadget/function/u_hid.h b/drivers/usb/gadget/function/u_hid.h
index 84bb70292855..f7fcaf1eaf1d 100644
index 111111111111..222222222222 100644
--- a/drivers/usb/gadget/function/u_hid.h
+++ b/drivers/usb/gadget/function/u_hid.h
@@ -21,6 +21,7 @@ struct f_hid_opts {
Expand Down
4 changes: 2 additions & 2 deletions patch/kernel/archive/bcm2711-6.10/2001-rename-msd.patch
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Subject: [ARCHEOLOGY] Add patches needed for Pi-KVM on Rpi4 (#4127)
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/gadget/function/f_mass_storage.c b/drivers/usb/gadget/function/f_mass_storage.c
index da07e45ae6df..723d70766a49 100644
index 111111111111..222222222222 100644
--- a/drivers/usb/gadget/function/f_mass_storage.c
+++ b/drivers/usb/gadget/function/f_mass_storage.c
@@ -2967,11 +2967,11 @@ void fsg_common_set_inquiry_string(struct fsg_common *common, const char *vn,
@@ -2983,11 +2983,11 @@ void fsg_common_set_inquiry_string(struct fsg_common *common, const char *vn,
/* Prepare inquiryString */
i = get_default_bcdDevice();
snprintf(common->inquiry_string, sizeof(common->inquiry_string),
Expand Down
56 changes: 36 additions & 20 deletions patch/kernel/archive/imx6-6.6/udoo_usb_fix.patch
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index 7327fce87808..b06128da94e5 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -336,6 +336,7 @@ CONFIG_USB_SERIAL_FTDI_SIO=m
CONFIG_USB_SERIAL_OPTION=m
CONFIG_USB_TEST=m
CONFIG_USB_EHSET_TEST_FIXTURE=m
+CONFIG_USB_ONBOARD_HUB=y
CONFIG_NOP_USB_XCEIV=y
CONFIG_USB_MXS_PHY=y
CONFIG_USB_GADGET=y
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Pete <[email protected]>
Date: Mon, 22 Apr 2024 16:00:47 +0200
Subject: [ARCHEOLOGY] Add UDOO USB patch for newer kernels (#6505)

> X-Git-Archeology: - Revision 4b53634475c798f4a0ae4d9530cc8f4896c43723: https://github.com/armbian/build/commit/4b53634475c798f4a0ae4d9530cc8f4896c43723
> X-Git-Archeology: Date: Mon, 22 Apr 2024 16:00:47 +0200
> X-Git-Archeology: From: Pete <[email protected]>
> X-Git-Archeology: Subject: Add UDOO USB patch for newer kernels (#6505)
> X-Git-Archeology:
---
arch/arm/boot/dts/nxp/imx/imx6qdl-udoo.dtsi | 25 +++++-----
arch/arm/configs/imx_v6_v7_defconfig | 1 +
drivers/usb/misc/onboard_usb_hub.c | 14 ++++++
3 files changed, 27 insertions(+), 13 deletions(-)

diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-udoo.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-udoo.dtsi
index 647ba5e623dd..14272b42f9a1 100644
index 111111111111..222222222222 100644
--- a/arch/arm/boot/dts/nxp/imx/imx6qdl-udoo.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-udoo.dtsi
@@ -59,16 +59,6 @@ panel_in: endpoint {
Expand Down Expand Up @@ -54,9 +57,20 @@ index 647ba5e623dd..14272b42f9a1 100644
};

&usbotg {

diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index 111111111111..222222222222 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -336,6 +336,7 @@ CONFIG_USB_SERIAL_FTDI_SIO=m
CONFIG_USB_SERIAL_OPTION=m
CONFIG_USB_TEST=m
CONFIG_USB_EHSET_TEST_FIXTURE=m
+CONFIG_USB_ONBOARD_HUB=y
CONFIG_NOP_USB_XCEIV=y
CONFIG_USB_MXS_PHY=y
CONFIG_USB_GADGET=y
diff --git a/drivers/usb/misc/onboard_usb_hub.c b/drivers/usb/misc/onboard_usb_hub.c
index 6d122772a97064..3b209104f648fd 100644
index 111111111111..222222222222 100644
--- a/drivers/usb/misc/onboard_usb_hub.c
+++ b/drivers/usb/misc/onboard_usb_hub.c
@@ -5,6 +5,7 @@
Expand All @@ -66,8 +80,8 @@ index 6d122772a97064..3b209104f648fd 100644
+#include <linux/clk.h>
#include <linux/device.h>
#include <linux/export.h>
#include <linux/err.h>
@@ -61,12 +62,19 @@ struct onboard_hub {
#include <linux/gpio/consumer.h>
@@ -60,12 +61,19 @@ struct onboard_hub {
bool going_away;
struct list_head udev_list;
struct mutex lock;
Expand All @@ -86,8 +100,8 @@ index 6d122772a97064..3b209104f648fd 100644
+
err = regulator_bulk_enable(hub->pdata->num_supplies, hub->supplies);
if (err) {
dev_err(hub->dev, "failed to enable supplies: %pe\n", ERR_PTR(err));
@@ -93,6 +101,8 @@ static int onboard_hub_power_off(struct onboard_hub *hub)
dev_err(hub->dev, "failed to enable supplies: %d\n", err);
@@ -92,6 +100,8 @@ static int onboard_hub_power_off(struct onboard_hub *hub)
return err;
}

Expand All @@ -96,7 +110,7 @@ index 6d122772a97064..3b209104f648fd 100644
hub->is_powered_on = false;

return 0;
@@ -267,6 +277,10 @@ static int onboard_hub_probe(struct platform_device *pdev)
@@ -271,6 +281,10 @@ static int onboard_hub_probe(struct platform_device *pdev)
return err;
}

Expand All @@ -107,4 +121,6 @@ index 6d122772a97064..3b209104f648fd 100644
hub->reset_gpio = devm_gpiod_get_optional(dev, "reset",
GPIOD_OUT_HIGH);
if (IS_ERR(hub->reset_gpio))
--
Armbian

Loading
Loading