mediatek: backport new pinctrl features
[openwrt/staging/dedeckeh.git] / target / linux / mediatek / patches-5.15 / 825-v6.1-pinctrl-mediatek-Export-debounce-time-tables.patch
1 From 2e35b25dd8e666b8619355fc3defb1b246a5dc02 Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
3 Date: Tue, 15 Nov 2022 09:11:07 +0100
4 Subject: [PATCH] pinctrl: mediatek: Export debounce time tables
5
6 The kernel test robot complains that in certain combinations
7 when building the Mediatek drivers as modules we lack some
8 debounce table symbols, so export them.
9
10 Reported-by: kernel test robot <lkp@intel.com>
11 Fixes: e1ff91f9d230 ("pinctrl: mediatek: Fix EINT pins input debounce time configuration")
12 Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
13 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
14 ---
15 drivers/pinctrl/mediatek/mtk-eint.c | 3 +++
16 1 file changed, 3 insertions(+)
17
18 --- a/drivers/pinctrl/mediatek/mtk-eint.c
19 +++ b/drivers/pinctrl/mediatek/mtk-eint.c
20 @@ -52,14 +52,17 @@ static const struct mtk_eint_regs mtk_ge
21 const unsigned int debounce_time_mt2701[] = {
22 500, 1000, 16000, 32000, 64000, 128000, 256000, 0
23 };
24 +EXPORT_SYMBOL_GPL(debounce_time_mt2701);
25
26 const unsigned int debounce_time_mt6765[] = {
27 125, 250, 500, 1000, 16000, 32000, 64000, 128000, 256000, 512000, 0
28 };
29 +EXPORT_SYMBOL_GPL(debounce_time_mt6765);
30
31 const unsigned int debounce_time_mt6795[] = {
32 500, 1000, 16000, 32000, 64000, 128000, 256000, 512000, 0
33 };
34 +EXPORT_SYMBOL_GPL(debounce_time_mt6795);
35
36 static void __iomem *mtk_eint_get_offset(struct mtk_eint *eint,
37 unsigned int eint_num,