Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp523861pxb; Wed, 3 Feb 2021 10:43:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3gfkNfAxrh+xcf2LVijoZbbLmF+cNo8cS5gFo0p0c1RM3ouvfx0SqdUuyYSoukDvUHwrj X-Received: by 2002:a17:906:d214:: with SMTP id w20mr4605109ejz.284.1612377790160; Wed, 03 Feb 2021 10:43:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612377790; cv=none; d=google.com; s=arc-20160816; b=PG5WoXFXYliAuB4bF66RT9xFbv6kzrl7UrwGJDxRWEmh9p508OMD/NeuCLkEUxkZiX A6DPdtGL23EW12HAZ2GpOVirW8mkvVDoynHK0rEWiN/YKAGDIY4lSFmQgdKKXP9/rdXM rZ0uNJ+jZJhrvaKwJvXtXuj2D4mBUtusLWDx1Ch54wu+wN7woDcae0AsgLd35lBD08U4 tHJqo5kNtrZ5kWRzVpaaq+xVZMTtn9mhBW8pDWplB8EZWjLlw/dSGq7wjBrKBRe5ZJb2 +3RzCgEevUipF/0C+U2r1ye6Inb5AcQXY/6kqAWzPeLKcb5/YqDdLIH97gXtiBvbdESH mT3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=XaM+/sWbuA2CgMsCxoQ59gnEGQF/OF9600mFoPcEjXc=; b=itZesKuFWP+DVqk4Serhx9S9aZUbnrZGy30FqPxW3OHLETTcL9bfkwTNLdhYEZc9Ly OsBA4D2dfC+LoLrifLlNL+CHY/UYP1NWfSDlIxxofnWWSGxUDfVf93IsK4mYB8/RXwir ZTpSZfx7WDDL0QDzVizCquJ26lDb7q5izxlbqOwKOzekbJF8K9m22+x4cYOoSZM0vdQm O69VDL2mQVCZA39JQpTndHGccqhLLT7IsvbK4+RwnoLNVB4+tbw1iRbP0BMikk3Kt9FK OlqjlXJ5l0k4eXuzCqzqg3JjKYyuvtFINq1vf6N8zZ11ahBmol2vqDpWe/QGKwNkcJ+e k3wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tz9oqbTh; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb8si2415730edb.6.2021.02.03.10.42.38; Wed, 03 Feb 2021 10:43:10 -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=@kernel.org header.s=k20201202 header.b=tz9oqbTh; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232220AbhBCSlM (ORCPT + 99 others); Wed, 3 Feb 2021 13:41:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:35844 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229979AbhBCSlK (ORCPT ); Wed, 3 Feb 2021 13:41:10 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8FD9D64F65; Wed, 3 Feb 2021 18:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612377630; bh=ne/VpkVjff6Ma10qaIVVWwYCBVEGioYMCeW+6BzKYTo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tz9oqbThN853bYgekpJXUbpY7OjxGMixhA5LVVvqA0kvOa3LvdRQaeJYSGHmzhGpG mq7DhJ5yztK6omAKh3TQZNCEmJn+MLJym8cJh1nVObVoDEPEHlLbAmQbs2ojGWLALl vOp+1MfDWSgrpVuS6981DjAT4ed26Usx8jRMKP8bEasX9B5rK+bXl6jq13WVWyT5SI m9qrLIPa2eSd3Ii/CrhdSQmOeIlhW84dY9E4zfNN0WjXe9BacxlhYVpksuZzLAd3Ng 28iFSq5g0/1kGmUoooZUx+5Jrf9Y10ehFEims8qWYMcE6qFv36k85jYJyXTskxsA2D bTBYrI2wFjiXw== Date: Wed, 3 Feb 2021 10:40:28 -0800 From: Jakub Kicinski To: Loic Poulain Cc: Manivannan Sadhasivam , Greg KH , David Miller , linux-arm-msm , open list , Jeffrey Hugo , Bhaumik Bhatt , Network Development Subject: Re: [RESEND PATCH v18 0/3] userspace MHI client interface driver Message-ID: <20210203104028.62d41962@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <1609958656-15064-1-git-send-email-hemantk@codeaurora.org> <20210113152625.GB30246@work> <20210201105549.GB108653@thinkpad> <20210201121322.GC108653@thinkpad> <20210202042208.GB840@work> <20210202201008.274209f9@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <835B2E08-7B84-4A02-B82F-445467D69083@linaro.org> <20210203100508.1082f73e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 3 Feb 2021 19:28:28 +0100 Loic Poulain wrote: > On Wed, 3 Feb 2021 at 19:05, Jakub Kicinski wrote: > > On Wed, 03 Feb 2021 09:45:06 +0530 Manivannan Sadhasivam wrote: > > > The current patchset only supports QMI channel so I'd request you to > > > review the chardev node created for it. The QMI chardev node created > > > will be unique for the MHI bus and the number of nodes depends on the > > > MHI controllers in the system (typically 1 but not limited). > > > > If you want to add a MHI QMI driver, please write a QMI-only driver. > > This generic "userspace client interface" driver is a no go. Nobody will > > have the time and attention to police what you throw in there later. > > Think it should be seen as filtered userspace access to MHI bus > (filtered because not all channels are exposed), again it's not > specific to MHI, any bus in Linux offers that (i2c, spi, usb, serial, > etc...). It will not be specific to QMI, since we will also need it > for MBIM (modem control path), AT commands, and GPS (NMEA frames), all > these protocols are usually handled by userspace tools and not linked > to any internal Linux framework, so it would be better not having a > dedicated chardev for each of them. The more people argue for this backdoor interface the more distrustful of it we'll become. Keep going at your own peril.