]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: mediatek: Bind gpio while binding pinctrl
authorChris Webb <chris@arachsys.com>
Wed, 31 Jul 2024 10:01:31 +0000 (11:01 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 7 Oct 2024 21:09:55 +0000 (15:09 -0600)
commitf4df9f53b7a97e29afb06e466a9ebab1a201b63d
tree80ef627e83a82cf159ed370aa34d99ffa88ff39c
parentc530f6079c70219e01022142b404bf8a6b572366
pinctrl: mediatek: Bind gpio while binding pinctrl

Mediatek pinctrl drivers call mtk_gpiochip_register() to bind the child
gpio controller as part of mtk_pinctrl_common_probe(). This breaks
gpiohog support because the gpio controller is bound too late for
DM_FLAG_PROBE_AFTER_BIND (set while binding hogs) to work.

Move the mtk_gpiochip_register() to mtk_pinctrl_common_bind() and call
this as the .bind method of each of the mediatek pinctrl drivers.

Signed-off-by: Chris Webb <chris@arachsys.com>
drivers/pinctrl/mediatek/pinctrl-mt7622.c
drivers/pinctrl/mediatek/pinctrl-mt7623.c
drivers/pinctrl/mediatek/pinctrl-mt7629.c
drivers/pinctrl/mediatek/pinctrl-mt7981.c
drivers/pinctrl/mediatek/pinctrl-mt7986.c
drivers/pinctrl/mediatek/pinctrl-mt7988.c
drivers/pinctrl/mediatek/pinctrl-mt8512.c
drivers/pinctrl/mediatek/pinctrl-mt8516.c
drivers/pinctrl/mediatek/pinctrl-mt8518.c
drivers/pinctrl/mediatek/pinctrl-mtk-common.c
drivers/pinctrl/mediatek/pinctrl-mtk-common.h