Re: [PATCH 1/2] pinctrl: mediatek: fix pull_type data for MT7981

From: sam . shih
Date: Mon Aug 21 2023 - 10:19:24 EST


On Mon, 2023-08-21 at 12:40 +0200, Linus Walleij wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> On Fri, Aug 18, 2023 at 5:02 AM Daniel Golle <daniel@xxxxxxxxxxxxxx>
> wrote:
>
> > MediaTek has released pull_type data for MT7981 in their SDK.
> > Use it and set functions to configure pin bias.
> >
> > Fixes: 6c83b2d94fcc ("pinctrl: add mt7981 pinctrl driver")
> > Signed-off-by: Daniel Golle <daniel@xxxxxxxxxxxxxx>
>
> This looks pretty urgent but I applied it for v6.6 (non-urgent)
> for now so we get some testing in linux-next.
>
The MediaTek MT7981 SoC only has pin0 to pin56 which defined in
'mt7981_pins', This patch removes the non-existent pin57 to pin100 and
fixes the pull type for pins 40 through 56.

The driver can still work due to the pin numbers of MT7981 is defined
by ARRAY_SIZE(mt7981_pins), and the default hardware configuration for
pins 40 through 56 can work correctly without advanced adjustments,
However, without this patch, attempts to use pinconf to configure pins
40 through 56 result in a "-EINVAL" error.


Acked-by: Sam Shih <sam.shih@xxxxxxxxxxxx>


Best Regards,
Sam