net: ks8851: Added support for half-duplex SPI
authorSergey Shcherbakov <shchers@gmail.com>
Thu, 9 Mar 2017 00:58:14 +0000 (02:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 02:18:37 +0000 (18:18 -0800)
commit9efd3831d5ae3babb45a37ae7d6b18642a0745de
tree69951fe3e76644db2ba55904168cea85382845d8
parent825d2c509a04d94b208eeebc7295f04bb70a1929
net: ks8851: Added support for half-duplex SPI

In original driver was implemented support for half-
and full-duplex modes, but it was not enabled. Instead
of it ks8851_rx_1msg method always returns "true" that
means "full-duplex" mode.

This patch replaces hard-coded functionality with
flexible solution that supports both SPI modes.

Signed-off-by: Sergey Shcherbakov <shchers@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8851.c