Comment 133 for bug 1887190

Revision history for this message
Helmut Stult (helmut-stult) wrote :

Forget everything up to now - it is a kernel bug that has been known since January of this year and for which there has been a fix since then.
I can't say why it hasn't been included in the kernel so far.

Here is the patch:

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d25e8fdebdad84219b498873300b7f11dd915b88

It's been included in Manjaro Linux kernel >= 5.8.13-4 (5.9 with the next update)

https://gitlab.manjaro.org/packages/core/linux58/-/blob/master/0305-gpio-amd-fch.patch

The bug was, that at /drivers/gpio/gpio-amd-fch.c the line "return ret ? GPIO_LINE_DIRECTION_IN : GPIO_LINE_DIRECTION_OUT;" was wrong.

It must be correct "return ret ? GPIO_LINE_DIRECTION_OUT : GPIO_LINE_DIRECTION_IN;"

A small swap that unfortunately has a big impact on the owners of a Lenovo Legion.