wil6210: print error in FW and board files load failures
authorMaya Erez <merez@codeaurora.org>
Thu, 28 Feb 2019 09:35:10 +0000 (11:35 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 3 Apr 2019 12:45:28 +0000 (15:45 +0300)
Add an error print-out in case FW and board files load fails,
as such an error is not printed on all failures and user may
not understand why the interface up operations didn't succeed.

Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/fw_inc.c

index 388b3d4717cae06f0bcd60f4004fe7224674c24f..3ec0f2fab9b7cb0e585ad70596f9dbe7efa2c10f 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2014-2017 Qualcomm Atheros, Inc.
- * Copyright (c) 2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -647,6 +647,8 @@ int wil_request_firmware(struct wil6210_priv *wil, const char *name,
 
 out:
        release_firmware(fw);
+       if (rc)
+               wil_err_fw(wil, "Loading <%s> failed, rc %d\n", name, rc);
        return rc;
 }
 
@@ -741,6 +743,8 @@ int wil_request_board(struct wil6210_priv *wil, const char *name)
 
 out:
        release_firmware(brd);
+       if (rc)
+               wil_err_fw(wil, "Loading <%s> failed, rc %d\n", name, rc);
        return rc;
 }