提交 8c4599f4 编写于 作者: C Christian Eggers 提交者: 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: NChristian Eggers <ceggers@arri.de>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册