Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3352369pxj; Mon, 7 Jun 2021 08:34:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnFQtHgEtz7KsdXoVEiMyKcYyPVE6HLztK3yTZJMUDOl+12RnoR3gbSXG7Xpf4zp1oWg/1 X-Received: by 2002:a17:906:161b:: with SMTP id m27mr18334457ejd.89.1623080073487; Mon, 07 Jun 2021 08:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623080073; cv=none; d=google.com; s=arc-20160816; b=EWD90jAzQjLhel2jGwnpE7gYj69z2keX8DumVh9f8QIcbXhWAKaIfyzeQn8vm1Dq3/ KjX3o8FeIHkQsPdzg4L2tq61ndQaY1fPBKTqk//IJR4pMcVODNMAO9ScG61UU3AiY+nA oHq1LvYxpDmpDTpHltX8b8aMWCksZMrx/3jvmuTCWSDWpxw0IFeVQAfdGTqH7OTAZkTb Lo+g//bdm3PkMQ2abRWuJj5GuSQU3pINjqMEAos1+8a9PNf1wPQdz90NvWCxOA+j0/XO qAqziZHBRcMwu7hSZ62ZEPz1y/HbdmoA7MnQ7fU3oJa3NNyEKIQxj4LJFJQi/Glpzfvl 0+Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=DankcACZXWslvex/hGCrRKXxxv4UiIym257Vx0lNYb4=; b=UwxAm6ZUAq9k/ysJfFX42b8YVidbgqbZbcBsZaAghnlnlWzQ2vH8ADP/19n4tDXDiN eU2yEGeCJb/G/plE61/iBwUyMbBDr8a7GtuztgArYEQKm081D0b75UGnxrD3WNY8+1F5 UNIGazZ4xrmWPeCTYTnbK0Si+jlJjZdOxXdrfGprZGZeTDeI1Atbvp3I80Nr8HiyQ8Vp pfuyNlCgswxkiSiOQb/BMppuAAhrCiYWIpPjRr0b8iZ7B5jVybe3BxG5lf2ztjzJh7lo KJXiYTuyz1bCDd1hzITVQD7VdUz00J0PadvfL10Eob9LA8XOH0FCxOCCnOmaqpKNkRaA PgvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gY48wKg8; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec4si13409219ejb.244.2021.06.07.08.34.07; Mon, 07 Jun 2021 08:34:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gY48wKg8; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230493AbhFGPft (ORCPT + 99 others); Mon, 7 Jun 2021 11:35:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:50476 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbhFGPft (ORCPT ); Mon, 7 Jun 2021 11:35:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623080037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DankcACZXWslvex/hGCrRKXxxv4UiIym257Vx0lNYb4=; b=gY48wKg8HE7Ya3PBUad8Wz0enAHJYtlMEkF+40qIcDYrGe5qvyWk18gm/XK4laomlQtxPI VpLhCFELGifwJKttDnUi5DpcVwVGiyxu+0INlNdMSnik4qDtvJkP7oHVs2jXn7O33XTPL9 sRlDPAaVKhl/dnguZc5eGReUR3bJehc= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-297-fQ1HkIZ1NCWTdPi19cQhTw-1; Mon, 07 Jun 2021 11:33:55 -0400 X-MC-Unique: fQ1HkIZ1NCWTdPi19cQhTw-1 Received: by mail-ej1-f72.google.com with SMTP id ji22-20020a1709079816b0290414bdf5da11so1023376ejc.9 for ; Mon, 07 Jun 2021 08:33:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DankcACZXWslvex/hGCrRKXxxv4UiIym257Vx0lNYb4=; b=O1yR28FTbCtayGYIyaQjrMslE/SuQMRASaiovN8HjoioG7X7HNrRbhsbAMPEDc7MK0 Vb2FT21a+aJPAc//66l2Pql61Tzw+xNoyLMOykUCFQ9n6qIaybhdnuzrRkiE4wNf7obA /LW76Cpsmc+jEk9/t4nDxtpeXEbMSu2TarbfcsYO2/9eYQuVGvr+hTh9+1xcekuC45lA YVPjV7yttQezbuCvyfxDo5SV0T1KFiiaAO186pr1yw7g64tycwwKlSssSkKiYXbpH/bO Ml8WUWt/xf+bPcJaTk55RmVZy1mIXeeqPUopfQEku7H/uQHg4Yf/nLYN4Xwjvpke683V 6GNw== X-Gm-Message-State: AOAM530vcY0TN/UFwKHVQ7oTnJMBumZkN4I0ErGMxK2yfzn70eBaj8A3 S4wFFE99PcFdkW2KnQfPXvNrWoXOEWzdIQ0dVvO986hdwokpfrSq7PH5FqFXSMyXvRyCp9ArAFk mMr0oenNKPz5Z9QlPF9F96V1zkac= X-Received: by 2002:a17:907:20da:: with SMTP id qq26mr17820562ejb.42.1623080033902; Mon, 07 Jun 2021 08:33:53 -0700 (PDT) X-Received: by 2002:a17:907:20da:: with SMTP id qq26mr17820533ejb.42.1623080033736; Mon, 07 Jun 2021 08:33:53 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id s2sm7949873edu.89.2021.06.07.08.33.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Jun 2021 08:33:53 -0700 (PDT) Subject: Re: [PATCH] brcmfmac: Add clm_blob firmware files to modinfo To: matthias.bgg@kernel.org, Arend van Spriel , Franky Lin , "David S . Miller" Cc: brcm80211-dev-list.pdl@broadcom.com, Remi Depommier , Kalle Valo , Chung-hsien Hsu , Seung-Woo Kim , Jakub Kicinski , netdev@vger.kernel.org, Chi-hsien Lin , linux-wireless@vger.kernel.org, Amar Shankar , Thomas Gleixner , linux-kernel@vger.kernel.org, Dmitry Osipenko , SHA-cyfmac-dev-list@infineon.com, rafal@milecki.pl, Hante Meuleman , Lee Jones , Greg Kroah-Hartman , Matthias Brugger , "Gustavo A . R . Silva" , Wright Feng References: <20210607103433.21022-1-matthias.bgg@kernel.org> From: Hans de Goede Message-ID: Date: Mon, 7 Jun 2021 17:33:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210607103433.21022-1-matthias.bgg@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, On 6/7/21 12:34 PM, matthias.bgg@kernel.org wrote: > From: Matthias Brugger > > Cypress Wi-Fi chipsets include information regarding regulatory > constraints. These are provided to the driver through "Country Local > Matrix" (CLM) blobs. Files present in Linux firmware repository are > on a generic world-wide safe version with conservative power > settings which is designed to comply with regulatory but may not > provide best performance on all boards. Never the less, a better > functionality can be expected with the file present, so add it to the > modinfo of the driver. > > Signed-off-by: Matthias Brugger Thanks, patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans > > --- > > .../wireless/broadcom/brcm80211/brcmfmac/firmware.h | 7 +++++++ > .../net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 4 ++-- > .../net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 12 ++++++------ > 3 files changed, 15 insertions(+), 8 deletions(-) > > diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.h > index 46c66415b4a6..e290dec9c53d 100644 > --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.h > +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.h > @@ -32,6 +32,13 @@ static const char BRCM_ ## fw_name ## _FIRMWARE_BASENAME[] = \ > BRCMF_FW_DEFAULT_PATH fw_base; \ > MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH fw_base ".bin") > > +/* Firmware and Country Local Matrix files */ > +#define BRCMF_FW_CLM_DEF(fw_name, fw_base) \ > +static const char BRCM_ ## fw_name ## _FIRMWARE_BASENAME[] = \ > + BRCMF_FW_DEFAULT_PATH fw_base; \ > +MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH fw_base ".bin"); \ > +MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH fw_base ".clm_blob") > + > #define BRCMF_FW_ENTRY(chipid, mask, name) \ > { chipid, mask, BRCM_ ## name ## _FIRMWARE_BASENAME } > > diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c > index 143a705b5cb3..c49dd0c36ae4 100644 > --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c > +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c > @@ -48,8 +48,8 @@ enum brcmf_pcie_state { > BRCMF_FW_DEF(43602, "brcmfmac43602-pcie"); > BRCMF_FW_DEF(4350, "brcmfmac4350-pcie"); > BRCMF_FW_DEF(4350C, "brcmfmac4350c2-pcie"); > -BRCMF_FW_DEF(4356, "brcmfmac4356-pcie"); > -BRCMF_FW_DEF(43570, "brcmfmac43570-pcie"); > +BRCMF_FW_CLM_DEF(4356, "brcmfmac4356-pcie"); > +BRCMF_FW_CLM_DEF(43570, "brcmfmac43570-pcie"); > BRCMF_FW_DEF(4358, "brcmfmac4358-pcie"); > BRCMF_FW_DEF(4359, "brcmfmac4359-pcie"); > BRCMF_FW_DEF(4364, "brcmfmac4364-pcie"); > diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > index b8788d7090a4..69cbe38f05ce 100644 > --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > @@ -616,14 +616,14 @@ BRCMF_FW_DEF(43362, "brcmfmac43362-sdio"); > BRCMF_FW_DEF(4339, "brcmfmac4339-sdio"); > BRCMF_FW_DEF(43430A0, "brcmfmac43430a0-sdio"); > /* Note the names are not postfixed with a1 for backward compatibility */ > -BRCMF_FW_DEF(43430A1, "brcmfmac43430-sdio"); > -BRCMF_FW_DEF(43455, "brcmfmac43455-sdio"); > +BRCMF_FW_CLM_DEF(43430A1, "brcmfmac43430-sdio"); > +BRCMF_FW_CLM_DEF(43455, "brcmfmac43455-sdio"); > BRCMF_FW_DEF(43456, "brcmfmac43456-sdio"); > -BRCMF_FW_DEF(4354, "brcmfmac4354-sdio"); > -BRCMF_FW_DEF(4356, "brcmfmac4356-sdio"); > +BRCMF_FW_CLM_DEF(4354, "brcmfmac4354-sdio"); > +BRCMF_FW_CLM_DEF(4356, "brcmfmac4356-sdio"); > BRCMF_FW_DEF(4359, "brcmfmac4359-sdio"); > -BRCMF_FW_DEF(4373, "brcmfmac4373-sdio"); > -BRCMF_FW_DEF(43012, "brcmfmac43012-sdio"); > +BRCMF_FW_CLM_DEF(4373, "brcmfmac4373-sdio"); > +BRCMF_FW_CLM_DEF(43012, "brcmfmac43012-sdio"); > > /* firmware config files */ > MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcmfmac*-sdio.*.txt"); >