]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8782a6f67623ee001da64676c8147eb3be918a26
tree9f62b72191bfba93991fa45cf77e0a83edbfd8de
parent60b5ba08184c060b5b879adca85fc868d8e222f3
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