* [PATCH v1 2/2] net: wwan: Fix SDX72 ping failure issue @ 2024-06-07 10:03 Slark Xiao 2024-06-07 22:28 ` Sergey Ryazanov 0 siblings, 1 reply; 6+ messages in thread From: Slark Xiao @ 2024-06-07 10:03 UTC (permalink / raw) To: loic.poulain, ryazanov.s.a Cc: netdev, linux-kernel, manivannan.sadhasivam, Slark Xiao 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 <slark_xiao@163.com> --- 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); } static void mhi_mbim_remove(struct mhi_device *mhi_dev) -- 2.25.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v1 2/2] net: wwan: Fix SDX72 ping failure issue 2024-06-07 10:03 [PATCH v1 2/2] net: wwan: Fix SDX72 ping failure issue Slark Xiao @ 2024-06-07 22:28 ` Sergey Ryazanov 2024-06-11 1:36 ` Slark Xiao 0 siblings, 1 reply; 6+ messages in thread From: Sergey Ryazanov @ 2024-06-07 22:28 UTC (permalink / raw) To: Slark Xiao, loic.poulain; +Cc: netdev, linux-kernel, manivannan.sadhasivam 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. 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 <slark_xiao@163.com> Since it a but fix, it needs a 'Fixes:' tag. > --- > 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) ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re:Re: [PATCH v1 2/2] net: wwan: Fix SDX72 ping failure issue 2024-06-07 22:28 ` Sergey Ryazanov @ 2024-06-11 1:36 ` Slark Xiao 2024-06-11 22:46 ` Sergey Ryazanov 0 siblings, 1 reply; 6+ messages in thread From: Slark Xiao @ 2024-06-11 1:36 UTC (permalink / raw) To: Sergey Ryazanov, quic_jhugo, Qiang Yu Cc: loic.poulain, netdev, linux-kernel, manivannan.sadhasivam, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org +More maintainer to this second patch list. At 2024-06-08 06:28:48, "Sergey Ryazanov" <ryazanov.s.a@gmail.com> 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 ? >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 <slark_xiao@163.com> > >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/ >> --- >> 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) ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 2/2] net: wwan: Fix SDX72 ping failure issue 2024-06-11 1:36 ` Slark Xiao @ 2024-06-11 22:46 ` Sergey Ryazanov 2024-06-12 3:05 ` Slark Xiao 0 siblings, 1 reply; 6+ messages in thread From: Sergey Ryazanov @ 2024-06-11 22:46 UTC (permalink / raw) To: Slark Xiao, quic_jhugo, Qiang Yu Cc: loic.poulain, netdev, linux-kernel, manivannan.sadhasivam, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org 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" <ryazanov.s.a@gmail.com> 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 <slark_xiao@163.com> >> >> 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re:Re: [PATCH v1 2/2] net: wwan: Fix SDX72 ping failure issue 2024-06-11 22:46 ` Sergey Ryazanov @ 2024-06-12 3:05 ` Slark Xiao 2024-06-12 4:26 ` manivannan.sadhasivam 0 siblings, 1 reply; 6+ messages in thread From: Slark Xiao @ 2024-06-12 3:05 UTC (permalink / raw) To: Sergey Ryazanov, Manivannan Sadhasivam, manivannan.sadhasivam@linaro.org, Loic Poulain Cc: quic_jhugo, Qiang Yu, netdev, linux-kernel, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org At 2024-06-12 06:46:33, "Sergey Ryazanov" <ryazanov.s.a@gmail.com> wrote: >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" <ryazanov.s.a@gmail.com> 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. > Thanks for your detailed explanation. Since this change was modified mainly on mhi side, I prefer to commit it to mhi side. @loic @mani, what's your opinion? >>> 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 <slark_xiao@163.com> >>> >>> 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. > Currently I don't know if my previous commit which has been reviewed still be effective. Since this link_id changes only works for MBIM mode of SDX72. If keeps the commit of [1], then I will update this patch with v2 version which just update the subject . If not, then this SDX72 series would have 3 patches: [1] + first patch + second patch[v2](or 2 patches: combine [1] with first patch + second patch[v2]). Please let me know which solution would be better. Thanks. >>>> --- >>>> 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 [1] - https://lore.kernel.org/lkml/20240520070633.308913-1-slark_xiao@163.com/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: [PATCH v1 2/2] net: wwan: Fix SDX72 ping failure issue 2024-06-12 3:05 ` Slark Xiao @ 2024-06-12 4:26 ` manivannan.sadhasivam 0 siblings, 0 replies; 6+ messages in thread From: manivannan.sadhasivam @ 2024-06-12 4:26 UTC (permalink / raw) To: Slark Xiao Cc: Sergey Ryazanov, Manivannan Sadhasivam, Loic Poulain, quic_jhugo, Qiang Yu, netdev, linux-kernel, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org On Wed, Jun 12, 2024 at 11:05:38AM +0800, Slark Xiao wrote: > > At 2024-06-12 06:46:33, "Sergey Ryazanov" <ryazanov.s.a@gmail.com> wrote: > >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" <ryazanov.s.a@gmail.com> 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. > > > > Thanks for your detailed explanation. > Since this change was modified mainly on mhi side, I prefer to commit it to > mhi side. > @loic @mani, what's your opinion? > There is a build dependency with the MHI patch. So I'll just take both patches through MHI tree once I get an ACK from WWAN maintainers. > >>> 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 <slark_xiao@163.com> > >>> > >>> 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. > > > > Currently I don't know if my previous commit which has been reviewed still > be effective. Since this link_id changes only works for MBIM mode of SDX72. > If keeps the commit of [1], then I will update this patch with v2 version which just update > the subject . If not, then this SDX72 series would have 3 patches: [1] + first patch > + second patch[v2](or 2 patches: combine [1] with first patch + second patch[v2]). > Please let me know which solution would be better. > Just send v2 of both patches. There are some comments in the MHI patch as well. > Thanks. > >>>> --- > >>>> 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? > >>> Yeah, just use link_id directly as it will be 0 by default. - Mani -- மணிவண்ணன் சதாசிவம் ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-06-12 4:27 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-06-07 10:03 [PATCH v1 2/2] net: wwan: Fix SDX72 ping failure issue Slark Xiao 2024-06-07 22:28 ` Sergey Ryazanov 2024-06-11 1:36 ` Slark Xiao 2024-06-11 22:46 ` Sergey Ryazanov 2024-06-12 3:05 ` Slark Xiao 2024-06-12 4:26 ` manivannan.sadhasivam
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).