Received: by 10.192.165.148 with SMTP id m20csp1438854imm; Wed, 25 Apr 2018 19:11:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx48sHbFi3BCA8jHJDBph4df/oJJEPmpw1zs4hD/8tdgln7yhNQ/DSxzwujya0IdOF7nKODsC X-Received: by 10.98.202.152 with SMTP id y24mr19008968pfk.187.1524708689813; Wed, 25 Apr 2018 19:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524708689; cv=none; d=google.com; s=arc-20160816; b=kB7ZRREnH67zyDblhsw/3XZP95Cwzb4O1iNDzXqssBVMiE8MjjnSxwB7qJplTeXaFJ IdkltIz01yYFdUxhDEl6jmKu/mBYp0L7mRveXEnmzzLXSkxRSCkNXU5Rv7icH1fhxAMK uq1erDCg3k3CYkCaEtH7WCIzEGQNDF1lO4EJE18LMTmR1FXPsHBPmqtSzyWsZJgPH70J CEBoOfXaf2ggBi1wqCyH2bRzhyQLVqRf2EQgMZFV5u6bknpodap4tCqwJAUDaHxMXSum zWosj7K3lD6/OZjTU/TlaTq9UuBuhZqfzVKciu/lHByTYOPtd0KYf4G7UMQ8Jhl6rIc1 jsfA== 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:dkim-signature :arc-authentication-results; bh=vf5Iu7upt1Q8ea8/OEh9fkIsAeC7nmc3p0rU3NnboWw=; b=JjZ4yGf/7STRreV7DJwtaSBCsCRtMWi6c5qNeDDof4v0U4FhdwnTcfJQEF46BDGj2G HONhnrKGamcjGTrA9nZF1oXahgYsIeiqwgDFghQA2PNwqrCWKXOTgQiXnk+gJC16IzSu wKq2Z0Z/zjpcf+WxZSHTqBM2pkCaaQ96pq1rRRdKnzUwXc4aC3ExDW7IDyAlla4CX/pu A2f3FmwlkyXHEyk0W4uiM4zKdKCw9i3AMWixvjdM6NfmABsN7UBMBNSa5crXtCw/b7ky c0lzWNqwNgVSJrkFoTgOJHyvsDOGHLkw7X4h8863TyaoOAHsTCrvjTened8AKB4avdXQ UN9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=R1wMrQXV; dkim=pass header.i=@codeaurora.org header.s=default header.b=Kv7Rm22l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7-v6si18103179plt.287.2018.04.25.19.11.15; Wed, 25 Apr 2018 19:11:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=R1wMrQXV; dkim=pass header.i=@codeaurora.org header.s=default header.b=Kv7Rm22l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753083AbeDZCIo (ORCPT + 99 others); Wed, 25 Apr 2018 22:08:44 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44148 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751353AbeDZCIk (ORCPT ); Wed, 25 Apr 2018 22:08:40 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 286D560F5F; Thu, 26 Apr 2018 02:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524708520; bh=sAykQYladlf+7Tv1iBPROmloO75bG7O2bIHqCxzUzA0=; h=From:To:Cc:Subject:Date:From; b=R1wMrQXVpJIArPvz8UWVCT4ZXXSpYVQX/Bv3TKyCffcYMGW9iw9a5SafmJ04eAaIh i3pgHP5t24Af5OzXW4u7b8Tl8UN3TWyTFzuKrj5t0JaRw2zmn/rl4vz1TtNIxDvyTV a8Hs7qDG3kdyIZ0c0jiHHpBJ0vTcXIgJx9g0DqVc= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from clew-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: clew@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id EE63560117; Thu, 26 Apr 2018 02:08:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524708519; bh=sAykQYladlf+7Tv1iBPROmloO75bG7O2bIHqCxzUzA0=; h=From:To:Cc:Subject:Date:From; b=Kv7Rm22lkGQWvKADyO5X0ggiJy7SQKAi/p29mVYS24yh9+XvKRbBC96Ob1nHN/AMc Nq2BQ+cIVYiebQ60buCLO9WJ942LeTxhCMx2HNOcZPwxY0I83oEmRI1cGumDxnV5bX 8f6AJ71tkleL6aJL7KmjbZyf5cVfz4XvIRJtQS4U= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EE63560117 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=clew@codeaurora.org From: Chris Lew To: bjorn.andersson@linaro.org, andy.gross@linaro.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: aneela@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, clew@codeaurora.org Subject: [PATCH v2 0/6] Add chrdev and name query support for GLINK Date: Wed, 25 Apr 2018 19:07:46 -0700 Message-Id: <1524708472-18263-1-git-send-email-clew@codeaurora.org> X-Mailer: git-send-email 1.9.1 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. Create a label property that will help userspace clients distinguish between the different GLINK links. 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 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 Chris Lew (6): dt-bindings: soc: qcom: Add label for GLINK bindings rpmsg: glink: Store edge name for glink device 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 .../devicetree/bindings/soc/qcom/qcom,glink.txt | 5 ++ drivers/rpmsg/qcom_glink_native.c | 68 +++++++++++++++++++++- drivers/rpmsg/rpmsg_core.c | 2 +- 3 files changed, 71 insertions(+), 4 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project