aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-mediatek/patches/101-05-serial-mtk-initial-priv-data-before-using.patch
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2023-07-22 18:55:32 +0100
committerDaniel Golle <daniel@makrotopia.org>2023-08-07 16:31:27 +0100
commitb7e9445d6dcea9c4a6cd5f017a797ccc269c8c7a (patch)
treef5dd9278a42cc46723e31fa509e4c35e048b3263 /package/boot/uboot-mediatek/patches/101-05-serial-mtk-initial-priv-data-before-using.patch
parent6553b1caed792ff3d3eed36be7ccb2162bbe9945 (diff)
downloadupstream-b7e9445d6dcea9c4a6cd5f017a797ccc269c8c7a.tar.gz
upstream-b7e9445d6dcea9c4a6cd5f017a797ccc269c8c7a.tar.bz2
upstream-b7e9445d6dcea9c4a6cd5f017a797ccc269c8c7a.zip
uboot-mediatek: add patches for MT7988 and builds for RFB
Import pending patches adding support for MT7988 and provide builds for the reference board for all possible boot media. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/boot/uboot-mediatek/patches/101-05-serial-mtk-initial-priv-data-before-using.patch')
-rw-r--r--package/boot/uboot-mediatek/patches/101-05-serial-mtk-initial-priv-data-before-using.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/boot/uboot-mediatek/patches/101-05-serial-mtk-initial-priv-data-before-using.patch b/package/boot/uboot-mediatek/patches/101-05-serial-mtk-initial-priv-data-before-using.patch
new file mode 100644
index 0000000000..6f805765c1
--- /dev/null
+++ b/package/boot/uboot-mediatek/patches/101-05-serial-mtk-initial-priv-data-before-using.patch
@@ -0,0 +1,25 @@
+From 73060da8b54e74c51ef6c1fd31c4fac6ad6b8d0e Mon Sep 17 00:00:00 2001
+From: Weijie Gao <weijie.gao@mediatek.com>
+Date: Wed, 19 Jul 2023 17:16:07 +0800
+Subject: [PATCH 05/29] serial: mtk: initial priv data before using
+
+This patch ensures driver private data being fully initialized in
+_debug_uart_init which is not covered by .priv_auto ops.
+
+Signed-off-by: Sam Shih <sam.shih@mediatek.com>
+Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
+Reviewed-by: Stefan Roese <sr@denx.de>
+---
+ drivers/serial/serial_mtk.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/serial/serial_mtk.c
++++ b/drivers/serial/serial_mtk.c
+@@ -439,6 +439,7 @@ static inline void _debug_uart_init(void
+ {
+ struct mtk_serial_priv priv;
+
++ memset(&priv, 0, sizeof(struct mtk_serial_priv));
+ priv.regs = (void *) CONFIG_VAL(DEBUG_UART_BASE);
+ priv.fixed_clk_rate = CONFIG_DEBUG_UART_CLOCK;
+