From patchwork Mon Nov 25 03:50:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihai Moldovan X-Patchwork-Id: 13884338 X-Patchwork-Delegate: kvalo@adurom.com Received: from mail.ionic.de (ionic.de [145.239.234.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 222D71E517; Mon, 25 Nov 2024 03:51:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=145.239.234.145 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732506720; cv=none; b=LufKyER0kaBdgy6wpdCWs4mwB2UnSqupYaLPIBHYxK6j7zIb+Oem3LMOLQWcH+z6KiUC9R647fzUxvla1Nwi3PJsH/5RUSq6jcp/GrFh/gHfrS5+KG0F90ba8etcljIW1PLJYsMe9jcF2JXbgm6PnlNfICeUfpfCCJqoImB7kew= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732506720; c=relaxed/simple; bh=mwFNh6fCQilCetdqM9GB1/3XnP01zdiqQkD768arI/8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rsQrS1s1mzsbu45lZuUGU1XhTaDqVE7CAFDFuBKSgIyWTmHWDXstydcLcj+z/irCOecoysn46czfozOSDT/VbtcbmVLABT+NRReXYnKn8Fi2LkaCk09WzYkLCgA6rpL2jErENuWhSLR2jKGf99IFO71AbNUYD8/20qx4BQCNClk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ionic.de; spf=pass smtp.mailfrom=ionic.de; dkim=pass (1024-bit key) header.d=ionic.de header.i=@ionic.de header.b=RmytRxVv; arc=none smtp.client-ip=145.239.234.145 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ionic.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ionic.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ionic.de header.i=@ionic.de header.b="RmytRxVv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ionic.de; s=default; t=1732506708; bh=mwFNh6fCQilCetdqM9GB1/3XnP01zdiqQkD768arI/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RmytRxVv1y+Zq5OYaqttZVMLivau0IYhRxwDvVY+ojzSleN2mmJoHmjbxsXymNdoO lVZo9iESVcl4XbItZ/dsRvh08KYDo/4R5l3N0/x+wWh2ORmbHEEb66QNXK+83VpCsV OsgGsH7OXVlNjJDVL7bKj0+w3Z8pTmlXT2Vd0XXk= 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 AFE0E14886FE; Mon, 25 Nov 2024 04:51:48 +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 05/13] soc: qcom: qmi_helpers: add QRTR endpoint ID to qmi_handle Date: Mon, 25 Nov 2024 04:50:20 +0100 Message-ID: <68f8f8e04b6076d8f497f101ecae9c78b128f59b.1732506261.git.ionic@ionic.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Adding this allows us to easily supply an endpoint ID to bind on later on when creating the socket. Signed-off-by: Mihai Moldovan --- include/linux/soc/qcom/qmi.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/soc/qcom/qmi.h b/include/linux/soc/qcom/qmi.h index 469e02d2aa0d..77743c855762 100644 --- a/include/linux/soc/qcom/qmi.h +++ b/include/linux/soc/qcom/qmi.h @@ -212,6 +212,7 @@ struct qmi_msg_handler { * @txns: outstanding transactions * @txn_lock: lock for modifications of @txns * @handlers: list of handlers for incoming messages + * @endpoint_id: QRTR endpoint ID to bind on */ struct qmi_handle { struct socket *sock; @@ -235,6 +236,8 @@ struct qmi_handle { struct mutex txn_lock; const struct qmi_msg_handler *handlers; + + u32 endpoint_id; }; int qmi_add_lookup(struct qmi_handle *qmi, unsigned int service,