From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E793C433DB for ; Tue, 9 Feb 2021 09:24:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D0C4664DA1 for ; Tue, 9 Feb 2021 09:24:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230294AbhBIJYa (ORCPT ); Tue, 9 Feb 2021 04:24:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbhBIJVW (ORCPT ); Tue, 9 Feb 2021 04:21:22 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BF3FC061794 for ; Tue, 9 Feb 2021 01:20:42 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id 18so7600213oiz.7 for ; Tue, 09 Feb 2021 01:20:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aleksander-es.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DTuMJKWknYrnZ1xNYLzvsaQ4qGCwYj1qIz7kzYoSeRA=; b=Qvh2eOYXxet9fIRUiK5jbirxVA95uKvfHeqJxDuEqaqGmqez7+7SRKdVYPxjchgmS5 yGKUVXReARDTXcxSTTxD5WpiINvj1C4U32vy+IJZhG5H4zED5LVLlyIF+iWsFagZk/VK DYWGw+cm/45qOW0SokH6DnTFC6/v4IKUXQ5xeA9agT978WkDUNGa3b/mMLnPxwy50ZAy 1C3w4EWLszGGsxqtHJoh9qPHc9Hha9mT98z9NHGjUyO2GSP4ywUasmWaaMrCJ+Ms7Wrp t8eI1oDZhznkfM1rU5uqw8W3kS0Mn553wDxvX3bVYdD1kaLQ2y6YS1mUZNOB3g4SUZpl KN2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DTuMJKWknYrnZ1xNYLzvsaQ4qGCwYj1qIz7kzYoSeRA=; b=P5Kv0pD8KavFgd88ytLlYm+nFhyq7n6i9UffwH8f2fM4j36MiO7g9ZnLPPmd1c8AeP fLjDf+5QqshDRPet/Afw+yDSWcA76ISxE4oHJGYFDMfMdEYf2Kk55JVK0yrRIsDoTsAM hRdggzhl57XYvxRU+PmL/WM6cd0jazUGeEbVw8uUOGWRqDWlTPhZ8yzD084GJw14N905 DRfxHVIsZHaCLzHR4EfNEly6SLcgY1fppeUHJ257kYts+qRq5VGJL4FVSmys6AjfxCAY DXZn45oAZuwxmw1JaO8SykYtejoCvIxRwEMnVKxLzuAGy0SVZnvUL9DvvUIJXHiXm9ft 9UQg== X-Gm-Message-State: AOAM532PCMSELv9pfMYWvAshCLPrqFVPum82Gb1xyXvkncAJw0LgJqSh cGqNbw4BqnNWcLr/syITMZ/PU0EwFuJdEvnPC+kN1Q== X-Google-Smtp-Source: ABdhPJzLJ0oqa6+5bZtVfKINmAk0MnWV5DDDsEUpdQr5xU20juQWB4o82JCmg0PmqAhwFRdn8WGiuMPUsCipS3eJVOA= X-Received: by 2002:aca:d908:: with SMTP id q8mr1781140oig.67.1612862441549; Tue, 09 Feb 2021 01:20:41 -0800 (PST) MIME-Version: 1.0 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> <20210203104028.62d41962@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210203104028.62d41962@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: Aleksander Morgado Date: Tue, 9 Feb 2021 10:20:30 +0100 Message-ID: Subject: Re: [RESEND PATCH v18 0/3] userspace MHI client interface driver To: Jakub Kicinski Cc: Loic Poulain , Manivannan Sadhasivam , Greg KH , David Miller , linux-arm-msm , open list , Jeffrey Hugo , Bhaumik Bhatt , Network Development Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Jakub On Wed, Feb 3, 2021 at 7:41 PM Jakub Kicinski wrote: > > 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. Are your worries that this driver will end up being used for many more things than the initial wwan control port management being suggested here? If so, what would be the suggested alternative for this integration? Just a different way to access those control ports instead of a chardev? A per port type specific driver? This may be a stupid suggestion, but would the integration look less a backdoor if it would have been named "mhi_wwan" and it exposed already all the AT+DIAG+QMI+MBIM+NMEA possible channels as chardevs, not just QMI? -- Aleksander