From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793050494; b=DLBnlndV1GZ/6chijv7W1r/Ou4SL/NhAGsrn/5xukh7xFhi7WGcsay6fNMhxnL3IYk1u D96PSUtRwAlBJleVazfk1im2xEf3Aav/061E0x92t8aZ7O5pEMSz1qyEjIHBJHNo9PB1N DA8maMTvf0F0xYEzuyLSwH3GpyTbdyogJASFmRuhm9dQy0XrefdLd16337JyAevC7hSeB VBnyliG2rw98h+tZTAa2otG8ycIUC+CrSzXR4TFE5dlXsG2riugNrBcCs3cRwZJKX80gi CTyZK2ls0gBdLhuhwpnLxWlizU9Ae5MLgXkOvg9XDf36QeBqypVEvHxJVmOXFBvHj3Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793050494; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Proofpoint-GUID:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-ORIG-GUID:X-Authority-Analysis:X-Proofpoint-Spam-Info: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=5AZPPtzzlblW2grqxtek7t12IpTUi7Y5NH5yRWBx6eE=; b=1URTct0VMuGnht618z/c15IQwPkvqhYu84qB60IDDg+/e8gYWMFjdVpMw0yD+6Mt+lHw o3QkcAvP+rA32JPlNEFaR1OKtG8DDadeXtkpawBWtqWooUB6dnOKBIxwD02qRgIjMu+04 W/eF4KQIZXQZvNY9heGORSGPPR5wHhWacmvBf+gYHx8BtWnCdzUymsqv+pHISXscfGnRq 02klWj0rwCyhP5pbCbWYMhRpSBm186AsxCRJY0/Go5XM3p575N28159SD6Ugla4YNUQLP pabMIXZ2hKSF0P3UkPRdbifppF2iDbDv3jJpJdspL4PE7a/9URtCRBXrdKnpvOb2cWg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=HoIsvugY; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b="N2kH40/0"; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A52A7606A32F for ; Mon, 26 Oct 2026 21:34:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A52A7606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=HoIsvugY; dkim=pass (2048-bit key, unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=N2kH40/0 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69QIo0Hj3218456 for ; Mon, 26 Oct 2026 21:34:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 5AZPPtzzlblW2grqxtek7t12IpTUi7Y5NH5yRWBx6eE=; b=HoIsvugYpfR2kurM 7moKV8A6qIoWdgk6vO62Y0XvO2l47gFJR1mF0uNBeuvfXRzORgBKfHL0XK/kqgJv g0zMTPxc4P3OOV32SQxh5Hw/E003SKwOWH4tii7T984lqbzRljK3qWEyL2efPXVF mLAo1yJWXCtMuQ6phXfb9kgT9wsuVpIH/l4KHx53iuiGH9tIivuVKCCI9WkuA5XZ 9zmROKtzWhd1nItZuwG92blqd8o991q6HOQ1yu2dVTP71Es9+R1OSPlJTexdoHih UmVmpzCColCzIwREDs6C/4bq3eSk4tjNCiYrIaMAtZ2c6bX5Kdhv+AdwfnfET7jz ibpUHA== Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hj3u62tcv-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 26 Oct 2026 21:34:52 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-3552883bd19so3123738eec.1 for ; Mon, 26 Oct 2026 14:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793050492; x=1793655292; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=5AZPPtzzlblW2grqxtek7t12IpTUi7Y5NH5yRWBx6eE=; b=N2kH40/0lXNgyn0/nx1znHabA0rrQd/JY8AJmXwDNMkxf0d1ZxwxIgCyNGrVH+fhoC JwupQL7jEsmMLAtELSfuXFkm1Sd1hTaGip5YeAuewwfBh5dGeytogq8je02dT1C7ro9j accDQ0KhnTkvP9eanvBDwtgdjL2zlS8mTv3bjHSSBzqScuS13fb5qNeB5Tbw5iWzGch/ Si6Xf1QX1qlS3ckn6Nf/c1Sbh/23XzrJlVdfXPu6KA59RXqkAFKUm1LPH9iGWczcHdFs bqIwekfKmklbfSNZWYVw1Tj66rjIOU2Jjydh5pe3tob1UpFPy1QsJZ3omm7BuTshS7zV LcFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793050492; x=1793655292; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=5AZPPtzzlblW2grqxtek7t12IpTUi7Y5NH5yRWBx6eE=; b=KcE6TBccNIeYCZjhZhDHwBJ9cPwZmV7nv/hwxAL/eBeA5p6AOgKE6NrderVkhvD+Zw tKLYGgG+orCOpzfhIcsGdKuapdfIRV7GVcWriM/6aJt7Q0vdWdAOQ4o55D6pToxYRl57 Kzs7QFONCJc5VaDNNZ5qVudHWgJ8VhE9+LakOVghyWPsgAmc7q9bUxUIOIU6xJymlLye B7cyFAhwcCnpDommldVouS+qEWRR/bNKT8DQEpidUVmXN/DVIT0jyMYa5thkaXodX19S /vK1J1WfMBe2Y7LgYqtqXYksHoUAbzy1kNWFyzwCLZKkey128GBt24s/ndmBiJ487FlO 2p7g== X-Forwarded-Encrypted: i=1; AKwUvBykEsh5uAPaTGA6qDQeZz3dySvIpCfZ3a9Oac9MVcRJNa3inE3X7uHLB7G2sj3mrKGin25RqrU=@vger.kernel.org X-Gm-Message-State: AFq9FYJUdFMm+U/cWDyMEAZSU3ydUyEMQPwuQfc68zRp44l80EOZl0yP 0aweGMop2wUZmw0QBLqa2ppdnU2UzS2ICMg3tOD2DwS6CcDUswrsw0Uu5i34GmmLLVjWvIxaxjg L/DVvsYxmMoZiZYI+6YN0JA5q/MFPmtpOL2Olxbfy8s57MOPAZKBRe/Ywrik= X-Gm-Gg: AYBFou03zqoqr7oeM+/6UVG0blt2nnC8Kh5yKvhhrHZtMPBOwfNusNvkplgaDD8bm+H f4vOV6Qyv7wdsXmUT1pgBWpxIGGuRYuG0mNAMOPwhjJsTHgEuqWaLmSg0WNEsABTqa7AyOnTNyZ BvKkSseMvLjFBzSInvNDmSY+5akozJkqMsMTG21Hw7NweFW+f+kMuuXNxA8WFfkvb4ixhaYXjgJ sBDbLw698/foPX2NwfwGlrU2mdgljKTXT57dad65PeVYZZjztt4ZSL+TZoX3XZ8eAtqjJzx9/GK e+jTIeZ4++cJ8j3xKT/ldqcQnFMPMRTzFfyfNzfXKGk3Nxr0yrLM1TU7m6HbC92o/wDHFJtJqOR 2KWKLV0emLQwTr2yVa7A13AuCQjmsLNozwMevRUcC2UIDwwWD5a0p96zmig== X-Received: by 2002:a05:693c:42d0:b0:35d:4185:5395 with SMTP id 5a478bee46e88-369e845b094mr12574854eec.16.1793050491903; Mon, 26 Oct 2026 14:34:51 -0700 (PDT) X-Received: by 2002:a05:693c:42d0:b0:35d:4185:5395 with SMTP id 5a478bee46e88-369e845b094mr12574790eec.16.1793050491179; Mon, 26 Oct 2026 14:34:51 -0700 (PDT) Received: from [192.168.1.20] (33.sub-75-218-193.myvzw.com. [75.218.193.33]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-369e8d93663sm32084643eec.13.2026.10.26.14.34.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Oct 2026 14:34:50 -0700 (PDT) Message-ID: <4e206a12-1796-4179-a72d-cf33f0864819@oss.qualcomm.com> Date: Mon, 26 Oct 2026 14:34:49 -0700 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 4/4] wifi: ath12k: Connect to the QMI server belonging to the device owned by this driver To: manivannan.sadhasivam@oss.qualcomm.com, Manivannan Sadhasivam , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Jeff Johnson Cc: linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, ath12k@lists.infradead.org, Bjorn Andersson , Chris Lew , Deepak Kumar Singh , Raj Kumar Bhagat , Juha-Matti Tilli , Jeff Hugo References: <20261022-qrtr-multi-ep-v4-0-c6fdb75fcd3e@oss.qualcomm.com> <20261022-qrtr-multi-ep-v4-4-c6fdb75fcd3e@oss.qualcomm.com> From: Jeff Johnson Content-Language: en-US In-Reply-To: <20261022-qrtr-multi-ep-v4-4-c6fdb75fcd3e@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: JJsPfzB6laS0Fg-21oVFe9AzYi7YVhS7 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI2MDA4NiBTYWx0ZWRfX6McZf3FrnLIP W2FjuS6zsw38fTqMgVJqOIumLFUZiPHjLpJXkM2J7t+qVPJY/hnjV03Bs7oi7qZBeFU1Q8IwYJT Rojn6U01wapD0sHuUPfab/KSa6pytFJAkz8ckNEmREUMDuUfRy15snVHf1qF8gq5l1YsZervXST /eF57myKEBIgzb+HQMaOYHKgqa82Rg7Q+ZfW0bfjqS5HtedNkHG4ZLZsSEjW5bQssnQWUBFZtM1 8ypO7u36N3G/qnW9cH6O2jwbzwjqhFqtsChH1QExsACX0FvTwwHEGn8+RTaXFBcnQ1ln+bWqaP5 uLSmnD/2uxBuK2G5G0gwKdAfE5rX+BrA09OO3B2Vqt1Eh1cO6nLggxnt35wGeeuzFX+MUuTJ2H/ PLImyBASxu7ZyWk2Z8vv5qQmrGqjj+ndgF0/szotw1GnT10Jr4LXBRDnE0jYQs/NUvJQwjQykH3 VMLmhajhZ6IqhKykPRA== X-Proofpoint-ORIG-GUID: JJsPfzB6laS0Fg-21oVFe9AzYi7YVhS7 X-Authority-Analysis: v=2.4 cv=K823jCWI c=1 sm=1 tr=0 ts=6adfc77c cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=AnolQpdaNwb4XK4FG+QP+g==:17 a=bQg6oyjaoxrshYPP:21 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=EUspDBNiAAAA:8 a=HQsDcwHZmgEkHUxyrjcA:9 a=QEXdDO2ut3YA:10 a=PxkB5W3o20Ba91AHUih5:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI2MDA4NiBTYWx0ZWRfXyBpHM6te00PB SkXGY4lqdE0Wz4oKkg1iFyH25UCVRAJujB17nsNkhSKaczDJU06yrUNvycz15qBvDubyNXBLVSY pfP9SpEQYzXt6gIFjyUYz7LQaU0cFbg= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-26_04,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 spamscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 adultscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610260086 On 10/22/2026 10:43 AM, Manivannan Sadhasivam via B4 Relay wrote: > diff --git a/drivers/net/wireless/ath/ath12k/pci.c b/drivers/net/wireless/ath/ath12k/pci.c > index 6441927b5382..9b6108c1abdc 100644 > --- a/drivers/net/wireless/ath/ath12k/pci.c > +++ b/drivers/net/wireless/ath/ath12k/pci.c > @@ -10,6 +10,7 @@ > #include > #include > #include > +#include > > #include "pci.h" > #include "core.h" > @@ -1491,6 +1492,13 @@ static int ath12k_pci_panic_handler(struct ath12k_base *ab) > return NOTIFY_OK; > } > > +static unsigned int ath12k_pci_get_qrtr_node_id(struct ath12k_base *ab) > +{ > + struct ath12k_pci *ab_pci = ath12k_pci_priv(ab); > + > + return qrtr_host_node_id(ab_pci->mhi_ctrl->index); > +} > + note this hunk has a trivial conflict with current ath12k that landed during the merge window since the ath12k_pci_panic_handler() that is part of the context has been removed > static const struct ath12k_hif_ops ath12k_pci_hif_ops = { > .start = ath12k_pci_start, > .stop = ath12k_pci_stop, ... > diff --git a/drivers/net/wireless/ath/ath12k/qmi.c b/drivers/net/wireless/ath/ath12k/qmi.c > index 280e50a1f31d..507062068f8e 100644 > --- a/drivers/net/wireless/ath/ath12k/qmi.c > +++ b/drivers/net/wireless/ath/ath12k/qmi.c > @@ -9,6 +9,7 @@ > #include "qmi.h" > #include "core.h" > #include "debug.h" > +#include "hif.h" > #include > #include > #include > @@ -3940,8 +3941,18 @@ static int ath12k_qmi_ops_new_server(struct qmi_handle *qmi_hdl, > struct ath12k_qmi *qmi = container_of(qmi_hdl, struct ath12k_qmi, handle); > struct ath12k_base *ab = qmi->ab; > struct sockaddr_qrtr *sq = &qmi->sq; > + unsigned int node_id; > int ret; > > + /* Identical devices advertise the same QMI services, so connect only to note that networking code no longer uses this block comment style, so it is preferred to have /* on a line by itself > + * the QMI server on this device's node. A node id of 0 means the > + * transport has not assigned a unique node id, so accept the server > + * unfiltered. > + */ > + node_id = ath12k_hif_get_qrtr_node_id(ab); > + if (node_id && service->node != node_id) > + return -EINVAL; > + > sq->sq_family = AF_QIPCRTR; > sq->sq_node = service->node; > sq->sq_port = service->port; > Since the requested merge strategy is for netdev to take the entire series: Acked-by: Jeff Johnson