Reading a sysfs GPIO input pin (direction as “in”) always print a fixed value (0)
问题 After enabling the GPIO device support in kernel device driver (Kernel verion 3.10.92 ) I wanted to read the value of an input pin of my GPIO expander through GPIO sysfs. After exporting and setting the direction as "in", on reading, the value is always given as 0 even after the event is happening which will change the pin value as 1 . While the output direction is working fine i.e. I am able to glow a LED by altering the value as 0 or 1 . Base address for my GPIO expander in GPIO sysfs is