]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: enc28j60: support half-duplex SPI controllers
authorMichael Heimpold <mhei@heimpold.de>
Thu, 28 Apr 2016 20:06:14 +0000 (22:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Apr 2016 20:23:02 +0000 (16:23 -0400)
commitaaa1d0d68f1df225e0ec1b88106fe1915364c268
treeb7f3a0b6389c4243cf26af0888ebd80925263f9c
parent12fc6323d2f3ce1d6dce09290c101dbd9c94ca20
net: ethernet: enc28j60: support half-duplex SPI controllers

The current spi_read_buf function fails on SPI host masters which
are only half-duplex capable. Splitting the Tx and Rx part solves
this issue.

Tested on Raspberry Pi (full duplex) and I2SE Duckbill (half duplex).

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/enc28j60.c