mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +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>
32 lines
1020 B
Diff
32 lines
1020 B
Diff
From cdbebb3a92aca7327c88c6dc6ef5d4cd470d49fc Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
Date: Thu, 23 Feb 2023 19:44:32 +0100
|
|
Subject: [PATCH] drm/vc4: hdmi: Warn if writing to an unknown HDMI register
|
|
|
|
The VC4 HDMI driver has a bunch of accessors to read from a register.
|
|
The read accessor was warning when accessing an unknown register, but
|
|
the write one was just returning silently.
|
|
|
|
Let's make sure we warn also when writing to an unknown register.
|
|
|
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_hdmi_regs.h
|
|
+++ b/drivers/gpu/drm/vc4/vc4_hdmi_regs.h
|
|
@@ -498,8 +498,11 @@ static inline void vc4_hdmi_write(struct
|
|
|
|
field = &variant->registers[reg];
|
|
base = __vc4_hdmi_get_field_base(hdmi, field->reg);
|
|
- if (!base)
|
|
+ if (!base) {
|
|
+ dev_warn(&hdmi->pdev->dev,
|
|
+ "Unknown register ID %u\n", reg);
|
|
return;
|
|
+ }
|
|
|
|
writel(value, base + field->offset);
|
|
}
|