From b2eed83d46c3f1442f21f953f2b7f341b34118a1 Mon Sep 17 00:00:00 2001
From: Nick Brassel <nick@tzarc.org>
Date: Fri, 17 Jun 2022 08:03:38 +1000
Subject: [PATCH] SPI Bugfix for ChibiOS 21.11.1 -- also rollback AW20216 mode
 change issue. (#17371)

---
 drivers/led/aw20216.c         | 2 +-
 lib/chibios                   | 2 +-
 util/update_chibios_mirror.sh | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/led/aw20216.c b/drivers/led/aw20216.c
index 299434f90967..55083936ef56 100644
--- a/drivers/led/aw20216.c
+++ b/drivers/led/aw20216.c
@@ -54,7 +54,7 @@
 #endif
 
 #ifndef AW_SPI_MODE
-#    define AW_SPI_MODE 3
+#    define AW_SPI_MODE 0
 #endif
 
 #ifndef AW_SPI_DIVISOR
diff --git a/lib/chibios b/lib/chibios
index 257302333c31..f836d24b06d7 160000
--- a/lib/chibios
+++ b/lib/chibios
@@ -1 +1 @@
-Subproject commit 257302333c31f1f710800c2b97acf3550de043e1
+Subproject commit f836d24b06d7265696a33d1cea010bd6a931791d
diff --git a/util/update_chibios_mirror.sh b/util/update_chibios_mirror.sh
index e6666c55c9fd..bd4c5c152980 100755
--- a/util/update_chibios_mirror.sh
+++ b/util/update_chibios_mirror.sh
@@ -7,7 +7,7 @@
 chibios_branches="trunk stable_20.3.x stable_21.11.x"
 
 # The ChibiOS tags to mirror
-chibios_tags="ver20.3.1 ver20.3.2 ver20.3.3 ver20.3.4 ver21.11.1"
+chibios_tags="ver20.3.1 ver20.3.2 ver20.3.3 ver20.3.4 ver21.11.1 ver21.11.2"
 
 # The ChibiOS-Contrib branches to mirror
 contrib_branches="chibios-20.3.x chibios-21.11.x"