From patchwork Thu Jul 27 10:04:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 707948 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E8FBC001DC for ; Thu, 27 Jul 2023 10:04:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232422AbjG0KEg (ORCPT ); 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 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