Wrong SPI configurations when using config-spi??!

Hi all,

I’m trying to configure SPI using config-pin tool.
The tool only changes the mode and set it to SPI. However, all the SPI pins configured by config-pin are configured to be INPUT.
This should not be like this.
How can I fix it?

uname -a Linux beaglebone 4.9.82-ti-r102 #1 SMP PREEMPT Thu Feb 22 01:16:12 UTC 2018 armv7l GNU/Linux


When configured for a function like SPI or I2C, the mux pins are configured as inputs.