Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp363426pxu; Fri, 11 Dec 2020 04:18:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXHx4rydpd6qwjI2EHpo7JHPNCR8ixsM/prsN1GdDnCi5245GswMUtTZG7NMiZRYz5Mpn0 X-Received: by 2002:a17:906:b7cc:: with SMTP id fy12mr10709277ejb.44.1607689087013; Fri, 11 Dec 2020 04:18:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607689087; cv=none; d=google.com; s=arc-20160816; b=XgiKXAZsmThxfRaW9JAzcCvJwFHW9xtYYM+sMx9YnN4mTLl23c1m6Tb4QQ6J+oAMF7 CxRnlhLjO3JMvRjULdziqQAx/hXg/GXeqG89smj6LKJrkfNAV2e06UVbEWmrf9yuWENk uYT/xR2F0NuVr9gMo2NiJQoC8g9D73nPQBZhy6OSJx/VgYAfGcJ/iYKoMfaD2OGnJAUo rYOudkFx4YmKl7FBQm6PKV3LvoTljP94ZTn8fx3XHNJJIkN/oZEjtv9jF0XCVNdXo8wX P0PKp+K+Mabuxjf1mzNXtOCPn7c9IP72cPDtGoGSjNRofUksGV3ww9hYfW6Q8mZh/L4i vuqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=C2Ff3X7GVZmdeAdMvhgYyNaGsEUNVwOKgh0Ammgirg0=; b=O+UTgy4g2Z8Cso0PGXMJE01yDcfQDiPEKcb/P51mbriGSL+lzmrbmQu/dCxyPOvKxr pgrcYrmH5cU6mAvRxPm2UVSiGWc8L0dllGRbWNnWJdJhp1K3HFUyE6uMdVb8HLYgT9lo yyr1LceuvlIG96dAGisn+VsbsM0tcAGCs4SLyVEbDiTd0OsTnZ41aMFNRfEak8OeoWF0 tSEobvCUzVg4/gspM1qZ8W5odU4H/azMeRFHJU6UFktH+mjvi0NVLi/g1sEVQK+bAe6O YTTbhuFVqucRk2VYeGys2KUIM8KqUDGM0QqLvHR1WW6Rl8q+cGHQboCppIoq21daFRdO q1LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kq6RNr9K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si4417916ejd.577.2020.12.11.04.17.44; Fri, 11 Dec 2020 04:18:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kq6RNr9K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436783AbgLKHpm (ORCPT + 99 others); Fri, 11 Dec 2020 02:45:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:43572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388543AbgLKHpO (ORCPT ); Fri, 11 Dec 2020 02:45:14 -0500 Date: Fri, 11 Dec 2020 08:44:29 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1607672673; bh=PZae96WnzP1vFvimEKQ4F1bK4K9OLoigPkcKSSQwLH4=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=kq6RNr9KfH8w+TGmzkcsVjLHeySDeronzNAmnz9KZS70WZK4wfwZGOs1JfC61Ad/8 ImdBkVj15V08R3zgPk0LoCpvA5Q3nLMg3/lUMKZ4pnYh7QkhqFvw1nszhqscE8aiyJ gq4VRhmB0iBvuGzk7SF9AdsrNFM8anu9KPmjIOes= From: Greg KH To: Hemant Kumar Cc: manivannan.sadhasivam@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, jhugo@codeaurora.org, bbhatt@codeaurora.org, loic.poulain@linaro.org, netdev@vger.kernel.org Subject: Re: [PATCH v17 3/3] bus: mhi: Add userspace client interface driver Message-ID: References: <1607670251-31733-1-git-send-email-hemantk@codeaurora.org> <1607670251-31733-4-git-send-email-hemantk@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1607670251-31733-4-git-send-email-hemantk@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/ > > 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