OSDN Git Service

icnss: Send FW CRASHED uevent only if driver is probed
authorAnurag Chouhan <achouhan@codeaurora.org>
Fri, 24 Mar 2017 10:35:00 +0000 (16:05 +0530)
committerAnurag Chouhan <achouhan@codeaurora.org>
Mon, 3 Apr 2017 07:47:39 +0000 (13:17 +0530)
commite79dfec9b298bbbf8e94f4d48ee9be2d32b4a2f7
tree44183c3e3799ebcb09629d6116b3d451c0fb3735
parentc1f5dcc5e8e77afb01eaeb9d9ea6577366f21c3f
icnss: Send FW CRASHED uevent only if driver is probed

If host driver fails to probed for the first time, and SSR/PDR
get triggered, as part of PD down uevent is sent to host driver
which inturn set recovery in progress which never gets reset
and the next time on FW Ready host driver is not able
to probe successfully
To fix this add a check if driver is probed or not
before sending the uevent.

Change-Id: Idceab059821c0b0e2a8806ad9fee5b6c75aec8c7
CRs-fixed: 2027920
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
drivers/soc/qcom/icnss.c