soc: qcom: qmi: Return EPROBE_DEFER if no address family
authorJeffrey Hugo <jeffrey.l.hugo@gmail.com>
Wed, 6 Nov 2019 23:05:11 +0000 (15:05 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 11 Dec 2019 06:44:34 +0000 (22:44 -0800)
commit52af26e33e700158e6549f1465fcf9da099fabfa
treec02e5d449625dc0cd4cd232db9cbd224e22e687d
parente42617b825f8073569da76dc4510bfa019b1c35a
soc: qcom: qmi: Return EPROBE_DEFER if no address family

If a client comes up early in the boot process (perhaps was a built-in
driver), qmi_handle_init() will likely fail with a EAFNOSUPPORT since the
underlying ipc router hasn't init'd and registered the address family.
This should not be a fatal error since chances are, the router will come
up later, so recode the error to EPROBE_DEFER so that clients will retry
later.

Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Link: https://lore.kernel.org/r/20191106230511.1290-1-jeffrey.l.hugo@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/qmi_interface.c