mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
30 lines
867 B
Diff
30 lines
867 B
Diff
From 0f5fd4538774aa6c936bb8fc78611c3113bf19d7 Mon Sep 17 00:00:00 2001
|
|
From: Dom Cobley <popcornmix@gmail.com>
|
|
Date: Mon, 17 Apr 2023 15:21:41 +0100
|
|
Subject: [PATCH] vc4_drv: Avoid panic when booted with no kms
|
|
|
|
If kms/fkms overlay is not present we have no matching drivers
|
|
and so match is NULL.
|
|
|
|
It is not safe to call component_master_add_with_match with a null match argument.
|
|
|
|
So don't do that
|
|
|
|
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_drv.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_drv.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
|
|
@@ -456,6 +456,9 @@ static int vc4_platform_drm_probe(struct
|
|
vc4_match_add_drivers(dev, &match,
|
|
component_drivers, ARRAY_SIZE(component_drivers));
|
|
|
|
+ if (!match)
|
|
+ return -ENODEV;
|
|
+
|
|
return component_master_add_with_match(dev, &vc4_drm_ops, match);
|
|
}
|
|
|