For Legion-5 15ARH05, the GPIO chip is managed by drivers/pinctrl/pinctrl-amd.c. So the fix for drivers/gpio/gpio-amd-fch.c is irrelevant to this issue.
For Legion-5 15ARH05, the GPIO chip is managed by drivers/ pinctrl/ pinctrl- amd.c. So the fix for drivers/ gpio/gpio- amd-fch. c is irrelevant to this issue.