Skip to content

Instantly share code, notes, and snippets.

View lategoodbye's full-sized avatar

lategoodbye

  • chargebyte GmbH
  • Germany
View GitHub Profile
@lategoodbye
lategoodbye / 0001-pinctrl-bcm2835-add_videocore_function.patch
Created April 22, 2017 08:19
Add virtual pinctrl function in order to reserve them for videocore
From d188c03c1fba7d1223c1dafcb8b977e383298ef4 Mon Sep 17 00:00:00 2001
From: Linus Walleij <[email protected]>
Date: Wed, 15 Mar 2017 09:45:37 +0100
Subject: [PATCH] Stab at videocore function
Signed-off-by: Linus Walleij <[email protected]>
---
drivers/pinctrl/bcm/pinctrl-bcm2835.c | 9 +++++++++
include/dt-bindings/pinctrl/bcm2835.h | 1 +
2 files changed, 10 insertions(+)
@lategoodbye
lategoodbye / 0001-wip-clk-mxs-try-to-fix-bit-errors.patch
Created May 7, 2017 11:45
Try to fix the bit errors on MX28 SSP2
diff --git a/drivers/clk/mxs/clk-div.c b/drivers/clk/mxs/clk-div.c
index f75e989..f3a8d827 100644
--- a/drivers/clk/mxs/clk-div.c
+++ b/drivers/clk/mxs/clk-div.c
@@ -58,11 +58,30 @@ static int clk_div_set_rate(struct clk_hw *hw, unsigned long rate,
unsigned long parent_rate)
{
struct clk_div *div = to_clk_div(hw);
+ u32 val;
int ret;
@lategoodbye
lategoodbye / usbtest-rpi-zero-hub-pl2303.mon
Created May 13, 2017 12:20
usbmon trace of usb_test on RPI Zero with PL2303 connected via USB hub (bad case)
da6efb00 316377734 S Co:1:004:0 s 40 01 0008 0000 0000 0
da6efb00 316378587 C Co:1:004:0 0 0
da6efb00 316378837 S Co:1:004:0 s 40 01 0009 0000 0000 0
da6efb00 316379201 C Co:1:004:0 0 0
da6efb00 316379397 S Ci:1:004:0 s a1 21 0000 0000 0007 7 <
da6efb00 316379697 C Ci:1:004:0 0 7 = 80250000 000000
da6efb00 316379890 S Co:1:004:0 s 21 20 0000 0000 0007 7 = 80250000 000008
da6efb00 316380350 C Co:1:004:0 0 7 >
da6efb00 316380580 S Co:1:004:0 s 40 01 0000 0000 0000 0
da6efb00 316380932 C Co:1:004:0 0 0
@lategoodbye
lategoodbye / usbtest-rpi-zero-pl2303.mon
Created May 13, 2017 12:22
usbmon trace of usb_test on RPI Zero with PL2303 directly connected (good case)
d9adfd00 1324940464 S Co:1:005:0 s 40 01 0008 0000 0000 0
d9adfd00 1324941739 C Co:1:005:0 0 0
d9adfd00 1324941792 S Co:1:005:0 s 40 01 0009 0000 0000 0
d9adfd00 1324941879 C Co:1:005:0 0 0
d9adfd00 1324941920 S Ci:1:005:0 s a1 21 0000 0000 0007 7 <
d9adfd00 1324942046 C Ci:1:005:0 0 7 = 80250000 000000
d9adfd00 1324942093 S Co:1:005:0 s 21 20 0000 0000 0007 7 = 80250000 000008
d9adfd00 1324942211 C Co:1:005:0 0 7 >
d9adfd00 1324942248 S Co:1:005:0 s 40 01 0000 0000 0000 0
d9adfd00 1324942335 C Co:1:005:0 0 0
@lategoodbye
lategoodbye / 0001-usb-dwc2-platform-Swap-mode-init-order.patch
Last active May 13, 2017 23:38
usb: dwc2: platform: Swap mode init order
From 157045fd728964f9c864863f70f5cb0e6e0ee8d8 Mon Sep 17 00:00:00 2001
From: Stefan Wahren <[email protected]>
Date: Sat, 13 May 2017 23:23:53 +0000
Subject: [PATCH] usb: dwc2: platform: Swap mode init order
Before this change there could be gadget enumeration issues in
dual mode. These might be caused by runtime issues between the gadget
and the hcd init. So swap the order to avoid this.
Signed-off-by: Stefan Wahren <[email protected]>
@lategoodbye
lategoodbye / vchiq_highmem.patch
Created August 26, 2017 22:03
Make VCHIQ functional test work with HIGHMEM
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
index 0159ca4..be08849 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
@@ -612,18 +612,20 @@ free_pagelist(struct vchiq_pagelist_info *pagelistinfo,
if (head_bytes > actual)
head_bytes = actual;
- memcpy((char *)page_address(pages[0]) +
+ memcpy((char *)kmap(pages[0]) +
@lategoodbye
lategoodbye / pom-descriptor.patch
Created September 2, 2017 13:11
Fix for RiseV2G POM descriptor
diff --git a/RISE-V2G-EVCC/pom.xml b/RISE-V2G-EVCC/pom.xml
index 7a6b39d..41da1c7 100644
--- a/RISE-V2G-EVCC/pom.xml
+++ b/RISE-V2G-EVCC/pom.xml
@@ -61,7 +61,7 @@
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
- <descriptor>${project.baseUri}src/assembly/bin.xml</descriptor>
+ <descriptor>src/assembly/bin.xml</descriptor>
@lategoodbye
lategoodbye / 0001-drm-vc4-Fix-race-during-binding.patch
Last active September 30, 2017 11:38
Possible fix NULL pointer dereference during VC4 binding
From 88bffea2fd7a573f7e9659b188a125cd9842f79b Mon Sep 17 00:00:00 2001
From: Stefan Wahren <[email protected]>
Date: Sat, 30 Sep 2017 13:28:40 +0200
Subject: [PATCH] drm: vc4: Fix race during binding
This fixes the race between vc4_overflow_mem_work and the init of the
job lock. Otherwise we could trigger a NULL pointer dereference
during binding.
Signed-off-by: Stefan Wahren <[email protected]>
@lategoodbye
lategoodbye / rpi2-usb-sound-issue-lsusb-verbose.txt
Created April 27, 2018 05:45
RPi 2 + Logilink UA0124 + Speedlink SL-8850-BK01
Bus 001 Device 007: ID 046d:c31c Logitech, Inc. Keyboard K120
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
@lategoodbye
lategoodbye / regdump_4.17rc4_uboot.log
Created May 7, 2018 20:29
Regdump RPi 1B, Linux 4.17rc4 (bcm2835_defconfig) with U-Boot
/sys/kernel/debug/clk/aveo
ctl = 0x00000000
div = 0x00000000
/sys/kernel/debug/clk/cam0
ctl = 0x00000000
div = 0x00000000
/sys/kernel/debug/clk/cam1
ctl = 0x00000000
div = 0x00000000
/sys/kernel/debug/clk/dft