Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5640169img; Wed, 27 Mar 2019 12:14:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHM6j/lZ3XAaVRFsSM2kOe1+wFx3Y2Gzfchs+yLc6T9jk/FeAnWmsu6W77g/zZfNcgPpGA X-Received: by 2002:a17:902:d705:: with SMTP id w5mr38430815ply.243.1553714085168; Wed, 27 Mar 2019 12:14:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553714085; cv=none; d=google.com; s=arc-20160816; b=k47vlvHnrK5HHXaS/TsLAF+8j4x6tcVMQW2PQ1we5aOG96sjUkZ6v9rwXrIb0kTA5V w/WHdMO7mc+Pp7XHh+6k+DZeIn/aWDp/Wtzv0yQZ2LQN8mRi3Q/uDLZ8G0BOM34azfVO TwdBCBPtikyl8OukmioPINnpLzY0H3odoJ1j9ZY675CHycfLJVpcPaerw7QD/zPv8fG6 OdhQdIz+NpaZQjDLi01qgtPn759HdW8xJq0MLOSFmm6Fo5SiC/pGM2sS4bzgv3ZRKOmU PYbukNeHJfQzn+3LsIAhoa/hMlS/mp99NdZbdkwjdxahOHwNgpETrGqCJnfSIun8C8aZ 2ocg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fKmcVvWPTBWbYnQN++IVORcqUdsDXqyZs5bC0h1J9zU=; b=RJoCDTzok158mKKHxKGu+Eyt4oSmk2G186EQwj+v9pnJwrBTMhu3bkP5QLOh7IA2GV RouFv8N12m6/Qam8Ike9tPEaiMK2dbhIGaqBkw7a4KjDGrx9A8yCxSviskCot9iorueE N8MTC1+1aDHfho8ESGUpGIpnKZ84W0dnbDmthvQyN7A28mLQI6CZO7kRT5I3EN+lpJ4H GgBmJY2DHMQXttwZbOAwFsfQonkxztHI9pfur6o/pSTh4/U7BJ5pbzgvuLq10wIgdb8B hrv8WrdzaX2xCxK8MirDAZyjpfrtJwG/ScV2yrbEm/SsVQSCJRoD+i3LE8mfdPG/dqqR 3Ebw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GMRs+7xS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si18571880pfe.194.2019.03.27.12.14.30; Wed, 27 Mar 2019 12:14:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GMRs+7xS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388699AbfC0SJ5 (ORCPT + 99 others); Wed, 27 Mar 2019 14:09:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:51870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388678AbfC0SJ4 (ORCPT ); Wed, 27 Mar 2019 14:09:56 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 03B652147C; Wed, 27 Mar 2019 18:09:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710196; bh=RC1QrTZVyDohPLWE8WHfDddcQujpyQpNXq9433w0ay4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GMRs+7xSmwNXsVyZzU5+DAXEOIJEpHp5IMV8+PwfAd8Qnoen2IVSz+Fkc6/EVhyTu jwKwKMMf2m779bbvFTvK//+Jzqsy2WcrHUyyeCf/SArr/s2M00NRkIFPEHP5He3c0p LKs4owEbx3y24OnGeW23TgzW+PTRzGpS0x8lUWxM= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Kalle Valo , Sasha Levin , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.0 245/262] brcmfmac: Use firmware_request_nowarn for the clm_blob Date: Wed, 27 Mar 2019 14:01:40 -0400 Message-Id: <20190327180158.10245-245-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 4ad0be160544ffbdafb7cec39bb8e6dd0a97317a ] The linux-firmware brcmfmac firmware files contain an embedded table with per country allowed channels and strength info. For recent hardware these versions of the firmware are specially build for linux-firmware, the firmware files directly available from Cypress rely on a separate clm_blob file for this info. For some unknown reason Cypress refuses to provide the standard firmware files + clm_blob files it uses elsewhere for inclusion into linux-firmware, instead relying on these special builds with the clm_blob info embedded. This means that the linux-firmware firmware versions often lag behind, but I digress. The brcmfmac driver does support the separate clm_blob file and always tries to load this. Currently we use request_firmware for this. This means that on any standard install, using the standard combo of linux-kernel + linux-firmware, we will get a warning: "Direct firmware load for ... failed with error -2" On top of this, brcmfmac itself prints: "no clm_blob available (err=-2), device may have limited channels available". This commit switches to firmware_request_nowarn, fixing almost any brcmfmac device logging the warning (it leaves the brcmfmac info message in place). Signed-off-by: Hans de Goede Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c index 1f1e95a15a17..0ce1d8174e6d 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c @@ -149,7 +149,7 @@ static int brcmf_c_process_clm_blob(struct brcmf_if *ifp) return err; } - err = request_firmware(&clm, clm_name, bus->dev); + err = firmware_request_nowarn(&clm, clm_name, bus->dev); if (err) { brcmf_info("no clm_blob available (err=%d), device may have limited channels available\n", err); -- 2.19.1