at86rf230: fix phy settings while sleeping
authorAlexander Aring <alex.aring@gmail.com>
Tue, 16 Jun 2015 09:07:42 +0000 (11:07 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 16 Jun 2015 16:55:11 +0000 (18:55 +0200)
commitcbe6234689b07f5d1ecf2281573591ca4211a5cf
tree9f62b72191bfba93991fa45cf77e0a83edbfd8de
parent789a99ecb9cb700eb8f07b9d106b99e705e99471
at86rf230: fix phy settings while sleeping

While in sleep state then we can't access the at86rf2xx registers. This
patch checks if the transceiver is in sleep state before sending spi
messages via regmap. Regmap is used on every driver ops callback except
for receive and xmit handling, but while receive and xmit handling the
phy should not be inside the sleep state.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c