[lkml]   [2018]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectBug introduced in the of_get_named_gpiod_flags function.

The function of_get_named_gpiod_flags in older versions of the kernel
(up to 4.7.10 - )
contained an important workaround:

/* .of_xlate might decide to not fill in the flags, so clear it. */if (flags)
*flags = 0; Unfortunately, newer kernels do not contain it. Therefore if the
"xlat" function in the gpiochip driver does not set flags, (like e.g.
the Xilinx AXI GPIO driver: )
the random, unitialized value from the stack in of_find_gpio
( )
is used, which results in random settings of e.g., OPEN DRAIN or OPEN SOURCE mode.

I have also reported the problem in the Xilinx forum:

With best regards,
Wojciech Zabolotny

 \ /
  Last update: 2018-10-10 18:33    [W:0.086 / U:1.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site