Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2269529rwl; Fri, 6 Jan 2023 04:22:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXuyKtHk802OryaoGpHuYPzgcNz4kkq6dmmdTAPIxKJLhw8/y9wkhw6hL0eP35xA/dGB1kow X-Received: by 2002:a17:906:c25a:b0:7c9:6e0e:1428 with SMTP id bl26-20020a170906c25a00b007c96e0e1428mr43676555ejb.47.1673007727020; Fri, 06 Jan 2023 04:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673007727; cv=none; d=google.com; s=arc-20160816; b=sMOPJngkOT42+UjlKsBSltiF5GBt5PnUJVszcJzx/zZOHBgWUcyXfPUA9eKo417inH 4EfGYdJ5ksrX4lmRaiLlAbNM0DBq15DmHadwmFfl85r4FzH/7CNjNzF5GxVDPTCiBmRW e/RCsFAVagQdR6aOzPoaRQpaWehXd5L3xiLOD3bAkrHv1LQUs8iochNrV6Hu10zPFT01 NPGAONFbVKwKA0ALNrkUtP8Yr9Z70cQIYorFS3kXRB0kgL7aOk8o35YR0hZkZzHjr5xh spxHy4IpDUqrson7SZE1io1p+cLXJWHa7LKzD6nd+Ft0xQ1PAUDadRE+rZCrqglVb5uB 77hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=8QCVLYYjUvcUlvgswB1aZMBn/74NHSJlA341O/hqUaQ=; b=v7o6LDBDXgWcy0z19miEpv9AnAYF76yLCQ7rn4KJT1c5WlMgHa9YA9KqdiONXE2PyB 3yU+5ye9u5+dpLe4YTocFeEzACq+am4pzlYr4ilahtjjAMNCeM/pJdDTByNzh+hb+ajy BpEoirDQRPoanKw65HN27393FhNJagY1JuE/CtijUHszvPM26MpLLT6ybNQ8lrES7Eko mhRiZ3tY7hF3ClOaHtDEPI4jkjW3GMBKwhb0DZT5r8xhEoFPEJjIOm6acCe3s864vDFn HHI7mfjGARwhseSIhOY2XONmOPmOmBdGTuMeEIkurLUfbVxCpC+AQTZxCwaEQQSsaUqt 7Xrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=kdIc3vyo; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q27-20020a50c35b000000b00493d3f31d65si1555202edb.193.2023.01.06.04.21.50; Fri, 06 Jan 2023 04:22:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=kdIc3vyo; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232453AbjAFMUl (ORCPT + 66 others); Fri, 6 Jan 2023 07:20:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjAFMUj (ORCPT ); Fri, 6 Jan 2023 07:20:39 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FF8C736DA; Fri, 6 Jan 2023 04:20:38 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id BE4CB249EA; Fri, 6 Jan 2023 12:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673007636; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8QCVLYYjUvcUlvgswB1aZMBn/74NHSJlA341O/hqUaQ=; b=kdIc3vyodJBsRjBnoRoPW/005nFodyT/BRoyKPIEu+vznkdjaUrki6gsZNp+jDsnVe5KuG vony4h/XWFYOg6zJ0R/QZRkGUsHVcG6aJia4bvCZIA5dJABlOXny+s929mXfiyysx0H1dC djK7S2i+L9PT+GrSbU7ulyi8nQep39g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673007636; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8QCVLYYjUvcUlvgswB1aZMBn/74NHSJlA341O/hqUaQ=; b=c4e6WO3RFIc/Hvqk/AqGqSKXUqmH/0MfeTEuzObq7xe87k6ov5LsSxpniSW+UdZ2RzFOEo Q40+R1tCWjPtqOBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A05D213596; Fri, 6 Jan 2023 12:20:36 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id HkIgJxQSuGMIPAAAMHmgww (envelope-from ); Fri, 06 Jan 2023 12:20:36 +0000 Date: Fri, 6 Jan 2023 14:20:36 +0200 From: "Ivan T. Ivanov" To: Hector Martin Cc: aspriel@gmail.com, franky.lin@broadcom.com, hante.meuleman@broadcom.com, rmk+kernel@armlinux.org.uk, kvalo@kernel.org, davem@davemloft.net, devicetree@vger.kernel.org, edumazet@google.com, krzysztof.kozlowski+dt@linaro.org, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com Subject: Re: [PATCH] brcmfmac: of: Use board compatible string for board type Message-ID: <20230106122036.nrx4ssodwymhao7u@suse> References: <20230106072746.29516-1-iivanov@suse.de> <2711b084-5937-7e0f-26d8-67510da3939c@marcan.st> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2711b084-5937-7e0f-26d8-67510da3939c@marcan.st> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 01-06 21:13, Hector Martin wrote: > > On 2023/01/06 18:27, Hector Martin wrote: > > On 2023/01/06 16:27, Ivan T. Ivanov wrote: > >> When "brcm,board-type" is not explicitly set in devicetree > >> fallback to board compatible string for board type. > >> > >> Some of the existing devices rely on the most compatible device > >> string to find best firmware files, including Raspberry PI's[1]. > >> > >> Fixes: 7682de8b3351 ("wifi: brcmfmac: of: Fetch Apple properties") > >> > >> [1] https://bugzilla.opensuse.org/show_bug.cgi?id=1206697#c13 > >> > >> Signed-off-by: Ivan T. Ivanov > > > > The existing code already falls back to the compatible string, *as long > > as there is no board_type set already*. > > > > As far as I can tell, the only way the board_type can get another value > > first is if it comes from DMI. This behavior was inadvertently changed > > by commit 7682de8b3351 (since I was not expecting platforms to have > > *both* DT and DMI information). > > > > I'm guessing the Raspberry Pi is one such platform, and > > `/sys/devices/virtual/dmi` exists? Hybrid UEFI+ACPI+DT platform I take it? > > > > If so, your commit description should probably be something like: > > > > === > > brcmfmac: Prefer DT board type over DMI board type > > > > The introduction of support for Apple board types inadvertently changed > > the precedence order, causing hybrid ACPI+DT platforms to look up the > > firmware using the DMI information instead of the device tree compatible > > to generate the board type. Revert back to the old behavior, > > as affected platforms use firmwares named after the DT compatible. > > > > Fixes: 7682de8b3351 ("wifi: brcmfmac: of: Fetch Apple properties") > > === > > > > An also add a Cc: stable@vger.kernel.org to make sure this gets backported. > > > > With the fixed description, > > > > Reviewed-by: Hector Martin > > > > - Hector > > Looking into this a bit more from what was mentioned in the linked bug, > the DMI data comes from the SMBIOS table. We don't have that on Apple > platforms even though we also boot via U-Boot+EFI, but I'm guessing you > build U-Boot with CONFIG_GENERATE_SMBIOS_TABLE and provide that stuff in > the DT? Yes, that is the way in openSUSE case. > So s/ACPI/SMBIOS/ would be more accurate in the commit message. Sure, I will rewrite commit message and repost. Thanks!