I found that gpiod_get_direction() doesn't work for GPIO on the BeagleBone Black.
I have made a patch to add support for it in the ti-linux-3.14.y branch of the ti-linux-kernel repository. How can I submit this patch to be added to the ti-linux-kernel git repository?
0001-Implement-get_direction-function-in-gpio-omap-driver.tar.gz