From patchwork Mon Apr 23 20:12:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andres Rodriguez X-Patchwork-Id: 10358051 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C669160209 for ; Mon, 23 Apr 2018 20:12:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7082223A5 for ; Mon, 23 Apr 2018 20:12:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB0E628C29; Mon, 23 Apr 2018 20:12:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D495223A5 for ; Mon, 23 Apr 2018 20:12:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932551AbeDWUMa (ORCPT ); Mon, 23 Apr 2018 16:12:30 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:43231 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932522AbeDWUMZ (ORCPT ); Mon, 23 Apr 2018 16:12:25 -0400 Received: by mail-io0-f195.google.com with SMTP id t23-v6so7050694ioc.10; Mon, 23 Apr 2018 13:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=B0TcwlJB5FTlm/h0kgDWJmp9yU/oYmKQZKiZfWMQMnI=; b=llsSTeEUx599notP0N/BCZEnOoFt16tPOHwXKdy9OOBYGThDize7/30BUFZyENNOHD GeQytn3fiVcXUx7ZhSKpgz5UTFMC+a70zKJfMRQ9BeX5IEktLGiVtJHGVC6SNfQZZKDy jrdGzTtkypOFJRemPF7631El0A58MBYFUESEd4o/3e5xa+Gcqev+oaSbn4L8SIGjmGg5 KInjri40kNWDOs+19LWx9Q3qTgKej4BwDgiHhusiwnE8jjQMdlXJ4wSSiJTfJdbKlQ2J Psz8ge1/f4H3gAEXAlVnRgkkdGfT0hX3IF9WdbOHGxx2C7hCsDyKi8MEekPMS5c7Xn8Y G6Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=B0TcwlJB5FTlm/h0kgDWJmp9yU/oYmKQZKiZfWMQMnI=; b=LjQ13xurfFW78nCwRqygxLadWHpUWi9VzqLwfcYtddMU3+lehUo+5fX/+GDB928sD9 sSa4RLuMjVG/iEkjW699NtgxwUESlN+6OV8oOq1ZGnBNN4Uzi+LHQJXzaDkBH97zMeKi zoCbSH1v8lnzq2U+uUmH57+Z5E3J9H+o0k+SUNLaiJZJAhxxZT8aEYPww6ccUX/ZeOzD OZBRSqVW3rJAkFMyRzVmgEBB7cVjSe38V7IyqlXEv6JBQuYFsawqzSYsey/cFyLPSQ3C MRKMBTIrX5Jb+vWKUIlYjsX+o1vZAg4fYwjMBUPONfToXeACS5eRzzRTQ/Yi97rrr2sD BGPw== X-Gm-Message-State: ALQs6tDN0vqJGUY22/Bh4vGUBWgyu3Nen/6wFgcyttt0om2uEXVXRZYi M3iZmgqyKzKAdWgMaCTfArIFhiqnGEM= X-Google-Smtp-Source: AIpwx4+oZaH2joMIunKQVvSXjnm/9wyJFx+bOUh2ZFlwc8rhepJYFxvARyvcUHkF0rGrzqrEslk71g== X-Received: by 2002:a6b:6f0a:: with SMTP id k10-v6mr2011450ioc.93.1524514344849; Mon, 23 Apr 2018 13:12:24 -0700 (PDT) Received: from localhost.localdomain (184-175-36-239.dsl.teksavvy.com. [184.175.36.239]) by smtp.gmail.com with ESMTPSA id k130-v6sm1632551itb.0.2018.04.23.13.12.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 13:12:24 -0700 (PDT) From: Andres Rodriguez To: linux-kernel@vger.kernel.org Cc: andresx7@gmail.com, gregkh@linuxfoundation.org, mcgrof@kernel.org, alexdeucher@gmail.com, christian.koenig@amd.com, kvalo@codeaurora.org, arend.vanspriel@broadcom.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, hdegoede@redhat.com Subject: [PATCH 8/9] ath10k: use request_firmware_nowarn to load firmware Date: Mon, 23 Apr 2018 16:12:04 -0400 Message-Id: <20180423201205.20533-9-andresx7@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180423201205.20533-1-andresx7@gmail.com> References: <20180423201205.20533-1-andresx7@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This reduces the unnecessary spew when trying to load optional firmware: "Direct firmware load for ... failed with error -2" Signed-off-by: Andres Rodriguez Acked-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index f3ec13b80b20..9a225b7ad2d7 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -652,7 +652,7 @@ static const struct firmware *ath10k_fetch_fw_file(struct ath10k *ar, dir = "."; snprintf(filename, sizeof(filename), "%s/%s", dir, file); - ret = request_firmware(&fw, filename, ar->dev); + ret = request_firmware_nowarn(&fw, filename, ar->dev); ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot fw request '%s': %d\n", filename, ret);