]> 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)
commitc592207655b6514b25b220762cf7e826b8897e28
treeb7f3a0b6389c4243cf26af0888ebd80925263f9c
parent4aef2225c0793c2e32d3c49ffcc23b5b520c04e4
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