Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2172444rwb; Thu, 27 Jul 2023 03:19:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlHGJYJ02X34qe+ULTRzHBsxOn6mgU71b81JXvuZqW5aBMxqVphaGuRsEzeRjzJ8HNAxOunf X-Received: by 2002:a05:6808:2a68:b0:3a4:9ae9:f21a with SMTP id fu8-20020a0568082a6800b003a49ae9f21amr2523156oib.32.1690453195824; Thu, 27 Jul 2023 03:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690453195; cv=none; d=google.com; s=arc-20160816; b=m47MoYEB14nC41Nosn/rwOxsCsKpniTZpZW98xX9L4RKMDFtVGUS1sX1XM7y4A6IRA VpSvZkIBuFJocHSfzJIcD7/C3PB3Gji2j5gOAsgyCUwrJ6AxOtG34ZaCWVwRoJHZDD3H iXJjwGgRTOSbyo4J/Fz5F3z7XIFBWAN2D7BItd3HnsX5zzVU4/Z2TsmxkjxxQSOwkL0T b5K+dUCeIiPPjJWxGPfzfoGVSLHrmXqGmDW+b1W9FuyDugvAGTHsPLenR/gNBUObUNe8 TAC2uxJFgXHIgSHq84Q2L+DDVIVVrmVbJTl7T9O/niC8ns34wL0ajcrCKJL55hbZo1Mx ZB8Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=UQJfEDfik51tnF/xu2chIkABgDalKgfEywtVUmihk2s=; fh=d3YrhS+XW2ZvkQqinvugDj/c4x/RSFzdXYeNCXlHhfg=; b=BuOXKTE6+JtCRmIqE2uVnWxS86sfEPE0ymI1baDiGocR1phH1YN6GpL9nHpadw9Ggm 6uUPqleaSGytt1tu9B+9XgrG9OYbLfXA+Ydy37oSdVpMGXhJSjqBwi43S1qnIa/PiRpT YXhheSS1Z4KCbFTAgg6rfRTtfIVXJdmwHDkDL1YyNi1NVnPm2GIffcM3DDJGUh7JcukP iQcF1bFk2I8FUl0/tAJjS5cWr8Ds58n7Gq5ErWMj0HKjldgrAQz2Gv+Xu+dKXZVKWDjc NP403u83DZkExJv8ZS4aJHWDzU3zsrtjTK4uXx3OshC44oAYavRlRYAbOHGrH6ZAzJJE ZPuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qNO+jbEs; 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 z125-20020a633383000000b0056401aefc55si646653pgz.240.2023.07.27.03.19.43; Thu, 27 Jul 2023 03:19:55 -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=qNO+jbEs; 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 S232422AbjG0KEg (ORCPT + 58 others); Thu, 27 Jul 2023 06:04:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232380AbjG0KEf (ORCPT ); Thu, 27 Jul 2023 06:04:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45F2813D for ; Thu, 27 Jul 2023 03:04:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CEB3361E0A for ; Thu, 27 Jul 2023 10:04:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B92DC433C7; Thu, 27 Jul 2023 10:04:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690452273; bh=VvxorfFjHb3zIR2wfuiAdZuvChNDahN8yMlJek4Epsk=; h=From:To:Cc:Subject:Date:From; b=qNO+jbEsjthVmwiMqTqCKzykRbuabYL2IjAnuiyzhya934fbR1Cub3t6Gp6vD8vbp 4gIFCoM+ZBsYefFlvfBQcfIMCtO5E0yAyM4ocQhu/LUkb84Viagt7Wju3tm7aYZL9G 1ghd5Cl0xSlkOO2kttbFSXPVR/DR93VAcYMf1jQMu6VS47mP4NB7kTtD3fQtYfCD62 NPXHJ7wM7jsRPcfXaboRlogQcitmrByEm/1oSDyTmi8nUN7xATmbklcaOgzTBi/Vk/ 497TNl8W76tOBoSIRztvszlTg5ovPld7pRDwhaV04g6JnwW7OjBAGkkPnlX66jAeCl 5ekAK5lhDJHLA== From: Kalle Valo To: mhi@lists.linux.dev Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 0/3] wifi: ath11k: support firmware-2.bin Date: Thu, 27 Jul 2023 13:04:27 +0300 Message-Id: <20230727100430.3603551-1-kvalo@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Kalle Valo We need firmware-2.bin support in ath11k so that we can add ath11k specific meta data to firmware releases, for example feature flags so that ath11k can automatically detect what features the firmware release supports. Also makes it easier and more reliable to update the firmware for PCI devices as it's not possible to mix firmware files, everything will be in one file. Please review and comment. v4: * patch 1: document in struct struct mhi_controller_config::fw_data the fbc_download requirement (Jeffrey) v3: https://patchwork.kernel.org/project/linux-wireless/list/?series=752266&state=*&order=date * patch 1: add "bus: mhi: host: ..." to title * patch 1: add a comment to mhi_fw_load_handler() * patch 1: check sbl_size * patch 3: for smooth backwards compatibility don't print an error "failed to load firmware-2.bin: -2" v2: https://patchwork.kernel.org/project/linux-wireless/list/?series=727935&state=*&order=date * mhi_fw_load_handler(): fold two lines into one * struct mhi_controller_config: document that fbc_download needs to be set * run pahole struct mhi_controller_config v1: https://patchwork.kernel.org/project/linux-wireless/list/?series=710862&state=*&order=date Anilkumar Kolli (1): wifi: ath11k: add firmware-2.bin support Kalle Valo (2): bus: mhi: host: allow MHI client drivers to provide the firmware via a pointer wifi: ath11k: qmi: refactor ath11k_qmi_m3_load() drivers/bus/mhi/host/boot.c | 34 +++-- drivers/net/wireless/ath/ath11k/Makefile | 3 +- drivers/net/wireless/ath/ath11k/core.c | 8 ++ drivers/net/wireless/ath/ath11k/core.h | 15 +++ drivers/net/wireless/ath/ath11k/fw.c | 157 +++++++++++++++++++++++ drivers/net/wireless/ath/ath11k/fw.h | 27 ++++ drivers/net/wireless/ath/ath11k/mhi.c | 18 ++- drivers/net/wireless/ath/ath11k/qmi.c | 54 +++++--- include/linux/mhi.h | 6 + 9 files changed, 289 insertions(+), 33 deletions(-) create mode 100644 drivers/net/wireless/ath/ath11k/fw.c create mode 100644 drivers/net/wireless/ath/ath11k/fw.h base-commit: 9102ee8eaa6d29624ed2068396502ad8545f2ff0 -- 2.39.2