Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10350794rwb; Fri, 25 Nov 2022 03:57:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf5tHsf5owf2PxeqZhDFqw02WVEvP98ozK7ZeyC//K/h+NKiho0DxEtw6CFVuq5x6697oMIq X-Received: by 2002:a05:6402:3719:b0:461:4f34:d8f4 with SMTP id ek25-20020a056402371900b004614f34d8f4mr35531439edb.144.1669377447242; Fri, 25 Nov 2022 03:57:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669377447; cv=none; d=google.com; s=arc-20160816; b=txqbfupo1aYYEj7LV1RRPEKFbLJ4Z7aZFFjTwxgHQ7Y1zHLLDCBLvhyw3YIOrX3buV d36QLvQIBUJCcbipC+Rnpf80NsYSWkLVszQReeA0a6U779JLU8Klebrbcnir3ajbwztq jzsZ2t+/luCnQlQxWIAgeK3NHSsaZvVVdXNCW/QDZ0y3z30I2M8wt3GjLC8G/Zrcl2YE 4L22BXWgZV6VVigVYQRqMEsYj793MtsxodcJ7W4B4Hiw/7BxTN9gr/xScBuKDWQK9DkZ CmLQj1ffJ5DYD/p1vAVM8qf9YLWSVRRhb5RDqUlTVrwB7JPabGDnTw3owlmq+KruAszu fi3w== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HuPscf/chfZUucxqeK0O8KtSwVLAMHyTryFfC0BnouI=; b=kmhlSVHl5ya+Z/fVcJNisXfVgx0xopXx+TFmarJC862V2xgpdTVLZtFCOa9Hcm3MH6 Gbkx4U0KYdbX834o8LOGe4T1seRZcygi7aNjiAc2r06sB6cV+Ft0ZXLUIHq/0NZxm+0c mVGOgrdCqij7ZrF4T5U3Vwg5ww/JXcKgcEFAwi1byxb2v2LTfLJoglYEW1oaWknCk2Ki Qim6/w5hQFnH346EIC8fQBY3eik+vGkVzrXq2FQ+VkSdwFZ90UDS7P3a95vUx/b6iZ/k EDatAImgWqjSQzUZAtUbtXxI0KvYpFqDdlL0vJ18SSrdJm9ICtW43aHlMRC1lrSmdkgn bZKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cRBJ1zIl; 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 b17-20020aa7df91000000b0045d539f05a8si2730163edy.576.2022.11.25.03.57.08; Fri, 25 Nov 2022 03:57:27 -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=cRBJ1zIl; 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 S230139AbiKYLmm (ORCPT + 67 others); Fri, 25 Nov 2022 06:42:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbiKYLmg (ORCPT ); Fri, 25 Nov 2022 06:42:36 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18B2F271B for ; Fri, 25 Nov 2022 03:42:34 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id b3so6501428lfv.2 for ; Fri, 25 Nov 2022 03:42:33 -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:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HuPscf/chfZUucxqeK0O8KtSwVLAMHyTryFfC0BnouI=; b=cRBJ1zIlVB87Nh4EHVcPOxoezUvVbm14AjUgY4f08Iy8TfC87vMcKJDo6glZPhWH7Z GwT8aTsLmweIygCJ/gUv3Vykf6eM7OeiH3i8V8Zy5GD+xPul5w495P7qrsOrnyDaOxLl 11Yooh4D6KhfExQlcIjJp9pTmDEK/TrsXc1fkt2A+jNggyrcvkalMMV+LsSc+eKTBBl8 aO/wg7tP+nsnZtL5r2c+Dib0cy3zswaht6L8po9wdwGFjhxB6EsSMDCMhj1aL8jVoU+r 8Z+oahw4aQc+fkVoYQ8MpgIkXCKKc68nGnW00/rrfWqCGMvqKERweUhcQpK3NBZgJ2Uf I9uQ== 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:content-language :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=HuPscf/chfZUucxqeK0O8KtSwVLAMHyTryFfC0BnouI=; b=JqZBXFiVg+ycczkWn0Hfv5zbqx51LvTAkfaif7RD+94YD/ZgXvSUpE3mngZYP2RcDt H1Hz8OdW6zuWpSCO4VB2nio2sv01SxPYhyeKQbFd71xbh5xyWD/UFCJoubtLiIi4NT2j yGiljkfkCOu9QQQo0xE8JwNc2txnlt6Pk/w3DJzMkwG1MGIV2fIqL3Vt29ZLxt/r8UcK U4jj6YCVivE5yekudMshct1DY0KIUqniDjyRIDYkjTFLUDnk4cWpp3qmwBbTVJ+6/JaX aNO6Nup0AWnwpYKa+howvkNUlrxIb2HpoFlFGprSnGzUNvOWhHemJCHlzIvWukdcNAjt PAsg== X-Gm-Message-State: ANoB5pnktvISbXtm/4WdnRdgHLPdQ9tvWisyQSmX7X3f2wk1iKOypxWC z8DJE8scib0MRZGcvQMyagD2yA== X-Received: by 2002:a19:760b:0:b0:4b1:ebdb:be43 with SMTP id c11-20020a19760b000000b004b1ebdbbe43mr7257355lff.176.1669376552426; Fri, 25 Nov 2022 03:42:32 -0800 (PST) Received: from [192.168.1.101] (95.49.32.48.neoplus.adsl.tpnet.pl. [95.49.32.48]) by smtp.gmail.com with ESMTPSA id o7-20020a05651205c700b004a2550db9ddsm494684lfo.245.2022.11.25.03.42.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 03:42:31 -0800 (PST) Message-ID: Date: Fri, 25 Nov 2022 12:42:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v2] brcmfmac: Add support for BCM43596 PCIe Wi-Fi To: Linus Walleij Cc: Kalle Valo , =?UTF-8?Q?Alvin_=c5=a0ipraga?= , 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> <4592f87a-bb61-1c28-13f0-d041a6e7d3bf@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 21.11.2022 14:56, Linus Walleij wrote: > On Fri, Nov 18, 2022 at 5:47 PM Konrad Dybcio wrote: > >> 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.. > > If it is only known to affect the Sony Xperias mentioned then > a thing such as: > > if (of_machine_is_compatible("sony,xyz") || > of_machine_is_compatible("sony,zzz")... ) { > // Enforce FW version > } > > would be completely acceptable in my book. It hammers the > problem from the top instead of trying to figure out itsy witsy > details about firmware revisions. > > Yours, > Linus Walleij Actually, I think I came up with a better approach by pulling a page out of Asahi folks' book - please take a look and tell me what you think about this: [1] https://github.com/SoMainline/linux/commit/4b6fccc995cd79109b0dae4e4ab2e48db97695e7 [2] https://github.com/SoMainline/linux/commit/e3ea1dc739634f734104f37fdbed046873921af7 Konrad