Why isn't spi_set_cs() public?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux