From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9AE55D3B7D1 for ; Mon, 25 Nov 2024 03:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OEM3EH4vzlkezOl2E547niqwtVbwX3gJG5M5C93K9S4=; b=B37/inCvQ7EsCJ/4VI57q1lj0q 1Y1z7HA9oKAndYM+nqO47c1j0pE7JWJ2fAlyFoJqkYMfNrj8wYQCrGSc9ZgJTwCPve/R8AjkPTAiP TECMET9Wnbx4Zqvj/xBwJXHNsruOJjwEXjo621XL737W1TkR8QDiD+EUSNeL4+csHlcXN9KgVWzny CZzN1xbXJg01pdFSJVtZK+qPb6LPb6T4Auk7AowtLOZr/WRwgn7lQhKlPPC+FnRG1K+4/DMMktK37 OvyCwNQKyVYHhA7vT9T2S7LPYfHpLxk/hfD8iOLkD5/Dp6vtSKybjb3/aBS4QK/oGImaOX9cMHRUG xdHMyZnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFQ8u-00000006zQa-1ap4 for ath12k@archiver.kernel.org; Mon, 25 Nov 2024 03:52:08 +0000 Received: from ionic.de ([145.239.234.145] helo=mail.ionic.de) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFQ8i-00000006z8z-2TDL; Mon, 25 Nov 2024 03:51:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ionic.de; s=default; t=1732506710; bh=fJ5/+15P5dhrg0NMpWbzGLjNOdGkm1v3b3nKjUFCfBQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KJ31EhwnYD76oavNBBm9KGk+rzzdk5vr7S88kThmlZqyh1was+kU4MlGhcUrYGBZZ vM9cMj+Ep6Eki1O/51oLN/objlSkIiXMFJTedI3oMTmojLX1HJKiJ8E47gyKpVl4t2 Um0f3q5y7o1NuucgQaM4oam5OCSnrzog5OpbKZl0= Received: from grml.local.home.ionic.de (unknown [IPv6:2a00:11:fb41:7a00:21b:21ff:fe5e:dddc]) by mail.ionic.de (Postfix) with ESMTPSA id 415731488716; Mon, 25 Nov 2024 04:51:50 +0100 (CET) From: Mihai Moldovan To: ath11k@lists.infradead.org, ath12k@lists.infradead.org, Kalle Valo , Jeff Johnson , Manivannan Sadhasivam Cc: Bjorn Andersson , Konrad Dybcio , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org Subject: [RFC] [PATCH v2 11/13] wifi: ath12k: add QRTR endpoint ID hif feature Date: Mon, 25 Nov 2024 04:50:26 +0100 Message-ID: <64ef55cbae887d07b3d4452db2f1fa8d0b0602c0.1732506261.git.ionic@ionic.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241124_195157_520768_966CF604 X-CRM114-Status: UNSURE ( 8.22 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath12k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath12k" Errors-To: ath12k-bounces+ath12k=archiver.kernel.org@lists.infradead.org This will allow fetching the QRTR endpoint ID via hardware-specific means. Signed-off-by: Mihai Moldovan --- drivers/net/wireless/ath/ath12k/hif.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/wireless/ath/ath12k/hif.h b/drivers/net/wireless/ath/ath12k/hif.h index e8840fab6061..fcf055c8dae2 100644 --- a/drivers/net/wireless/ath/ath12k/hif.h +++ b/drivers/net/wireless/ath/ath12k/hif.h @@ -32,6 +32,7 @@ struct ath12k_hif_ops { void (*get_ce_msi_idx)(struct ath12k_base *ab, u32 ce_id, u32 *msi_idx); int (*panic_handler)(struct ath12k_base *ab); void (*coredump_download)(struct ath12k_base *ab); + int (*set_qrtr_endpoint_id)(struct ath12k_base *ab); }; static inline int ath12k_hif_map_service_to_pipe(struct ath12k_base *ab, u16 service_id, @@ -162,4 +163,13 @@ static inline void ath12k_hif_coredump_download(struct ath12k_base *ab) if (ab->hif.ops->coredump_download) ab->hif.ops->coredump_download(ab); } + +static inline int ath12k_hif_set_qrtr_endpoint_id(struct ath12k_base *ab) +{ + if (!ab->hif.ops->set_qrtr_endpoint_id) + return -EOPNOTSUPP; + else + return ab->hif.ops->set_qrtr_endpoint_id(ab); +} + #endif /* ATH12K_HIF_H */ -- 2.45.2