From patchwork Tue Mar 15 10:47:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wen Gong X-Patchwork-Id: 551577 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 CEB2AC4332F for ; Tue, 15 Mar 2022 10:49:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347600AbiCOKuT (ORCPT ); Tue, 15 Mar 2022 06:50:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348638AbiCOKtm (ORCPT ); Tue, 15 Mar 2022 06:49:42 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96148340CE for ; Tue, 15 Mar 2022 03:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1647341259; x=1678877259; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ufc0OnB/c0PI5MDoMcglSeec06KUHzS3onL53D/CBEY=; b=LG0vRXe4brYVomwNXpCyC4nyzUbTkCmqbfUcQ7Db0vrDdf2RvYaQAt5f gogbBzRQuBd5jd9tgS+ibqJEoINynluLjEsqSMGKhEUUunS2MyW8l3Aak aw2S9FTc/WYlQrAvlyODpIDSLOD/pMFfv79k2VTSvr+ZyORoxjGXUDvT0 M=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-01.qualcomm.com with ESMTP; 15 Mar 2022 03:47:39 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 03:47:39 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Tue, 15 Mar 2022 03:47:38 -0700 Received: from wgong-HP3-Z230-SFF-Workstation.qca.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 15 Mar 2022 03:47:37 -0700 From: Wen Gong To: CC: , Subject: [PATCH v6 0/2] ath11k: add handler for board-2.bin without variant and read SMBIOS Date: Tue, 15 Mar 2022 06:47:19 -0400 Message-ID: <20220315104721.26649-1-quic_wgong@quicinc.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org v6: 1. rebased to ath.git ath-202203101556 2. add error message if could not find any board data at last. 3. change "ath11k: add read variant from SMBIOS for download board data" for add struct ath11k_smbios_bdf, strlen(), not mix defines and function declarations. v5: 1. rebased to ath.git ath-202112161538 2. fix warning "failed to fetch board data for bus=pci,qmi-chip-id=0,qmi-board-id=255,variant=DE_1901 from ath11k/QCA6390/hw2.0/board-2.bin" v4: 1. add helper function ath11k_core_create_fallback_board_name() 2. rebased to ath.git ath-202112071521 v3: 1. add patch "ath11k: add fallback board name without variant while searching board-2.bin" 2. reabsed to latest ath.git master ath-202111221436 v2: rebased to latest ath.git master ath-202111170737 When it does not have matched board name with variant in board-2.bin, ath11k will fallback to search without variant. Also read the variant from SMBIOS. Wen Gong (2): ath11k: add fallback board name without variant while searching board-2.bin ath11k: add read variant from SMBIOS for download board data drivers/net/wireless/ath/ath11k/core.c | 116 +++++++++++++++++++++++-- drivers/net/wireless/ath/ath11k/core.h | 20 ++++- drivers/net/wireless/ath/ath11k/qmi.c | 4 + 3 files changed, 132 insertions(+), 8 deletions(-) base-commit: d845cf007bdf8b2bf41522e1ecd0eb804e553d57