Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp406942ybk; Wed, 20 May 2020 02:41:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuApRvifkjcf2sgfGZoKFBldKeYB/FO+e/bTDhT158E2AoEGsUz4VRDbDxSlBG9rb2Xu8+ X-Received: by 2002:a17:906:2ac6:: with SMTP id m6mr2918153eje.234.1589967710899; Wed, 20 May 2020 02:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589967710; cv=none; d=google.com; s=arc-20160816; b=ajQPVn3z6FfAhY0tcBpMV9BZObQN3bjB2H1tTrvPdhGDKwhZPaMor5r9jsjbTriCOM tsXsaDipNakEogDWfWhjgIdhHkFIBOwwLF5mS/TEBYLZV/P9mU6HjjTrs30yx+7JLrnt SeyQaDBZAqLTygPu9RQKttJ+QFp4RE9Cu5qDEx6RhF4t/eUeJUOkQ9SOTP/wazwJ3SX/ IY6LmzLtmJW3JTFZVGzQIUiDpxS1JbKuCjJWjaGhcGa8uA/IpMCbE6grGbFg6fi4ntBu UqQTOIgn7FiMo5stOTxnHzJ+Yh5vWT4p/AS86NwAu6yrAfh1xd3PRhEaHu59Jn2hFXXW Gz4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=nV13h5PX71gonzpbX+Edt0PcuYoJs3RX9Ta6lg4GJkw=; b=PQQverSoNcq4rHD/lX7GeC4ldMR1VqONPjL/LnwPdEOe55ePvACGaouqWrxxsnI3wV 7B8+G8v4HTz42twFjoSQSf67S/zmocbVECGeBCXaWJRx3HXGn47Zi1qGypFBG/sQ1DMq LSpzTUoyi3kCQK7u+7m5X2wCiA0ERC5B6bGgqARSVGhjC+sd9bWQjdoeBvsRpVtNvqKG ZoGlfzAoEiRsOBzccNdMSo/lE/uvjwXi1ZzlbxDeY2r9Eob7tlxyspu+aiKrT9bSfOJb NkyvBn2tgfHTXyAHBc4jONka3phfO/t2+wpVTjhH92xx7esF5pmIoWTRXs3iur1uRa4P 4Z8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=RajtxuGu; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb24si622690edb.224.2020.05.20.02.41.28; Wed, 20 May 2020 02:41:50 -0700 (PDT) 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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=RajtxuGu; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726688AbgETJj6 (ORCPT + 99 others); Wed, 20 May 2020 05:39:58 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:15335 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726224AbgETJj6 (ORCPT ); Wed, 20 May 2020 05:39:58 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1589967597; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=nV13h5PX71gonzpbX+Edt0PcuYoJs3RX9Ta6lg4GJkw=; b=RajtxuGu9B/YcsjfxQMpzk/suwXYXmjLr0tbKth3FIxwGCrpOPTtoBkljKlATCEzCe1oLjBx qEuOLACRIbkM2F8Na1KaSRetn/xi4z7LlRxlMc9S2HEWwfYKbIOjVYVWUJSRVHYMGC00vOdK WYUrN10veI0q6572xpLsyEfXWXE= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5ec4fae9.7f76fd1fd8f0-smtp-out-n01; Wed, 20 May 2020 09:39:53 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 57526C433C8; Wed, 20 May 2020 09:39:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=ham autolearn_force=no version=3.4.0 Received: from aneelaka-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aneela) by smtp.codeaurora.org (Postfix) with ESMTPSA id A571AC433C6; Wed, 20 May 2020 09:39:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A571AC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=aneela@codeaurora.org From: Arun Kumar Neelakantam To: ohad@wizery.com, bjorn.andersson@linaro.org, clew@codeaurora.org, sricharan@codeaurora.org Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Arun Kumar Neelakantam Subject: [PATCH V5 0/5] Add chrdev and name query support for GLINK Date: Wed, 20 May 2020 15:09:34 +0530 Message-Id: <1589967579-15559-1-git-send-email-aneela@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the GLINK rpmsg transport to register a rpmsg chrdev. This will create the rpmsg_ctrl nodes for userspace clients to open rpmsg epts. The rpmsg chrdev allocation is done by allocating a local channel which also allocates an ept. We need to add some guards against edge cases for this chrdev because it will never fully open. Changes since v5: - Re-orange the completion_done code Changes since v4: - Resending by removing approved patches Changes since v3: - Change to device_add_group for rpmsg name attr - Add patch to unregister the rpmsg device - Add patch to support compat ioctl for rpmsg char driver Changes since v2: - Revert change to make glink attribute table const Changes since v1: - Add explanation to dt-bindings commit message - Add patch complete_all the open_req/ack variables - Add patch to prevent null pointer dereference in chrdev channel release - Change chrdev allocation to use glink channel allocation - Change glink attr struct to const Arun Kumar Neelakantam (1): rpmsg: glink: unregister rpmsg device during endpoint destroy Chris Lew (4): rpmsg: glink: Use complete_all for open states rpmsg: Guard against null endpoint ops in destroy rpmsg: glink: Add support for rpmsg glink chrdev rpmsg: glink: Expose rpmsg name attr for glink drivers/rpmsg/qcom_glink_native.c | 79 +++++++++++++++++++++++++++++++++++++-- drivers/rpmsg/rpmsg_core.c | 2 +- 2 files changed, 77 insertions(+), 4 deletions(-) -- 2.7.4