Skip to content

Instantly share code, notes, and snippets.

WARNING: line over 80 characters
#37: FILE: drivers/net/wireless/realtek/rtl8192cu/core/rtw_ioctl_set.c:538:
+u8 rtw_set_802_11_connect(_adapter* padapter, const u8 *bssid, NDIS_802_11_SSID *ssid)
ERROR: "foo* bar" should be "foo *bar"
#37: FILE: drivers/net/wireless/realtek/rtl8192cu/core/rtw_ioctl_set.c:538:
+u8 rtw_set_802_11_connect(_adapter* padapter, const u8 *bssid, NDIS_802_11_SSID *ssid)
WARNING: line over 80 characters
#76: FILE: drivers/net/wireless/realtek/rtl8192cu/include/autoconf.h:36:
@pelwell
pelwell / i2c-mux-overlay.dts
Last active May 11, 2016 11:22
Generic I2C Mux overlay
// Generic I2C Mux overlay
/dts-v1/;
/plugin/;
/{
compatible = "brcm,bcm2708";
fragment@0 {
target = <&i2c_arm>;
From 52c54a27d20295dfcfd0f8ef3c62efaa8253e8c2 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Thu, 14 Apr 2016 10:02:39 +0100
Subject: [PATCH 1/2] fixup audio
---
arch/arm/boot/dts/overlays/README | 8 ++++--
.../boot/dts/overlays/boomberry-dac-overlay.dts | 3 +--
sound/soc/bcm/boomberry-digi.c | 30 +++++++++++-----------
3 files changed, 22 insertions(+), 19 deletions(-)
@pelwell
pelwell / 1. before.txt
Last active May 17, 2017 05:09
kernel log output extracted from @Noltari's kernel before and after removing device_tree_address=0x100
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.21-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #872 SMP Wed Apr 6 17:34:14 BST 2016
[ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2
[ 0.000000] cma: Reserved 8 MiB at 0x3a800000
[ 0.000000] Memory policy: Data cache writealloc
@pelwell
pelwell / 0001-bcm43xx-Add-bcm43xx-3wire-variant.patch
Last active February 26, 2020 16:34
BlueZ patches for bcm43430 on RPi
From b4f2b77472aeb967d3a7595e8a965785c7a37c87 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Tue, 16 Feb 2016 16:40:46 +0000
Subject: [PATCH 1/4] bcm43xx: Add bcm43xx-3wire variant
---
tools/hciattach.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/hciattach.c b/tools/hciattach.c
@pelwell
pelwell / 0001-Aux-SPI-1-2-implementation.patch
Created February 23, 2016 15:17
Latest version of patch with cosmetic changes
From dc54420b7665e3344062d0c2571c86cc69fb418f Mon Sep 17 00:00:00 2001
From: Fraser <github@frasersdev.net>
Date: Tue, 23 Feb 2016 10:04:37 +1100
Subject: [PATCH] Aux SPI 1&2 implementation
Adds aux spi 1 & 2 devices for compatible Raspberry Pis.
* Minor config of the driver build environment to ensure they get built
for CONFIG_ARCH_BCM2708 & CONFIG_ARCH_BCM2709 devices.
* Adds the aux spi driver into the defconfigs as a module.
* Adds the auxiliary and spi1/2 devices into the device tree in a
From be3a54cb721546a7b1edf47f338c517fd2a904c3 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Wed, 4 Nov 2015 17:37:33 +0000
Subject: [PATCH] vcilcs: Avoid a potential deadlock when very threaded
See: https://github.com/raspberrypi/firmware/issues/449
---
interface/vmcs_host/vcilcs.c | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
@pelwell
pelwell / pr1163.patch
Last active October 13, 2015 08:33
This diff is the result of replacing the downstream I2S driver with the @HiassofT's modified upstream I2S driver after a simple 2835->2708 textual substitution, because I find it makes it easier to understand the consequences of switching. As you can see, the two drivers are virtually identical.
diff --git a/sound/soc/bcm/bcm2708-i2s.c b/sound/soc/bcm/bcm2708-i2s.c
index ad9ca2c..1eeb131 100644
--- a/sound/soc/bcm/bcm2708-i2s.c
+++ b/sound/soc/bcm/bcm2708-i2s.c
@@ -31,8 +31,6 @@
* General Public License for more details.
*/
-#include "bcm2708-i2s.h"
-
@pelwell
pelwell / 0001-squash-Unbreak-BCM2709-build.patch
Last active August 29, 2015 14:27
squash: Unbreak BCM2709 build
From 1e6be5cac10150d967295575e8192ee2445e167c Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Sat, 22 Aug 2015 16:09:40 +0100
Subject: [PATCH] squash: Unbreak BCM2709 build
---
drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c b/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c
@pelwell
pelwell / 0001-BCM2708-Use-upstream-interrupt-driver-on-all-Pi1-s.patch
Last active August 29, 2015 14:27
BCM2708: Use upstream interrupt driver on all Pi1's (Take 2)
From f27eee8d093a553d7249a9d8e4231f1f0f781c6e Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Wed, 19 Aug 2015 08:49:11 +0100
Subject: [PATCH] BCM2708: Use upstream interrupt driver on all Pi1's
Although the aim is to delete the old armctrl driver, that can't happen
while non-DT configurations are still supported. This commit enables
use of the new FIQ-enabled upstream irqchip driver when DT is enabled
on all BCM2835-based RPi platforms (Models A, B, A+, B+ & CM).