Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp540043rwb; Mon, 26 Sep 2022 02:30:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5VArOTCrF+s//yuoVSseFDIKchwdWfyic7kj4oPqFG4/pTsaKsuRofZnhjN8X99JcsRYtd X-Received: by 2002:a17:90b:194a:b0:202:e6eb:4b62 with SMTP id nk10-20020a17090b194a00b00202e6eb4b62mr36169500pjb.33.1664184627330; Mon, 26 Sep 2022 02:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664184627; cv=none; d=google.com; s=arc-20160816; b=xAC9vMGiARKXKS5uEHgabvPr2HXZ3qXSr9fhUQ9b+QUvNWPqncv/0cpkcMT9d6iwPj rD2139IWljk7YKOzsWRWg90nK9FwsDjoVLziMPnGc5bFWHwa8jrQgZEbsTLTD2u3Jotn Ofy7HyzBSvStzzLcC+flOU6lJIA/oHxKxyeEYinDikJ0iGy9cns5P2kBwfQlTQskqVte Iqe865oyj1lcRIgcoomXW6APmpfi+5NkDXne5bdRukspd5hJnc6FPxLKWKiLeM7UlN7Y jwx4YXKHpefuMl2tYlkZY/Quwvgn7ZQOtLCi9CdxXjlN9CPlIVze+NEEha3yCXslAY+d /h5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=ptacZmb4mAiKW7hPsZLLTNmlfwI/LBzdweTZj/Svi90=; b=N70iaaRXbj/aZ5zCLOCF+3cFeGDc+YzUB4DscRsNNBBTyItsmsdIFRmZ7H5A8w25fa zVEk4WS7QcxACGFBbOTR0KFl+14YmnMgZ36B6HupQWtYooI5zXDJEDNcQ7U6Jz4Oa9Gx Kji2lZi3oMtAhL0YfZApSrLRoZXf9LtsmDihW7drzxoHCQ/sO6zXPkDlbTH09Oi6e6Q2 6tWeKjfMuJ4f21KtiPYDXr71b79Npkgu3yp6UlihbzeHgfpLziFlQ3O2t2EUl+fyw/SK Rf0b4mpdIboxj/9ctVHOMW5yowSivht3f7NVS3SaLfw6ytL0y+ci7QmR8FVu8v2aomkK tJBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YLi8e0sI; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a170903244c00b00176e85e5661si13168449pls.593.2022.09.26.02.30.19; Mon, 26 Sep 2022 02:30:27 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=YLi8e0sI; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234964AbiIZJ3g (ORCPT + 62 others); Mon, 26 Sep 2022 05:29:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234881AbiIZJ3J (ORCPT ); Mon, 26 Sep 2022 05:29:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBEBD30547; Mon, 26 Sep 2022 02:27:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4235F60B4A; Mon, 26 Sep 2022 09:27:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88327C433C1; Mon, 26 Sep 2022 09:27:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664184470; bh=ptacZmb4mAiKW7hPsZLLTNmlfwI/LBzdweTZj/Svi90=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=YLi8e0sIBewQtpKNnoxhs3GdUGYcSUrGG82QYkExPUiSEIxx2R7suJj5wORrJp7T7 SkH86mu2bnHei41LHglyAS+ag87fX8BfPirX8njNhecSoxic4FzT+lXWRP9LEJPkaf f8e/J0oU0KgCgq3knojBQIX57CC5pSOQTjm8CyRO0Ki32YGpvpSJIDJZSBYyifwAPp 8stFng9d7BZrpsytnsy6SLt+iZR4rstMMWE2tT8c0+Jn/nZz4EVwFt5Q0KH17WShJu 5sZse98PYkv/kn5cNdi7o70hWDlSrxydSXMVW3yrpcHyUhky1PSBPXQe5DdOwIl7fW fTtI5tgvxYRYg== From: Kalle Valo To: Alvin =?utf-8?Q?=C5=A0ipraga?= Cc: Linus Walleij , Konrad Dybcio , 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" Subject: Re: [PATCH v2] brcmfmac: Add support for BCM43596 PCIe Wi-Fi 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> Date: Mon, 26 Sep 2022 12:27:43 +0300 In-Reply-To: <20220922133056.eo26da4npkg6bpf2@bang-olufsen.dk> ("Alvin \=\?utf-8\?Q\?\=C5\=A0ipraga\=22's\?\= message of "Thu, 22 Sep 2022 13:30:57 +0000") Message-ID: <87sfke32pc.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Alvin =C5=A0ipraga 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: >>=20 >> > Also worth noting is the 'somc' bit, meaning there are probably *some*= SONY >> > customizations, but that's also just a guess. >>=20 >> 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. --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes