Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp336749lqp; Wed, 12 Jun 2024 03:06:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6m/JCJiCFJg6F36zF5CAdtYW3AQe4m2xTHJJTXmKiSXBYptzSTvjcFBOi1MikkpAAD4G0Mrfh00uTNQS3rjCp6E5EqLlcoBlYfFXHJA== X-Google-Smtp-Source: AGHT+IGEiOJj6jXEIcYWnFgDgUTWwhB44ufS2E566lQxTyZuR4sa7hYh7xDiZDAGYRequWyGZD39 X-Received: by 2002:a05:6358:5699:b0:19f:4ca6:86c8 with SMTP id e5c5f4694b2df-19f69cf6c29mr157774555d.6.1718186774825; Wed, 12 Jun 2024 03:06:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718186774; cv=pass; d=google.com; s=arc-20160816; b=Cg89jqqLuHI3JIJ1s8aHzQm25HOcUMEaGKMn6WavJq2h+p5T91YwbN8n7h8dX3Kz5U qEXSQp2OnsKqMtqhszf0nSkwVNodGme5WGUcVqRp0azeV5n7jwsCKIRqBzJ+zJMDqaEf yZqBMZby/4iwt43RvXbteAQH2ulq8GAjdhV3I5CLshuFyyeLN6WhJ8Df0d6hmz5a+hLZ o/5SwVQtcrF3RTbCOo0/NfenhzpleRcoCWJwhM+0xiu4B8GzPxqx4/JkM30KrzV85Ykp UBU9D53V8UvjeUdcJRN1IvRvKjx1muN77WX83mfpAgBJHBUHN2Rx1Jgiz59HpDuLCydI cUjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7o5lyLDpCnCOWAKSNy5bFFrbCTaImlxo26NRKCBcB40=; fh=1q0vxVNQ2jvDgHU310QfB69uK4CPq93tX9QNg/0Sp/Q=; b=RVFpvbbvvjb8zSC67P3m9V8kibVKLP34cR2qHTRBtOLmKjeHz5UM6vXRTJgCP6O0Q8 n9RwsnMZxH9gH6jo8Q/jnEJph7cZP1q58P8/xE+ecjWlIng7FUYRvwWtSmXStmrcL3+W cEwcQIyuoexrYHb2Rvjbj2r/AhSkGv/7Uw990Q3XkTKvsbMPoW8EThtIDURnB3sRZOuc ywFEt8euqxM7CXAUAboBGIcTMhlCtIE41QT09ByBk9MvQ/IEOG66Vbp9aYYs4WJT//vv tcAsk6vkUSDKJTY8z/VugfyHjGxRzEB1qK6qN4+FuEjzP8KcQckA6rYF7W4JlR6edAdA 8wkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="mgHvjpG/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-211291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e40a05d9f6si8805363a12.39.2024.06.12.03.06.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 03:06:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="mgHvjpG/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-211291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AE498B234FA for ; Wed, 12 Jun 2024 09:46:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 322B716E865; Wed, 12 Jun 2024 09:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mgHvjpG/" Received: from mail-oo1-f53.google.com (mail-oo1-f53.google.com [209.85.161.53]) (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 ABA7216DECC for ; Wed, 12 Jun 2024 09:46:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718185587; cv=none; b=J0KXjyySLt2Yc1ao3V/5gXecCJ969DFSBzG6qQzdZj8rv2LGToJP9Vpb5AR4O5B+Bq1TJSahTUnEj0mtL+NXrhI9MARJJ2Adm2rAzaDxooEjXcn/VQ50TYe46G8R9iWs+RGhHKfio+GBEy779bbiKprWXLWovaaQS3JkT6ecgzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718185587; c=relaxed/simple; bh=W9ndXkFGN+0mJvooAoPTWczE53d1nQ0rmrqRu/keLPo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nI/8+PuWB/iU1QJXtXx1q63kg4G6o8/qFgKsIKPdIRIZGJCPAqbDbETMijxHGugeOXWHSptLnQ35gLSr2n8E5Mfld6x8Ke9fW2b3pZtZ879wJhIjrl3V208haTZKC+63GKy+FlSUwDgVKMJZYfjth3hEfF7TXlSzU4MsHDZAPHY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=mgHvjpG/; arc=none smtp.client-ip=209.85.161.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oo1-f53.google.com with SMTP id 006d021491bc7-5b96a95c5e8so3615315eaf.3 for ; Wed, 12 Jun 2024 02:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718185584; x=1718790384; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=7o5lyLDpCnCOWAKSNy5bFFrbCTaImlxo26NRKCBcB40=; b=mgHvjpG//vBx3LRfzTNfIpoPV3IMScA6Qy2kCT2yyLBX2Ivm6isQLJotFrHcg6kRBN kXzsyraKDq/Y3mTFSLzIsf6/1pyXzJtpSJJphVh0PgnEEHQH5PIu6AUQ64dveFqXldDk bD+m2wHRpDk5v4qCCz2VsmUNS2xPj/UqXjBLmUzgl02GnyN6SOtJNkh/yok2s2MTNNZX xL+I2Idfvbtl4SwqiY+Q0AjoEVMDE7nJOZ4XS4knvaxptrt5h6TAHZZ+9IBVrF7EQfUR jbKRgy6uskUv/B5zJZXsUMDzkmxJatwd5hNFhqrcpvQPiN8rqa59gPLOPbfXWdIChNaR Lsmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718185584; x=1718790384; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7o5lyLDpCnCOWAKSNy5bFFrbCTaImlxo26NRKCBcB40=; b=rabtEAFlj0bv4TjlKJ1cKgkurK6901qd/O70GW5hKi9GvRjuoS2gKXY69pYtTu2+Au KNglb2lxNF4YuJPGmmQHY4yFkzTjjGFyCowJarU6bak6RRH+eRWJ3Jf+mmd/CYADPbG0 KTeSr6gIYcIoLCvnDKoIEEcgQHZiKu2CPVdGhji1NYJb9Ah65F6WklT6MBFs90xiSGvW 3dcAcii0bj2iBfF83Gb6GHhJ0u/ZgPOalp9IhakHdnXo5j6+zfOnMIjARM5P63VjqiXL OA3qBrYKUVt01VmOCSmtV/abwQx8PY5I3nzUbZbBT0mTzm1z2UwSW0hJMbBiPGjYjUya EVkg== X-Forwarded-Encrypted: i=1; AJvYcCXcP/KHB5KTU8mfehxpe9xhwWSvbj6cTD9t1yptfieAQHoH8kPsO6Uuzs6cMYZvk5zVMvzEJwbEt7fo0bJ3my9/wIgRZyTNHsTABTI5 X-Gm-Message-State: AOJu0Yybpv6OQn8XPw1kcmMssGhNQjk5lwZgp1swpqxgietO51ZB1/+v a3UZtVx/b5V6iaI1/47bkjfYSyEJUhorPWNYylffSVZR+EJeLDnjkWaXXZnioQ== X-Received: by 2002:a05:6359:4c9d:b0:19f:48e8:2d with SMTP id e5c5f4694b2df-19f69cf6bbbmr142440955d.5.1718185584205; Wed, 12 Jun 2024 02:46:24 -0700 (PDT) Received: from thinkpad ([120.60.129.29]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6de200849b7sm8803874a12.18.2024.06.12.02.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 02:46:23 -0700 (PDT) Date: Wed, 12 Jun 2024 15:16:09 +0530 From: Manivannan Sadhasivam To: Slark Xiao Cc: loic.poulain@linaro.org, ryazanov.s.a@gmail.com, 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 Subject: Re: [PATCH v2 1/2] bus: mhi: host: Import mux_id item Message-ID: <20240612094609.GA58302@thinkpad> References: <20240612093842.359805-1-slark_xiao@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240612093842.359805-1-slark_xiao@163.com> On Wed, Jun 12, 2024 at 05:38:42PM +0800, Slark Xiao wrote: Subject could be improved: bus: mhi: host: Add configurable mux_id for MBIM mode > For SDX72 MBIM mode, 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 default mux_id value for SDX72. And this value > would be transferred to wwan mbim side. > > Signed-off-by: Slark Xiao > --- > drivers/bus/mhi/host/pci_generic.c | 3 +++ > include/linux/mhi.h | 2 ++ > 2 files changed, 5 insertions(+) > > diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c > index 0b483c7c76a1..9e9adf8320d2 100644 > --- a/drivers/bus/mhi/host/pci_generic.c > +++ b/drivers/bus/mhi/host/pci_generic.c > @@ -53,6 +53,7 @@ struct mhi_pci_dev_info { > unsigned int dma_data_width; > unsigned int mru_default; > bool sideband_wake; > + unsigned int mux_id; > }; > > #define MHI_CHANNEL_CONFIG_UL(ch_num, ch_name, el_count, ev_ring) \ > @@ -469,6 +470,7 @@ static const struct mhi_pci_dev_info mhi_foxconn_sdx72_info = { > .dma_data_width = 32, > .mru_default = 32768, > .sideband_wake = false, > + .mux_id = 112, > }; > > static const struct mhi_channel_config mhi_mv3x_channels[] = { > @@ -1035,6 +1037,7 @@ static int mhi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) > mhi_cntrl->runtime_get = mhi_pci_runtime_get; > mhi_cntrl->runtime_put = mhi_pci_runtime_put; > mhi_cntrl->mru = info->mru_default; > + mhi_cntrl->link_id = info->mux_id; Again, 'link_id' is just a WWAN term. Use 'mux_id' here also. - Mani -- மணிவண்ணன் சதாசிவம்