Skip to content
Commit c4a31f43 authored by Gabor Juhos's avatar Gabor Juhos Committed by Grant Likely
Browse files

spi/ath79: avoid multiple initialization of the SPI controller



Currently we are initializing the SPI controller in
the chip select line function, and that function is
called once for each SPI device on the bus. If a
board has multiple SPI devices, the controller will
be initialized multiple times.

Introduce ath79_spi_{en,dis}able helper functions,
and call those from probe/response in order to avoid
the mutliple initialization of the controller.

Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
Signed-off-by: Grant Likely's avatarGrant Likely <grant.likely@secretlab.ca>
parent 95d79419
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment