All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Carl Yin(殷张成)" <carl.yin@quectel.com>
To: Greg KH <gregkh@linuxfoundation.org>,
	"hemantk@codeaurora.org" <hemantk@codeaurora.org>
Cc: "manivannan.sadhasivam@linaro.org"
	<manivannan.sadhasivam@linaro.org>,
	"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"jhugo@codeaurora.org" <jhugo@codeaurora.org>,
	"bbhatt@codeaurora.org" <bbhatt@codeaurora.org>,
	"loic.poulain@linaro.org" <loic.poulain@linaro.org>,
	Network Development <netdev@vger.kernel.org>
Subject: Re: [PATCH v17 3/3] bus: mhi: Add userspace client interface driver
Date: Fri, 11 Dec 2020 08:55:53 +0000	[thread overview]
Message-ID: <HK2PR06MB3507DC780B2049EDF3D7254186CA0@HK2PR06MB3507.apcprd06.prod.outlook.com> (raw)

Hi,
	Maybe it is a good idea to take QMI as example. QMI is QUALCOMM private protocol, maybe lots of people do not know what is QMI?
	MHI device can be WIFI device or WWAN device, if it is WIFI device, it is a pure network device, and maybe do not need this driver.
	But for WWAN devices, it support AT/NMEA/QMI/MBIM etc. protocol. And this driver is work for these functions.
	
	There are similar drivers in the kernel for WWAN devices base on USB interface.
	Like drivers/usb/class/cdc-wdm.c (for QMI & MBIM), and drivers/usb/serial/usb_wwan.c (for AT/NMEA)
	For USB WWAN devices, open source softwares libqmi/libmbim/ModemManager/LVFS want to commutate with WWAN devices via above 2 drivers.
	For MHI WWAN devices, these open source software also need such driver.


On 11 Dec 2020 08:44:29, Greg KH wrote:

> On Thu, Dec 10, 2020 at 11:04:11PM -0800, Hemant Kumar wrote:
> > This MHI client driver allows userspace clients to transfer raw data
> > between MHI device and host using standard file operations.
> > Driver instantiates UCI device object which is associated to device
> > file node. UCI device object instantiates UCI channel object when
> > device file node is opened. UCI channel object is used to manage MHI
> > channels by calling MHI core APIs for read and write operations. MHI
> > channels are started as part of device open(). MHI channels remain in
> > start state until last release() is called on UCI device file node.
> > Device file node is created with format
> >
> > /dev/<mhi_device_name>
> >
> > Currently it supports QMI channel. libqmi is userspace MHI client
> > which communicates to a QMI service using QMI channel. libqmi is a
> > glib-based library for talking to WWAN modems and devices which speaks QMI
> protocol.
> > For more information about libqmi please refer
> > https://www.freedesktop.org/wiki/Software/libqmi/
> 
> This says _what_ this is doing, but not _why_.
> 
> Why do you want to circumvent the normal user/kernel apis for this type of
> device and move the normal network handling logic out to userspace?
> What does that help with?  What does the current in-kernel api lack that this
> userspace interface is going to solve, and why can't the in-kernel api solve it
> instead?
> 
> You are pushing a common user/kernel api out of the kernel here, to become
> very device-specific, with no apparent justification as to why this is happening.
> 
> Also, because you are going around the existing network api, I will need the
> networking maintainers to ack this type of patch.
> 
> thanks,
> 
> greg k-h
> 
> 
>

             reply	other threads:[~2020-12-11  8:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-11  8:55 Carl Yin(殷张成) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-11  7:04 [PATCH v17 0/3] userspace MHI client interface driver Hemant Kumar
2020-12-11  7:04 ` [PATCH v17 3/3] bus: mhi: Add userspace " Hemant Kumar
2020-12-11  7:44   ` Greg KH
2020-12-11  8:44     ` Manivannan Sadhasivam
2020-12-11  8:53     ` Loic Poulain
2020-12-11 17:37     ` Dan Williams
2020-12-12  4:08       ` Jakub Kicinski
2020-12-12  6:08         ` Manivannan Sadhasivam
2020-12-14  9:16           ` Daniele Palmas

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=HK2PR06MB3507DC780B2049EDF3D7254186CA0@HK2PR06MB3507.apcprd06.prod.outlook.com \
    --to=carl.yin@quectel.com \
    --cc=bbhatt@codeaurora.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hemantk@codeaurora.org \
    --cc=jhugo@codeaurora.org \
    --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 \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.