MT6878 uses different debounce times than other SoCs. Add them to the
EINT driver.
---
drivers/pinctrl/mediatek/mtk-eint.c | 5 +++++
drivers/pinctrl/mediatek/mtk-eint.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/drivers/pinctrl/mediatek/mtk-eint.c b/drivers/pinctrl/mediatek/mtk-eint.c
index 9f175c73613f84b47c0160947f32da7aca7d5a18..c8c5097c11c4d14eb41bdd7f9cb93b4a5756d2b2 100644
--- a/drivers/pinctrl/mediatek/mtk-eint.c
+++ b/drivers/pinctrl/mediatek/mtk-eint.c
@@ -66,6 +66,11 @@ const unsigned int debounce_time_mt6795[] = {
};
EXPORT_SYMBOL_GPL(debounce_time_mt6795);
+const unsigned int debounce_time_mt6878[] = {
+ 156, 313, 625, 1250, 20000, 40000, 80000, 160000, 320000, 640000, 0
+};
+EXPORT_SYMBOL_GPL(debounce_time_mt6878);
+
static void __iomem *mtk_eint_get_offset(struct mtk_eint *eint,
unsigned int eint_num,
unsigned int offset)
diff --git a/drivers/pinctrl/mediatek/mtk-eint.h b/drivers/pinctrl/mediatek/mtk-eint.h
index fc31a4c0c77bf28b106943e9292d0dcc425c4922..3cdd6f6310cd0da5aa74623c5f1dbe8f8495d689 100644
--- a/drivers/pinctrl/mediatek/mtk-eint.h
+++ b/drivers/pinctrl/mediatek/mtk-eint.h
@@ -52,6 +52,7 @@ struct mtk_eint_pin {
extern const unsigned int debounce_time_mt2701[];
extern const unsigned int debounce_time_mt6765[];
extern const unsigned int debounce_time_mt6795[];
+extern const unsigned int debounce_time_mt6878[];
struct mtk_eint;
--
2.51.0
Il 08/09/25 21:17, Igor Belwon ha scritto:
> MT6878 uses different debounce times than other SoCs. Add them to the
> EINT driver.
The only reason why I can't give you a R-b for this is that you forgot to add
your S-o-b...
Cheers,
Angelo
> ---
> drivers/pinctrl/mediatek/mtk-eint.c | 5 +++++
> drivers/pinctrl/mediatek/mtk-eint.h | 1 +
> 2 files changed, 6 insertions(+)
>
> diff --git a/drivers/pinctrl/mediatek/mtk-eint.c b/drivers/pinctrl/mediatek/mtk-eint.c
> index 9f175c73613f84b47c0160947f32da7aca7d5a18..c8c5097c11c4d14eb41bdd7f9cb93b4a5756d2b2 100644
> --- a/drivers/pinctrl/mediatek/mtk-eint.c
> +++ b/drivers/pinctrl/mediatek/mtk-eint.c
> @@ -66,6 +66,11 @@ const unsigned int debounce_time_mt6795[] = {
> };
> EXPORT_SYMBOL_GPL(debounce_time_mt6795);
>
> +const unsigned int debounce_time_mt6878[] = {
> + 156, 313, 625, 1250, 20000, 40000, 80000, 160000, 320000, 640000, 0
> +};
> +EXPORT_SYMBOL_GPL(debounce_time_mt6878);
> +
> static void __iomem *mtk_eint_get_offset(struct mtk_eint *eint,
> unsigned int eint_num,
> unsigned int offset)
> diff --git a/drivers/pinctrl/mediatek/mtk-eint.h b/drivers/pinctrl/mediatek/mtk-eint.h
> index fc31a4c0c77bf28b106943e9292d0dcc425c4922..3cdd6f6310cd0da5aa74623c5f1dbe8f8495d689 100644
> --- a/drivers/pinctrl/mediatek/mtk-eint.h
> +++ b/drivers/pinctrl/mediatek/mtk-eint.h
> @@ -52,6 +52,7 @@ struct mtk_eint_pin {
> extern const unsigned int debounce_time_mt2701[];
> extern const unsigned int debounce_time_mt6765[];
> extern const unsigned int debounce_time_mt6795[];
> +extern const unsigned int debounce_time_mt6878[];
>
> struct mtk_eint;
>
>
On Tue Sep 9, 2025 at 10:00 AM CEST, AngeloGioacchino Del Regno wrote: > Il 08/09/25 21:17, Igor Belwon ha scritto: >> MT6878 uses different debounce times than other SoCs. Add them to the >> EINT driver. > > The only reason why I can't give you a R-b for this is that you forgot to add > your S-o-b... > > Cheers, > Angelo > My apologies (again). I was rebasing these changes and rewording them a bunch, probably got lost somewhere there. I wonder why b4 didn't scream at me. Will add. Thanks, Igor
© 2016 - 2026 Red Hat, Inc.