From patchwork Mon Apr 23 20:12:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andres Rodriguez X-Patchwork-Id: 10358059 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 9D03A60209 for ; Mon, 23 Apr 2018 20:13:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E5CF28C2C for ; Mon, 23 Apr 2018 20:13:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82F8E28C2E; Mon, 23 Apr 2018 20:13:24 +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=unavailable 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 3FE9528C2C for ; Mon, 23 Apr 2018 20:13:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932437AbeDWUNM (ORCPT ); Mon, 23 Apr 2018 16:13:12 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:50243 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932306AbeDWUM1 (ORCPT ); Mon, 23 Apr 2018 16:12:27 -0400 Received: by mail-it0-f65.google.com with SMTP id p3-v6so12138344itc.0; Mon, 23 Apr 2018 13:12:26 -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=jKkPtOxxsOO/OOaOXa1om3vVQfSWXWBuAWW8jjohDgs=; b=ZQ2qhiaVBGDVUFV2DRH1EQKfpvLP/n4UdLLGGFeGs2taUY8WX+M2uEv+5jlredqyTm A0SZvD9XnFov8Rvuo5B2yFRLu36E34UaKqBUxjd2Tyew8tROMpqCOe4gQx9MLHr/f3tq Y9cwkNQtrhN1iFDmro2KTjHQC7BABZy2mlrYqLq8LQKkJ5tn8nN/3TZeY9Ln9k1kPzn0 gQNNWg/4oOU3+P8ALKQZ56Zs0rl6mxOqm6dqPXH3VO879puWCuGNWb3D+R9epLQMC4Hv 4c2nK6XIjTLrwWhF46cOVjaD1mkXbVYT839Yr2kXTlW+rWbD5WyqvOt+GUQCXzGRBHUZ horQ== 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=jKkPtOxxsOO/OOaOXa1om3vVQfSWXWBuAWW8jjohDgs=; b=tNOvkbBc2+G2iQ1AMoHdr9eRoIvh0RWTxhmVmP3BW5jpBKcw1BEmf52pd5IsoA2zcG dUhdC3YS+MRhrZvivGtjjBZYRWvFgEZmmQPL7cRtQvKQNRiEZNaVG5q7gWRQuJg5sdct daU+IJHCxdMNChTCPd6EnMFQ8YmQwnOBuIWRtpU2fi3It672cdInXwoGCOsZIaupO50c 6LPUBJdBa6fPNQg4GfyguTcMI/nQn1MSF05ff86sceCnrlmcrDrIBuS0g7CzGIyJa2Rb pGfU2yCi6vwl4tnmXYtZ0/Qod9czvkn14vavvJRdRxdxEDc/ZAysvcpu+XvC3g5+acYo OcXA== X-Gm-Message-State: ALQs6tBKQgMM2tRXljVCx9bU+54Y9sI0Dp80YbXxJqDEGmIyfxSCkR2O MR4eVMYv1o/4ZgZ9WuYzHEqAchJ5Vbw= X-Google-Smtp-Source: AIpwx4/XgsWHPjDVHMR93bFF2M7zVdmhhu6D7Rcoy7Mpv5TWULb81up5d0CT6RSQyRxEJB6U/SBSFw== X-Received: by 2002:a24:b953:: with SMTP id k19-v6mr10534266iti.140.1524514346193; Mon, 23 Apr 2018 13:12:26 -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.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 13:12:25 -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 9/9] ath10k: re-enable the firmware fallback mechanism for testmode Date: Mon, 23 Apr 2018 16:12:05 -0400 Message-Id: <20180423201205.20533-10-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 The ath10k testmode uses request_firmware_direct() in order to avoid producing firmware load warnings. Disabling the fallback mechanism was a side effect of disabling warnings. We now have a new API that allows us to avoid warnings while keeping the fallback mechanism enabled. So use that instead. Signed-off-by: Andres Rodriguez Acked-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/testmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/testmode.c b/drivers/net/wireless/ath/ath10k/testmode.c index 568810b41657..0beb91be1b1c 100644 --- a/drivers/net/wireless/ath/ath10k/testmode.c +++ b/drivers/net/wireless/ath/ath10k/testmode.c @@ -157,7 +157,7 @@ static int ath10k_tm_fetch_utf_firmware_api_1(struct ath10k *ar, ar->hw_params.fw.dir, ATH10K_FW_UTF_FILE); /* load utf firmware image */ - ret = request_firmware_direct(&fw_file->firmware, filename, ar->dev); + ret = request_firmware_nowarn(&fw_file->firmware, filename, ar->dev); ath10k_dbg(ar, ATH10K_DBG_TESTMODE, "testmode fw request '%s': %d\n", filename, ret);