Hi Folks,
I'm working a little driver for configuring the Lattice iCE40 FPGA in
the FPGA Manager framework.
https://patchwork.kernel.org/patch/9393981/
It's mostly working now, but I wanted to ask about manually setting the
slave-select line.
The iCE40 requires master to assert the slave-select, then pulse a reset
line, then wait a while then release the slave-select.
To do this I lock the bus with spi_bus_lock(), then I copy-pasted code
from spi_set_cs() into the driver so I could manually control the
slave-select.
I was wondering if anyone could explain why spi_set_cs() is a static
function, not public? Manually controlling the slave-select seems like
quite a common-place thing to do.
Best Regards
Joel Holdsworth
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html