mediatek: rename or replace accepted patches
[openwrt/staging/stintel.git] / target / linux / mediatek / patches-6.1 / 219-v6.6-pinctrl-mediatek-assign-functions-to-configure-pin-b.patch
1 From 0d8387fba9f151220e48dc3dcdc2335539708f13 Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Fri, 18 Aug 2023 04:03:26 +0100
4 Subject: [PATCH] pinctrl: mediatek: assign functions to configure pin bias on
5 MT7986
6
7 Assign bias_disable_get/set and bias_get/set functions to allow
8 configuring pin bias on MT7986.
9
10 Fixes: 2c58d8dc9cd0 ("pinctrl: mediatek: add pull_type attribute for mediatek MT7986 SoC")
11 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
12 Link: https://lore.kernel.org/r/47f72372354312a839b9337e09476aadcc206e8b.1692327317.git.daniel@makrotopia.org
13 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
14 ---
15 drivers/pinctrl/mediatek/pinctrl-mt7986.c | 8 ++++++++
16 1 file changed, 8 insertions(+)
17
18 --- a/drivers/pinctrl/mediatek/pinctrl-mt7986.c
19 +++ b/drivers/pinctrl/mediatek/pinctrl-mt7986.c
20 @@ -922,6 +922,10 @@ static struct mtk_pin_soc mt7986a_data =
21 .ies_present = false,
22 .base_names = mt7986_pinctrl_register_base_names,
23 .nbase_names = ARRAY_SIZE(mt7986_pinctrl_register_base_names),
24 + .bias_disable_set = mtk_pinconf_bias_disable_set,
25 + .bias_disable_get = mtk_pinconf_bias_disable_get,
26 + .bias_set = mtk_pinconf_bias_set,
27 + .bias_get = mtk_pinconf_bias_get,
28 .pull_type = mt7986_pull_type,
29 .bias_set_combo = mtk_pinconf_bias_set_combo,
30 .bias_get_combo = mtk_pinconf_bias_get_combo,
31 @@ -944,6 +948,10 @@ static struct mtk_pin_soc mt7986b_data =
32 .ies_present = false,
33 .base_names = mt7986_pinctrl_register_base_names,
34 .nbase_names = ARRAY_SIZE(mt7986_pinctrl_register_base_names),
35 + .bias_disable_set = mtk_pinconf_bias_disable_set,
36 + .bias_disable_get = mtk_pinconf_bias_disable_get,
37 + .bias_set = mtk_pinconf_bias_set,
38 + .bias_get = mtk_pinconf_bias_get,
39 .pull_type = mt7986_pull_type,
40 .bias_set_combo = mtk_pinconf_bias_set_combo,
41 .bias_get_combo = mtk_pinconf_bias_get_combo,