[FS#1271] ar71xx/mikrotik: GPIO setup broken by commit e66c47fb14f56be48366d1206b54724ab6dc2502

LEDE Bugs lede-bugs at lists.infradead.org
Sat Jan 13 17:26:11 PST 2018


The following task has a new comment added:

FS#1271 - ar71xx/mikrotik: GPIO setup broken by commit e66c47fb14f56be48366d1206b54724ab6dc2502
User who did this - Lars (sumpfralle)

----------
The [[https://www.mjmwired.net/kernel/Documentation/gpio/sysfs.txt|sysfs documentation]] of the GPIO interface contains the following note regarding the "directions" interface:

> Note that this attribute *will not exist* if the kernel doesn't support changing the direction of a GPIO [..]

Thus I assume, that the direction of the two pins of the above Mikrotik devices are not configurable.

Thus before the referenced commit, the write access to "direction" failed, but it was remedied by the successive write access to "value". Now we only write to "direction", thus there is no write access to "value" anymore, which could fix the situation for fixed-direction GPIOs.

Probably we should check if "direction" is missing and write to "value" directly, in this case.
----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=1271#comment4107



More information about the lede-bugs mailing list