Commit 46e14006 authored by Ziyang Xuan's avatar Ziyang Xuan Committed by sanglipeng
Browse files

ieee802154: cc2520: Fix error return code in cc2520_hw_init()

stable inclusion
from stable-v5.10.159
commit 27c71825ffc4010dceaa935b673feff809f704d5
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7NTXH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=27c71825ffc4010dceaa935b673feff809f704d5



--------------------------------

[ Upstream commit 4d002d6a ]

In cc2520_hw_init(), if oscillator start failed, the error code
should be returned.

Fixes: 0da6bc8c ("ieee802154: cc2520: adds driver for TI CC2520 radio")
Signed-off-by: default avatarZiyang Xuan <william.xuanziyang@huawei.com>
Link: https://lore.kernel.org/r/20221120075046.2213633-1-william.xuanziyang@huawei.com


Signed-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 5247ec70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment