Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp831482rwb; Fri, 18 Nov 2022 08:48:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7wKTqPNRO4JczaUN79+sc/CH0D0JEx2lsbp7WgmVlBOpcLeFnlkr6R3JkOt+vaq8fGF3/w X-Received: by 2002:a17:906:1d14:b0:7ad:79c0:46f4 with SMTP id n20-20020a1709061d1400b007ad79c046f4mr6699310ejh.363.1668790092427; Fri, 18 Nov 2022 08:48:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668790092; cv=none; d=google.com; s=arc-20160816; b=ImFUhquntgnKoS0wnCj4PuE82eIvMXmSEuJdkJWx/FW47wJC8T1gcq6JIpqR1aS1cB ONZMna/NfTjyawJJyHXAfmDYE+XCq8hi/KjoKTHFLvyDbG1V0YtUhwPsUjHUaOSEYdkq fmCi1DfYyhCuwnfygrkspgcAfLJDHX1LDRlQlFZE6iBDW5U5gzCQQj7NtKv3VHMB+c2l CPKDad2CR0RlOnh+0Sud5gSsZvqMPcfH5p8ZcXN8pU+CqjuVHcpdStoeD854A9SI+XLC 6K3Js+l3NQFrY+8oK2dvJA8KGxJwdiGgJxQEux4g7yJkyOKT3Ae0TPV8eGY2fkoE+Ssk GUAA== 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:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=JjS4gImtGAJJbWB/0EDokdPSqW8A0zuYR+TtXk+h7bA=; b=ETL04AU9wIrbhjNQNcxXaxd2CQAf9knr3/RUxhgB07unWU0kJbiAXp+WWKTbQUEJ8X 4pDmx9eRGo6J7dJxZfxNHiGLdqNRVtqp8T9Dljx/vnoFXNxl4hlmPZ1VyDT7/jcjJlL1 aC1HEtzF5YS+89kBXjw1e+Qbrlz4PNbdqyyYZco7EcufuCcGcytBtxfgEIfWTv6uKMxS 6RUBb+01pfsDFETPgq4ticQ7I+DQCuaDpI9NO0sB4Dy7FXBxz6OKDVHm5UQEadTP8job nomPswBuWnps2PgsFjBH2ChRrqPa1k4/dGhPLA+j9b3z3hQOn+A4IH2HpFRO/Lxo7eiV sovA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kDciKdVG; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a17090658cc00b007ae0ea72153si4204309ejs.696.2022.11.18.08.47.50; Fri, 18 Nov 2022 08:48:12 -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=@linaro.org header.s=google header.b=kDciKdVG; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242200AbiKRQrT (ORCPT + 67 others); Fri, 18 Nov 2022 11:47:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241423AbiKRQrR (ORCPT ); Fri, 18 Nov 2022 11:47:17 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1E99BE04 for ; Fri, 18 Nov 2022 08:47:16 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id j16so9065619lfe.12 for ; Fri, 18 Nov 2022 08:47:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=JjS4gImtGAJJbWB/0EDokdPSqW8A0zuYR+TtXk+h7bA=; b=kDciKdVGHdmiJlolrTF6PbQo6D/1op1CjAitUOm47eVwIp7q548L2ZgzwK/JRH9H9O OACMJe6gV1S5iJy+Y3XmYIrM/4lFBav6Qjr0Nam47w2I3MN7RarUKS5ZhpPE1zHO6JWn 576QQkfZaQBkIpZZBdoL788i3/OUPIGmtG8dFq1+SVDBpPLJ8OBiZHMAw4WLOYbyQnFu f13d2BBVSQZUTgzXg3ac6cDQJgUVVnGZInsmPH4WQwdEG54ufYeWBkK/pU5wMkvArKUF ReR2F6BHOYDKcWMclEOGGT3rWIxXgYZHKf2C2e16VU5kFHmNW57/ZMxy+Qfzc+qCpc89 eANg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=JjS4gImtGAJJbWB/0EDokdPSqW8A0zuYR+TtXk+h7bA=; b=1buC8+NRtIohhh9hx6SlWji7qZkvQl8XKXVGGBwaPrQ7WWHLpKrey3tP09RNQAN/N2 /FffK7Garcw62LbqHsGliJ0l3p/LcHVovSUGcOw4kidiREqp50z/2b0FeFWy2xF6V8mY SydS9v+gDOBErZtklOZdu5fw2/V0dsAatCEiJMYV7dePh+Q6TsWLtlgIzF8Kvl+vuE/5 icMb7RM3jv0/hFXFM3L6NU6FKDjjMHsnbycWiy0DEshy/x8iWkVxVMsnd+gm7gDR/zcs ZihljhzIm6Yk7hEUNy3MlekoWJo8u+slZTUd9iqQuTRpT1gHlSAu/+2CLpCY837z5CAO eP3g== X-Gm-Message-State: ANoB5pnyZnfcJhPyfkMBFnPcpmFN2k9UuGiWgt/OGayB/qNW0Po7cX+k HzMhze6GmP96+a0nFqKd9DYLJA== X-Received: by 2002:ac2:4e0a:0:b0:4a2:2aab:5460 with SMTP id e10-20020ac24e0a000000b004a22aab5460mr2546386lfr.62.1668790035078; Fri, 18 Nov 2022 08:47:15 -0800 (PST) Received: from [192.168.31.208] ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id v20-20020a2e9614000000b0026dced9840dsm693266ljh.61.2022.11.18.08.47.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Nov 2022 08:47:14 -0800 (PST) Message-ID: <4592f87a-bb61-1c28-13f0-d041a6e7d3bf@linaro.org> Date: Fri, 18 Nov 2022 17:47:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v2] brcmfmac: Add support for BCM43596 PCIe Wi-Fi To: Kalle Valo , =?UTF-8?Q?Alvin_=c5=a0ipraga?= Cc: Linus Walleij , Hector Martin , "~postmarketos/upstreaming@lists.sr.ht" <~postmarketos/upstreaming@lists.sr.ht>, "martin.botka@somainline.org" , "angelogioacchino.delregno@somainline.org" , "marijn.suijten@somainline.org" , "jamipkettunen@somainline.org" , Arend van Spriel , Franky Lin , Hante Meuleman , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Marek Vasut , "Zhao, Jiaqing" , "Russell King (Oracle)" , Soon Tak Lee , "linux-wireless@vger.kernel.org" , "brcm80211-dev-list.pdl@broadcom.com" , "SHA-cyfmac-dev-list@infineon.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20220921001630.56765-1-konrad.dybcio@somainline.org> <83b90478-3974-28e6-cf13-35fc4f62e0db@marcan.st> <13b8c67c-399c-d1a6-4929-61aea27aa57d@somainline.org> <0e65a8b2-0827-af1e-602c-76d9450e3d11@marcan.st> <7fd077c5-83f8-02e2-03c1-900a47f05dc1@somainline.org> <20220922133056.eo26da4npkg6bpf2@bang-olufsen.dk> <87sfke32pc.fsf@kernel.org> From: Konrad Dybcio In-Reply-To: <87sfke32pc.fsf@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 26/09/2022 11:27, Kalle Valo wrote: > Alvin Šipraga writes: > >> On Thu, Sep 22, 2022 at 03:02:12PM +0200, Linus Walleij wrote: >>> On Thu, Sep 22, 2022 at 12:21 PM Konrad Dybcio >>> wrote: >>> >>>> Also worth noting is the 'somc' bit, meaning there are probably *some* SONY >>>> customizations, but that's also just a guess. >>> >>> What I have seen from BRCM customizations on Samsung phones is that >>> the per-device customization of firmware seems to involve the set-up of >>> some GPIO and power management pins. For example if integrated with >>> an SoC that has autonomous system resume, or if some GPIO line has >>> to be pulled to enable an external regulator or PA. >> >> At least with Infineon (formerly Cypress), as a customer you might get a >> private firmware and this will be maintained internally by them on a >> separate customer branch. Any subsequent bugfixes or feature requests >> will usually be applied to that customer branch and a new firmware built >> from it. I think their internal "mainline" branch might get merged into >> the customer branches from time to time, but this seems to be done on an >> ad-hoc basis. This is our experience at least. >> >> I would also point out that the BCM4359 is equivalent to the >> CYW88359/CYW89359 chipset, which we are using in some of our >> products. Note that this is a Cypress chipset (identifiable by the >> Version: ... (... CY) tag in the version string). But the FW Konrad is >> linking appears to be for a Broadcom chipset. >> >> FYI, here's a publicly available set of firmware files for the '4359: >> >> https://github.com/NXP/imx-firmware/tree/master/cyw-wifi-bt/1FD_CYW4359 >> >> Anyway, I would second Hector's suggestion and make this a separate FW. > > I also recommend having a separate firmware filename. Like Hector said, > it's easy to have a symlink in userspace if same binary can be used. So, I dusted off this patch and tried to change the fw name, only to discover that the BRCM_PCIE_43596_DEVICE_ID is equal to CY_PCIE_89459_DEVICE_ID, (which btw uses 4355/89459 fw), but then it makes the driver expect 4359/9 based on rev matching, so... the 43596 chip ID may be a lie? Or at least for the one used in my particular device? I'm beyond confused now.. I can think of a couple of hacky ways to force use of 43596 fw, but I don't think any would be really upstreamable.. Any thoughts? Konrad