Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Sergey Ryazanov <ryazanov.s.a@gmail.com>
To: Loic Poulain <loic.poulain@linaro.org>
Cc: Jiri Pirko <jiri@resnulli.us>,
	Jeffrey Hugo <quic_jhugo@quicinc.com>,
	Jerry Meng <jerry.meng.lk@quectel.com>,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH net-next v2] net: wwan: Add WWAN sahara port type
Date: Fri, 22 Nov 2024 00:48:05 +0200	[thread overview]
Message-ID: <7c3e2575-24ea-4294-a877-59be65e4af5d@gmail.com> (raw)
In-Reply-To: <CAMZdPi_FyvS8c2wA2oqLW5iVPXRrBhFtBU8HOqSdNo0O1+-GUQ@mail.gmail.com>

+Jiri

Hi Loic,

On 21.11.2024 11:08, Loic Poulain wrote:
> On Wed, 20 Nov 2024 at 22:48, Jeffrey Hugo <quic_jhugo@quicinc.com> wrote:
>> On 11/20/2024 1:36 PM, Sergey Ryazanov wrote:
>>> +Manivannan
>>>
>>> Hello Jerry,
>>>
>>> this version looks a way better, still there is one minor thing to
>>> improve. See below.
>>>
>>> Manivannan, Loic, could you advice is it Ok to export that SAHARA port
>>> as is?
>>
>> I'm against this.
>>
>> There is an in-kernel Sahara implementation, which is going to be used
>> by QDU100.  If WWAN is going to own the "SAHARA" MHI channel name, then
>> no one else can use it which will conflict with QDU100.
>>
>> I expect the in-kernel implementation can be leveraged for this.
> 
> Fair enough, actually the same change has already been discussed two
> years ago, and we agreed that it should not be exposed as a WWAN
> control port:
> https://lore.kernel.org/netdev/CAMZdPi_7KGx69s5tFumkswVXiQSdxXZjDXT5f9njRnBNz1k-VA@mail.gmail.com/#t

Thank you for reminding us about that conversation. There you have 
shared a good thought, that the WWAN framework suppose to export mostly 
management ports. And all other debug/dump/reflash features should be 
implemented using corresponding kernel APIs.

Last year, more port types were merged. As part of the T7xx driver 
development. Specifically it were Fastboot, ADB, and MIPC. See:
- 495e7c8e9601 wwan: core: Add WWAN ADB and MIPC port type
- e3caf184107a wwan: core: Add WWAN fastboot port type

If ADB somehow could be considered a management interface. MIPC and 
Fastboot are firmware management interfaces. And I recall a discussion 
regarding the Fastboot implementation and there was a NACK from someone 
from devlink subsystem.

Personally, I prefer the firmware management/debugging operations being 
implemented using a generic kernel API like it was done in IOSM. And we 
are suggesting contributors to use the existing kernel API instead of 
exposing RAW interfaces. On another hand, devlink developers are not 
happy to see this kind of devlink usage.

Loic, do you have any idea how to solve this puzzle? And how do you 
think, shall we do something regarding the already introduced 
Fastboot/ADB/MIPC port types?

--
Sergey

  reply	other threads:[~2024-11-21 22:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20241120093904.8629-1-jerry.meng.lk@quectel.com>
2024-11-20 20:36 ` [PATCH net-next v2] net: wwan: Add WWAN sahara port type Sergey Ryazanov
2024-11-20 21:48   ` Jeffrey Hugo
2024-11-21  9:08     ` Loic Poulain
2024-11-21 22:48       ` Sergey Ryazanov [this message]
2024-11-21 22:53     ` Sergey Ryazanov
2024-11-21 23:02       ` Jeffrey Hugo
2024-11-21 23:43         ` Sergey Ryazanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7c3e2575-24ea-4294-a877-59be65e4af5d@gmail.com \
    --to=ryazanov.s.a@gmail.com \
    --cc=jerry.meng.lk@quectel.com \
    --cc=jiri@resnulli.us \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loic.poulain@linaro.org \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=netdev@vger.kernel.org \
    --cc=quic_jhugo@quicinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox