This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm368 kernel gpio bug?

kernel version:

linux-2.6.32.17-psp03.01.01.39

if gpio num is letter than 31, the value of gpio_get_value is wrong。

etc:when gpio num 30 is high, the return of gpio_get_value is 1073741824。but Performs 30 right shift of the bits can get the right value 1。

if gpio num is greater than 31, function gpio_get_value can get the right value

Is this a kernel bug?