Commit 8c4599f4 authored by Christian Eggers's avatar Christian Eggers Committed by Jakub Kicinski

net: dsa: microchip: ksz8795: setup SPI mode

This should be done in the device driver instead of the device tree.
Signed-off-by: default avatarChristian Eggers <ceggers@arri.de>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 9ed602ba
......@@ -49,6 +49,12 @@ static int ksz8795_spi_probe(struct spi_device *spi)
if (spi->dev.platform_data)
dev->pdata = spi->dev.platform_data;
/* setup spi */
spi->mode = SPI_MODE_3;
ret = spi_setup(spi);
if (ret)
return ret;
ret = ksz8795_switch_register(dev);
/* Main DSA driver may not be started yet. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment