mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
b7e9445d6d
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>
26 lines
875 B
Diff
26 lines
875 B
Diff
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;
|
|
|