Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp83083lqp; Tue, 11 Jun 2024 15:46:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqGPkr3p9P4vWNtBi4hWC8GuUfBzwipTYHEyIPSZUQadbJ4coX8bFemQGXh6l6Q13zJ7QaPCgQ2rXNly/Ywe2jbFtfiErnrHOC34KYAA== X-Google-Smtp-Source: AGHT+IH9lE+kb2hzIvqai7eD6xfLc5JTzX/Z2Jr9JRXrvdEkMz5iubeIDis4swqI2iypviDloe8t X-Received: by 2002:a17:906:3e11:b0:a6f:da2:82c2 with SMTP id a640c23a62f3a-a6f47cc1f0cmr4909566b.40.1718145979488; Tue, 11 Jun 2024 15:46:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718145979; cv=pass; d=google.com; s=arc-20160816; b=Idr86VyGkcUP641+iNqVFIr9oxIcL7rCio2M473I48/keVMXtRxbKxiu9pA2B8KzCw iF/aES+UBEhtp6PGMjRI/1fQDWIMOpQoeoxN1uOQjy8ASkcstcYifKTN4ypecM4NRoaq whWiN7Qo9U/8HwKy/SG7tmPeAnloANZeAy7yPWLlsLocCZih2l0ryNCcTW/86a25egLA LrTib6OgFUQL5s7e2gIvyUEsMUkJORDLcC0YU7VjjyvlGBsMV9vCW7vZ21U9cmqfH/Iv AXUKeXEODRd1Olq99ie9T+EQdjsZAwxOKOUZqftJIrU9PqsUuXT2ljEotJ+IX7DV4IXa HOUw== 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=cDt7JzP/wsVoWXx6U+apUWSbCYtUPbPCYm2lOF3PwfU=; fh=po5F+HTyDh8TJdPQg62Sv3HodfhV6j+BgdQ5tqUCiMM=; b=AmbuIvLbGPiNrvw8cO2eUj3Zja5ngdeQhwX6HXUwbR5DFwzNOr4hJ12y6dFNn8Bplu Pm3z938QbMbi0oilb2zSEbPNO6Xpi9QwCObvC6gXViCh/3qPZoKzDU4pUADYTqseIGxa D1NUSlATK68FnhJN3jOS0RwA9WUHCXDSDcLRDLgCu5eCPUI8nOjUWqzV81KNvHKXDZGC Omsj48hTYyv79aQQoqL7ClkaDZxK+kVPrXNssTzgQPHze8VSrbU+x188BcomwcMDRk/7 5t5PdUOq/W1g5wWIKrionSVKZBKWDFwQRIiMgdVeDAZPD90F7rZe0pVskN0zjiJZnrxq eLXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EwzQXKBx; 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-210675-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210675-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f0cf7d405si350456366b.65.2024.06.11.15.46.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 15:46:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210675-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EwzQXKBx; 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-210675-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210675-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 035BB1F22E03 for ; Tue, 11 Jun 2024 22:46:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2696155A39; Tue, 11 Jun 2024 22:46:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EwzQXKBx" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 447CA495E5; Tue, 11 Jun 2024 22:46:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718145963; cv=none; b=i68/xodT+nUFzXeY4eyMpW9MU534K44PSJQOGNBmqqw0K0tYSUmEeh90UE+nhWGQnD56q8O8wPstwNPfF6cqN7CoO1S4sV88pHCs3VvYtdwUa2yaXGvxdOLRAyRl3pi6nab1AwMiTgc7c7mlfyLq/n+y15Q2K03bpukSC//r+tM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718145963; c=relaxed/simple; bh=8a5e6jI6LD77T7UiwIQsyyR5CriP4XU8Bwe7mMBynno=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SNwnEl+nu4DKIMuIyK8k9iMcawCdWWWPOV0q3ItXAC+PvUrln2Xcm7sKvPIhxrnhPhOX2w+ldtgLieSznLpZKI2a/IndNqB16XZHN+jQflOOIZWKIZkg3sZQWbxTv+SpmOlka0j8o/YyZGvwd5OqcOqFSqKcpdoLWaGpm/C2RW0= 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=EwzQXKBx; arc=none smtp.client-ip=209.85.128.52 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-f52.google.com with SMTP id 5b1f17b1804b1-42165f6645fso14129735e9.2; Tue, 11 Jun 2024 15:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718145960; x=1718750760; 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=cDt7JzP/wsVoWXx6U+apUWSbCYtUPbPCYm2lOF3PwfU=; b=EwzQXKBxhHYx7YtG7FOE7lggixfJVqkj2uK1h/tuqfkF/h/+KjcTEu4OOrrXz5ZJg5 McTmIGUP0V760AlW/bJc4d2ScGYloDYRAP2jgbCuuhGEAVG69kJUmXrJrdQATlMI/Rcj GSjnjT5zh7iCHbvgZJI1mKp0Iauqaa5N6TbK7ikdNUyk8yzI4O0PVgcfEr+sjy4MsolU X/SDplxxi0S+RLRdo5eBiM+lexgUZenDM1iC0ZXuyKMkYMhWWATXdCR9BjRAu7CEY8GG JVDsQa4KTkl3IgqDNw8VUn064Jp4JFncCOadQWv5CjQtN0699LeK200carB7o8cSA1UP lR0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718145960; x=1718750760; 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=cDt7JzP/wsVoWXx6U+apUWSbCYtUPbPCYm2lOF3PwfU=; b=gwo3T89Rhb8f+S1TeMGsNQkt9w29es5W6O4tXyvsHgOKF/a5tIS08G2dpIeg1nr6R9 rz9hzJ3eBLAQvMoWb+mQXevdi6E8sMyaP4dMgIsP68+MHy7YgG74HOANNTfPOY4xMwYr 6l+v8jCIBLVkXpjqmK0Wo9lNKkVeGaQYqZO70NR7cf6GDpGBUcf67/zdvOUlUdVOA7GI xqtur+5u6AYgZYrtJh9UK5n2ws850bZrZRXniumwCjyStd9fbmGmn2bciPMFdDCxN3QQ qUFmYJPEHupj7u8GtYFu9+A1UaGdR1saTDADDRpr/rYdRssEVKNfXVlY4/UsCxatYHFs HApQ== X-Forwarded-Encrypted: i=1; AJvYcCWccNK1rwLrcxNuxDMEYRvKvU6QNi3mn3oOPXmJG6OXO59mx5kjXgMn5aCcSl0dc0D0ovdimen4o60777KFPvvhkLOnIvPtD1fMBaiJzv1whYjFCDTcUG4PDmLkGcc2BEode9ZyGpRwZvEI74Jt2OD7JJR9wH1wez7QQ0HxEYqZUSULiw== X-Gm-Message-State: AOJu0YzQ85W7JK9l0iux+JaX0bOwofvmzLH6QpbN4m2rfhijhe/QCL8d AS5SJYKj58s9tUMjF5gsJPKgsXDqIbad101sjNVblKs2c5SSnLun X-Received: by 2002:a05:600c:1d21:b0:421:9cb0:77cb with SMTP id 5b1f17b1804b1-422866bedc3mr2705325e9.40.1718145960308; Tue, 11 Jun 2024 15:46:00 -0700 (PDT) Received: from [192.168.0.5] ([69.6.8.124]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-422874e6b63sm2544005e9.39.2024.06.11.15.45.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jun 2024 15:45:59 -0700 (PDT) Message-ID: Date: Wed, 12 Jun 2024 01:46:33 +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 v1 2/2] net: wwan: Fix SDX72 ping failure issue To: Slark Xiao , quic_jhugo@quicinc.com, Qiang Yu Cc: loic.poulain@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, manivannan.sadhasivam@linaro.org, "mhi@lists.linux.dev" , "linux-arm-msm@vger.kernel.org" References: <20240607100309.453122-1-slark_xiao@163.com> <30d71968-d32d-4121-b221-d95a4cdfedb8@gmail.com> <97a4347.18d5.19004f07932.Coremail.slark_xiao@163.com> Content-Language: en-US From: Sergey Ryazanov In-Reply-To: <97a4347.18d5.19004f07932.Coremail.slark_xiao@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11.06.2024 04:36, Slark Xiao wrote: > +More maintainer to this second patch list. > > At 2024-06-08 06:28:48, "Sergey Ryazanov" wrote: >> Hello Slark, >> >> without the first patch it is close to impossible to understand this >> one. Next time please send such tightly connected patches to both >> mailing lists. >> > Sorry for this mistake since it's my first commit about committing code to 2 > difference area: mhi and mbim. Both the maintainers are difference. > In case a new version commit would be created, I would like to ask if > should I add both side maintainers on these 2 patches ? No worries. We finally got both sides of the puzzle. BTW, looks like the first patch still lacks Linux netdev mailing list in the CC. Usually maintainers are responsible for applying patches to their dedicated repositories (trees), and then eventually for sending them in batch to the main tree. So, if a work consists of two patches, it is better to apply them together to one of the trees. Otherwise, it can cause a build failure in one tree due to lack of required changes that have been applied to other. Sometimes contributors even specify a preferred tree in a cover letter. However, it is still up to maintainers to make a decision which tree is better when a work changes several subsystems. >> On 07.06.2024 13:03, 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. >>> >>> Signed-off-by: Slark Xiao >> >> Since it a but fix, it needs a 'Fixes:' tag. >> > Actually, I thought it's a fix for common SDX72 product. But now I think > it should be only meet for my SDX72 MBIM product. Previous commit > has not been applied. So there is no commit id for "Fixes". > But I think I shall include that patch in V2 version. > Please ref: > https://lore.kernel.org/lkml/20240520070633.308913-1-slark_xiao@163.com/ There are nothing to fix yet. Great. Then you can resend the Foxconn SDX72 introduction work as a series that also includes these mux id changes. Just rename this specific patch to something less terrifying. Mean, remove the "Fix" word from the subject, please. Looks like "net: wwan: mhi: make default data link id configurable" subject also summarize the reason of the change. >>> --- >>> 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..4ca5c845394b 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 ? mhi_dev->mhi_cntrl->link_id : 0); >> >> Is it possible to drop the ternary operator and pass the link_id directly? >> >>> } >>> >>> static void mhi_mbim_remove(struct mhi_device *mhi_dev) -- Sergey