Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2611684rwl; Fri, 6 Jan 2023 08:40:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXuP3rgqt/bPi0DxPCJR0RxhEICg78pAstIdkfWzFof4Mb4qLCvZ6Mg2bgekHg9OVuFteWn6 X-Received: by 2002:a17:906:8492:b0:7c0:affa:866f with SMTP id m18-20020a170906849200b007c0affa866fmr46495793ejx.26.1673023225393; Fri, 06 Jan 2023 08:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673023225; cv=none; d=google.com; s=arc-20160816; b=TWJTWW4OFREAK6lkorhwqjQw/jwoWI/Di7V74+VT8ilRNrvQ5fxBCh9adiOMmXUIgH Dgrv8huKuYeMKbBdkKdZALAwMlzH9/ZX5Ljela6fSpLoAkDOA3yqoV/iAfNs8QO9fMDV mfH+Prmz8n0dMZggTYeLNq6d9mSdhfNXpe8YWFKMw/fLMnM925yt1/2GTnyi8uHKd2sW R9ER9C5nd4fiLmPAuY8Dls7TyyplgXaVTups6+zo122BdgBUgLol14SppsbbiHll/G2h Nk8ejvQmvc/7JOam7tVmKN+IYtLdBjm2u44eQeVHW0y/U+kSLWO7/XIr5rj48xctFqQr 1auw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=SZUCp4keJezXicYZOBcGncwJCnRI/QuMkulKJeGYzKs=; b=vxgAcspKe5JgLfzEEy/o6srVw+mf6Aa9tbybWWRn2ZBY5Z7XOiSTGCpi1iKgPBRCHn x7vmHnMF8KU/GCdm7FUy1GDslWwlohHEHnDXIfZvPlZi6mPME2fkc+POxdmYwa5Rkd4L gkFUCJf7PYaqNFbd8oR77CwZfDofn1nzjnXJPPAPkfY5UmRIcjwJ1r89f9yPcY35oiU/ hufcUpT/Vnef1nZUQpWfSlnMEd+aBzBSLnujDPTqShVJF/GqcAEhai2BSmo0NNM0dHLB CF5q3pigXN+Gn+qsyPn0NwGMPHdM/S+2EuV2gftYKLQ/jBuRiX4JRAiCDG3QXbmJaX8T 55Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marcan.st header.s=default header.b="fERt/ylt"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wu4-20020a170906eec400b0073de493b83esi1825059ejb.147.2023.01.06.08.40.06; Fri, 06 Jan 2023 08:40:25 -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=@marcan.st header.s=default header.b="fERt/ylt"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234652AbjAFQfp (ORCPT + 66 others); Fri, 6 Jan 2023 11:35:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231586AbjAFQfo (ORCPT ); Fri, 6 Jan 2023 11:35:44 -0500 Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7FEE777E7; Fri, 6 Jan 2023 08:35:41 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id EDA63425F5; Fri, 6 Jan 2023 16:35:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=marcan.st; s=default; t=1673022939; bh=89y7NsFS+v4aw4niloxNfhOvjApWwxZ5Xy0E6uaeOlw=; h=Date:To:Cc:References:From:Subject:In-Reply-To; b=fERt/yltWB3jC395niUM/SwsAnPcR3pbB7XkYefi2ScEZr9CGqDROZsqYHeaXYUt3 IRKM9kVc7ubodizHfIpUI+18RSNO8FbzOvzrNKpl/woDXmEGTkjp/bM/ayEwaZNDCi 5Dot7L2oqAvqEvfHSxW7x3X28PJlssGpQaumvD9LvR3Xby2gWiztK8TnuKUksuiMC3 3y0qG8T0hRNfRv2/5RhyCRaTsvilbTUk5BqQoJ9knY4h1MsaqU2QfeLA+jpy2pDv57 b1bfZi79Vym/FhIgTJqR/ZWo+ZQnhsBnCxfJTWcUbYTlui16wECTeCJC9PNSAaVR4h SlFpofTsnp5/w== Message-ID: <3cf5c1cd-1cc3-35bb-db65-e7f4a3f00527@marcan.st> Date: Sat, 7 Jan 2023 01:35:31 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Content-Language: en-US To: Arend Van Spriel , "Ivan T. Ivanov" Cc: franky.lin@broadcom.com, hante.meuleman@broadcom.com, rmk+kernel@armlinux.org.uk, stefan.wahren@i2se.com, pbrobinson@gmail.com, jforbes@fedoraproject.org, 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, stable@vger.kernel.org References: <20230106131905.81854-1-iivanov@suse.de> <0b277149-867b-8acf-30d8-2cd68ba24c99@gmail.com> From: Hector Martin Subject: Re: [PATCH v2] brcmfmac: Prefer DT board type over DMI board type In-Reply-To: <0b277149-867b-8acf-30d8-2cd68ba24c99@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 07/01/2023 01.21, Arend Van Spriel wrote: > On 1/6/2023 2:19 PM, Ivan T. Ivanov wrote: >> The introduction of support for Apple board types inadvertently changed >> the precedence order, causing hybrid SMBIOS+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") >> >> [1] https://bugzilla.opensuse.org/show_bug.cgi?id=1206697#c13 >> >> Cc: stable@vger.kernel.org >> Signed-off-by: Ivan T. Ivanov > > Looks good to me. I do have a question about the devicetree node for > brcmfmac. The driver does a compatible check against > "brcm,bcm4329-fmac". I actually expect all devicetree specifications to > use this. That said I noticed the check for it in brcmf_of_probe() > should be moved so it is the first check done. We're talking about the machine compatible in the root OF node, not the compatible for the device itself. That's how firmware selection for non-Apple platforms works (and has worked since before the Apple stuff got introduced): first try the machine type which is either derived from DMI info or the root compatible, and fall back to generic firmware. The device compatible is indeed always brcm,bcm4329-fmac. - Hector