mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
9dfc2b3ca4
MediaTek published their current U-Boot patchset on github: https://github.com/mtk-openwrt/u-boot/commits/mtksoc Import the platform patches from there (`00-mtk-*.patch`), arrange, them nicely, drop no longer needed local patches and rebase on top of U-Boot 2021.04-rc3. Tested and works well on Linksys E8450 (snand-1ddr) as well as Bananapi BPi-R64 (sdmmc-2ddr, emmc-2ddr). Signed-off-by: Daniel Golle <daniel@makrotopia.org>
26 lines
884 B
Diff
26 lines
884 B
Diff
From 6f18e581a7e98db3675b4c111701263647b20781 Mon Sep 17 00:00:00 2001
|
|
From: Sam Shih <sam.shih@mediatek.com>
|
|
Date: Thu, 17 Dec 2020 19:29:56 +0800
|
|
Subject: [PATCH 03/21] pinctrl: mediatek: fix wrong assignment in
|
|
mtk_get_pin_name
|
|
|
|
This is a bug fix for mtk pinctrl common part. Appearently pins should be
|
|
used instead of grps in mtk_get_pin_name().
|
|
|
|
Signed-off-by: Sam Shih <sam.shih@mediatek.com>
|
|
---
|
|
drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
|
|
+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
|
|
@@ -219,7 +219,7 @@ static const char *mtk_get_pin_name(stru
|
|
{
|
|
struct mtk_pinctrl_priv *priv = dev_get_priv(dev);
|
|
|
|
- if (!priv->soc->grps[selector].name)
|
|
+ if (!priv->soc->pins[selector].name)
|
|
return mtk_pinctrl_dummy_name;
|
|
|
|
return priv->soc->pins[selector].name;
|