drivers: ieee802154: cc2520: Log errors when starting/stopping cc2520

Change-Id: I55efbfcd91da48b98654a5d1dfcbf02b2d76cf75
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2016-11-16 13:47:15 +02:00 committed by Jukka Rissanen
parent 75844e7847
commit 88b41debd8

View file

@ -878,6 +878,7 @@ static int cc2520_start(struct device *dev)
if (!instruct_sxoscon(&cc2520->spi) ||
!instruct_srxon(&cc2520->spi) ||
!verify_osc_stabilization(cc2520)) {
SYS_LOG_ERR("Error starting CC2520\n");
return -EIO;
}
@ -902,6 +903,7 @@ static int cc2520_stop(struct device *dev)
if (!instruct_srfoff(&cc2520->spi) ||
!instruct_sxoscoff(&cc2520->spi)) {
SYS_LOG_ERR("Error stopping CC2520\n");
return -EIO;
}