From patchwork Fri Jun 18 17:36:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 463154 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=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 2E543C48BE8 for ; Fri, 18 Jun 2021 17:37:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1266C60698 for ; Fri, 18 Jun 2021 17:37:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233930AbhFRRjz (ORCPT ); Fri, 18 Jun 2021 13:39:55 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.52]:11934 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232482AbhFRRjy (ORCPT ); Fri, 18 Jun 2021 13:39:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1624037859; s=strato-dkim-0002; d=gerhold.net; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=+4ntWc9603isbf7HF0EFcpYAxugIlsDXx622CtPyy68=; b=Ncfo2Gm6HPO+5lNWhuTodoe5GNDCFiGsu1KXebBMQ1E6MdIgWrzijeAQn1Yc7Bx+Jp +IG194OFB/PkJH9aYGU0DwwaP0LOePamiqlUuVN42kz9R3ySNnplSzdnqh/ZnZ5+vpbm 2DokPROFXGVnkN3p4QPfoQ5qZYT+iaK3mhcbAUyOum+BLsBcflRL0+877U2QLqIoT0n0 PkbG4qHg0ZJTuPbvcPTsl1rphCben6IFPUvKozPmdgc6y8Y81IKsNn/77FELV6+WVDaw y74PcNBQfh5OMryRVDFuXZz1hLl6NqF2H9dhMfSIt0CwpplgBN5XFWoOr4AhV9G3z1VQ zA9A== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXS7IYBkLahKxO426OllE=" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.27.3 DYNA|AUTH) with ESMTPSA id 000885x5IHbb6bb (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 18 Jun 2021 19:37:37 +0200 (CEST) From: Stephan Gerhold To: "David S. Miller" , Jakub Kicinski Cc: Loic Poulain , Bjorn Andersson , Aleksander Morgado , Sergey Ryazanov , Johannes Berg , Leon Romanovsky , M Chetan Kumar , Ohad Ben-Cohen , Mathieu Poirier , netdev@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Stephan Gerhold Subject: [PATCH net-next v3 0/3] net: wwan: Add RPMSG WWAN CTRL driver Date: Fri, 18 Jun 2021 19:36:08 +0200 Message-Id: <20210618173611.134685-1-stephan@gerhold.net> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch series adds a WWAN "control" driver for the remote processor messaging (rpmsg) subsystem. This subsystem allows communicating with an integrated modem DSP on many Qualcomm SoCs, e.g. MSM8916 or MSM8974. The driver is a fairly simple glue layer between WWAN and RPMSG and is mostly based on the existing mhi_wwan_ctrl.c and rpmsg_char.c. For more information, see commit message in PATCH 2/3. I already posted a RFC for this a while ago: https://lore.kernel.org/linux-arm-msm/YLfL9Q+4860uqS8f@gerhold.net/ and now I'm looking for some feedback for the actual changes. :) Changes in v3: - PATCH 2/3: Clarify commit message - PATCH 3/3: Fix build error for cdc-wdm.c, use extra tx_blocking() op instead v2: https://lore.kernel.org/netdev/20210618075243.42046-1-stephan@gerhold.net/ Changes in v2: Only in PATCH 3/3 - Fix EPOLLOUT being always set even if poll op is defined - Rename poll() op -> tx_poll() since it should be only used for TX v1: https://lore.kernel.org/netdev/20210615133229.213064-1-stephan@gerhold.net/ Stephan Gerhold (3): rpmsg: core: Add driver_data for rpmsg_device_id net: wwan: Add RPMSG WWAN CTRL driver net: wwan: Allow WWAN drivers to provide blocking tx and poll function MAINTAINERS | 7 ++ drivers/net/wwan/Kconfig | 18 ++++ drivers/net/wwan/Makefile | 1 + drivers/net/wwan/rpmsg_wwan_ctrl.c | 166 +++++++++++++++++++++++++++++ drivers/net/wwan/wwan_core.c | 16 ++- drivers/rpmsg/rpmsg_core.c | 4 +- include/linux/mod_devicetable.h | 1 + include/linux/wwan.h | 13 ++- 8 files changed, 219 insertions(+), 7 deletions(-) create mode 100644 drivers/net/wwan/rpmsg_wwan_ctrl.c