Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp15067lqq; Wed, 12 Jun 2024 14:53:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2RJwDbUVh6lhGoPus4sCHUpTkmWXk0zVedJaYQxOzQJSWknVlU74KqcVxfmUD+CXsyGPtHfRhDLrfR1ldgE6EFq2os65z/jJdE5HihA== X-Google-Smtp-Source: AGHT+IGYvICGXnzL1nuSsSsVOOgQgxLAO7pgufmXG7HiM9QIBa7HQHure9zA2OVx1vP/pySeBgiO X-Received: by 2002:a05:622a:19a7:b0:43a:f9ea:1fbd with SMTP id d75a77b69052e-4415abe3a1emr40563651cf.18.1718229226136; Wed, 12 Jun 2024 14:53:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718229226; cv=pass; d=google.com; s=arc-20160816; b=k45O0dRSS6qq3W9KM245EpZgaX3onOkReYL0STm31c33M6xwHcxOcP87vQWYseJx40 uogv+P3tIpsmNkcbfsw+USuOfnXTwB7wLxlu0/PDz8ZjSZnMBYdNoJbyqatfknYWN9C0 iD4gVTYBS9UgoVq9w73Pl9AM3nL84m1dXt7mAa2PGMy4hBwzRp72FnC/qWctJr5Jbehw wo2shNRO9WrUymyYZXCTy/nrFAXwE3w0HDElo4GFPMn/Xu7P94b+8e1hBUFPT+BWfx5H 0JIwD05YfU1yGIPWldLjjqjFFBbj2CnJjjcYQF3GUclNiiqQ689XmIgmW14SJm4owY94 NOFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=9pxDQ2xml58KGU++S3MziyUsd0pYxlkTij9Nt+5fCkQ=; fh=McUPX2/0jEI81nbsToA9QJK+30E5bsp7e0YAkstCkpY=; b=ryUofsPSs362VmY6HioqNYC5tJpBVzkvk0roUCv5oPIhjQAoRX7epShkWvi2J89cZS jQnJ8imfx4ZvTCX7X7aC18iWiQWJREVhVCZzovsQ2HIu3r6t9f1LqZz3ts/SrBn2fcoH r/BUg/B9SfNLdyJH0eDhQcT/GX/fJdBiBAitSNkcfcqPBP1Hc+qi+tTsAmyKAm/B+KnV sphfXpAEUOJJYmFAQyBXywskAXr6ipUNetl4GA1na0hmoziHlPbitn2pTzu/BzQFFf+1 anoVeJQvtiOZkY8fe+XFJcuenDSx7bKMc6o4IoToXlt4BtaGbZaruX+/bMiSKBtpS8hr Vl7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kofaZ7Hh; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-212301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-441f2fe34f7si505291cf.581.2024.06.12.14.53.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 14:53:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kofaZ7Hh; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-212301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D58571C2166F for ; Wed, 12 Jun 2024 21:53:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C98C12A14C; Wed, 12 Jun 2024 21:53:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kofaZ7Hh" Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACF4E129E94; Wed, 12 Jun 2024 21:53:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718229213; cv=none; b=KFwssRwTGRfoh+3AcMvIiEASqr0QHZWa/dPMKhxn6DxMnK5V09ILmir7sTfGwyQ2Wpfzpr4wpUKanrv8enulg0ngOXsihZHeaBsAtw7vPoq7nKg2AOErrSXgSuB4BHDXvNb4LoiGklqaH691RoXcysB/sTULfUIRrAeSy28ujq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718229213; c=relaxed/simple; bh=mcJjYHjV++hIvIdWkHyHOgdpiusnN+4IJjaQnk6MVdI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PKt0/pcFoc7C9k1hqk3fvi0bAvHQt25PImI3YjNpcCcCVkNmiUPG8XdBrPX8BfSCZW/eQfvdFlcR/LPkoIsaBgwndbD8gEfNSw0TvX5ysrNFLvo5YnUXP5NSVnRZiFEF68saPxFvFDERJXzWXSqw3hfzCCrDVNp4xjDALUfQpso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kofaZ7Hh; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4217926991fso3908165e9.3; Wed, 12 Jun 2024 14:53:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718229210; x=1718834010; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9pxDQ2xml58KGU++S3MziyUsd0pYxlkTij9Nt+5fCkQ=; b=kofaZ7Hh3eDkmlr2KpMuNhnS+PA02UIOOXea7GEar+k1UZeq22MPbgQNSJVRqqcx2I cLkbJbCFNL18XVWtoCSS/GzQZU/QRlE1qU0i5XwcC9fKZhdB9tUeyF5SkLgziKsFcm5W NJTVjYEplT8ZNTr+0oYqX+Ej/gVAqz5n4xX2ETwWOXC+Qd3hX/lKRL9efoeyCNVltn+s ZWj3J1J2uJrCJpAFz6hzYGJS0iUMoVUzUvFtLbNGLExTlon3LFCanRNzucdB61SxLw+9 UX43ERM7HuCRS9TgMbZQ4OxlCe48foVoPAg8bMFi+KhRZVXVJFBMRtcxWHDDvxWotDfz qwJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718229210; x=1718834010; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9pxDQ2xml58KGU++S3MziyUsd0pYxlkTij9Nt+5fCkQ=; b=UyciX6bT6joU/ap3tWyTZFNkbi0/lPXjRTN+GH2gTsXr3Hv6cBgIc6skvOO84JEFkt Qgaqqo/CsZk62wSCE9XKgEMIQsSIk2uSEhb1kMdu62GeeJaoDP5fLRccOk+gzndaJUwd oVHRHVvDGqynw8evOAOgVU2jRsk1GCN8Hry2vtzb34vUX3PsjZ9MFTSG0P2v2IVfrus2 tt5O5gTRLbT2EQwCSkAtfylavPnJrB8eea52JgLTP/ONTQr8OPld/8W45XRbXf8AjFEW 4TIg+pw9PGlZU1Dw6HIL3bgpEtELlSeOdGZFmuY/5jCWt4CAHYst2KPWpFDnuOPKIGi5 bWdw== X-Forwarded-Encrypted: i=1; AJvYcCVvnBxM5QwdkCqTac45gynk5iaOhx7LZ6StHgbXIR9W4dyffTyU5s5P9kMT12ey8VCWe4/Fm+oSxanLc4Ps50kOVytOO2vIT2kfjzkHIBtHb1W/L6zg5+1nr6j4vAeyCxBhX6LEhg5/zdcjK0ZXHy9D83vNAqVJ6ggYoH2MvBk+XOjYoA== X-Gm-Message-State: AOJu0YxhMk9FW8TGnJGITK7y1iqWQU9VJoQnJvUBSK5mbXoXvVL8P8B6 FuxCYH4S1bjOeRCPamyXduk6/kIJYdTENMGa6Hiph8E1YApyqBKEY2Ytkg== X-Received: by 2002:a05:600c:358b:b0:422:6765:2726 with SMTP id 5b1f17b1804b1-422865ad68fmr27777105e9.30.1718229209883; Wed, 12 Jun 2024 14:53:29 -0700 (PDT) Received: from [192.168.0.5] ([69.6.8.124]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35ef5d2e73dsm17831029f8f.16.2024.06.12.14.53.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jun 2024 14:53:29 -0700 (PDT) Message-ID: <0b24c10f-1c20-4bd1-958b-dbf89cb28792@gmail.com> Date: Thu, 13 Jun 2024 00:54:03 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] net: wwan: mhi: make default data link id configurable To: Slark Xiao , manivannan.sadhasivam@linaro.org Cc: loic.poulain@linaro.org, johannes@sipsolutions.net, quic_jhugo@quicinc.com, netdev@vger.kernel.org, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240612093941.359904-1-slark_xiao@163.com> Content-Language: en-US From: Sergey Ryazanov In-Reply-To: <20240612093941.359904-1-slark_xiao@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello Slark, Manivannan, On 12.06.2024 12:39, Slark Xiao wrote: > For SDX72 MBIM device, it starts data mux id from 112 instead of 0. > This would lead to device can't ping outside successfully. > Also MBIM side would report "bad packet session (112)". > So we add a link id default value for these SDX72 products which > works in MBIM mode. The patch itself looks good to me except a tiny nitpick (see below). Meanwhile, I can not understand when we should merge it. During the V1 discussion, It was mentioned that we need this change specifically for Foxconn SDX72 modem. Without any actual users the configurable default data link id is a dead code. According to the ARM MSM patchwork [1], the main Foxconn SDX72 introducing patch is (a) not yet merged, (b) no more applicable. So, as far as I understand, it should be resend. In this context, a best way to merge the modem support is to prepend the modem introduction patch with these changes forming a series: 1/3: bus: mhi: host: Import mux_id item 2/3: net: wwan: mhi: make default data link id configurable 3/3: bus: mhi: host: Add Foxconn SDX72 related support And merge the series as whole, when everything will be ready. This will help us to avoid partially merged work and will keep the modem support introduction clear. Manivannan, could you share the main [1] Foxconn SDX72 introduction patch status, and your thoughts regarding the merging process? 1. https://patchwork.kernel.org/project/linux-arm-msm/patch/20240520070633.308913-1-slark_xiao@163.com/ > Signed-off-by: Slark Xiao > --- > drivers/net/wwan/mhi_wwan_mbim.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/wwan/mhi_wwan_mbim.c b/drivers/net/wwan/mhi_wwan_mbim.c > index 3f72ae943b29..c731fe20814f 100644 > --- a/drivers/net/wwan/mhi_wwan_mbim.c > +++ b/drivers/net/wwan/mhi_wwan_mbim.c > @@ -618,7 +618,8 @@ static int mhi_mbim_probe(struct mhi_device *mhi_dev, const struct mhi_device_id > mbim->rx_queue_sz = mhi_get_free_desc_count(mhi_dev, DMA_FROM_DEVICE); > > /* Register wwan link ops with MHI controller representing WWAN instance */ > - return wwan_register_ops(&cntrl->mhi_dev->dev, &mhi_mbim_wwan_ops, mbim, 0); > + return wwan_register_ops(&cntrl->mhi_dev->dev, &mhi_mbim_wwan_ops, mbim, > + mhi_dev->mhi_cntrl->link_id); Just a nitpick. The second line had better be aligned with the opening bracket: return wwan_register_ops(&cntrl->... mhi_dev->... > } > > static void mhi_mbim_remove(struct mhi_device *mhi_dev) -- Sergey