Commit 9ed602ba authored by Christian Eggers's avatar Christian Eggers Committed by Jakub Kicinski

net: dsa: microchip: ksz9477: 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 44e53c88
......@@ -48,6 +48,12 @@ static int ksz9477_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 = ksz9477_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