Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp63765ybc; Fri, 22 Nov 2019 02:06:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzUG1v+sLbX+M8CoIvVrGvzHFgaWM+zFwXLCWAvJXyP/BczlvrKVPBhIloSuL8l9zaTCe/u X-Received: by 2002:a17:906:3490:: with SMTP id g16mr21721625ejb.189.1574417199046; Fri, 22 Nov 2019 02:06:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574417199; cv=none; d=google.com; s=arc-20160816; b=NRbVTQdTHpUbPey+Uo0aAIVQrVx0Zf4NJ9mGU9uYOpTxtqMMJW6lYrw4XZCZZ/gzbT xGJQEisj8wSE4R6QFXrpoFHoG+phcVFfLHNZbt5F4cmJ6IESQAOmLsEtqbg3vtkzIPUg 762yqvRx1schzg4gexouDymlZeNtiH8RACSOWR4SPHsdr3B2Cf/918j1HhArF5anw3Vf 84BoAknzO6zlgkoGIhGQ5CO/Knhl3d2PmV7aZ66GN9MyuZ4WAYN3xkJfRXAYLV+knp8E E5geTJe05fbUu7CzKy1QvDolmwtmU7wb/kmrbZIER1NJ2N2ivtPQi5hJQSrS/aQPSJAj OAJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:message-id:date:subject:cc:to :from:dmarc-filter:dkim-signature:dkim-signature; bh=6v4a1U31B9vNH2sjqUPkADDm+hbO/vhy+pb84qn+G74=; b=FvF0aWgRbp/CMKIm5odQKPB5jlKNwjfA2WTrWKskxeg1OHEETVTZNy7JVQFCTlPSi4 bseoO6KV8Ku66g4wFExJ5pm4eYDMKPuX0E8EgVUnBlyHXOhF+x11NQ2MeklnxrpkFMFI lQRRt+VEds3R73ljTURR1lTJG9qPYU17vzyJbzY4jQaUzsGTLhenmTIEI3Jh+iTPnDQU bJdYinm7HYBaR3AXLVTxDaK4Ok4R0ZNNZJHpKAdkXM+z4YC1MAflAMzunpcPyKR4+pqZ b+9eD3BYHeOTOmEYGgWNSEOVg5mVwizhygzl9awFL204gPmTxyI6FZyXG1uVr2PXIbxU 8okQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=GnFKOWzK; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=fGE9+aoW; 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 bs2si632249edb.354.2019.11.22.02.06.14; Fri, 22 Nov 2019 02:06:39 -0800 (PST) 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=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=GnFKOWzK; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=fGE9+aoW; 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 S1726942AbfKVKFF (ORCPT + 99 others); Fri, 22 Nov 2019 05:05:05 -0500 Received: from a27-188.smtp-out.us-west-2.amazonses.com ([54.240.27.188]:58930 "EHLO a27-188.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbfKVKFF (ORCPT ); Fri, 22 Nov 2019 05:05:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1574417104; h=From:To:Cc:Subject:Date:Message-Id; bh=gR/9H1H/ghs0meBZNJ1rxfiJMbYsOhQPMlG210KxbK8=; b=GnFKOWzKP7mR9Kewh/aSh7P1T03nQ0zRAwu4+qShmGny+6LDyCxOJ1ZrYlAk1oAo BQ5kL0LycIEpAYqoe/dpmiB3KGtTeEfr4QSXBuQ7JpPvEpQIE9KKZd3fO8y4k0J5omS sAJeyZjssDoj1PAuajHvdkxmj4BN56HTIa3RDfB4= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx; d=amazonses.com; t=1574417104; h=From:To:Cc:Subject:Date:Message-Id:Feedback-ID; bh=gR/9H1H/ghs0meBZNJ1rxfiJMbYsOhQPMlG210KxbK8=; b=fGE9+aoWCRCJZGC/StMODwzUnP4CHLRwh+A8jF2x0NQboa7SOSc9DZP2/AjaVLKS vumtPWzUIeNPS1eMi/Hcp7u8wEcCPg+oCLMn3Te8y611WoeQuoXcxobx36addizvLVc FlhoqB0mBmjtNkgsjGEIkGutpj4cv4WBk330n+Kg= 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=unavailable autolearn_force=no version=3.4.0 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E59E6C447BD 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: Fri, 22 Nov 2019 10:05:04 +0000 Message-ID: <0101016e92927c3a-ca9dda3b-35da-4104-bf52-d2839f18b8d5-000000@us-west-2.amazonses.com> X-Mailer: git-send-email 1.9.1 X-SES-Outgoing: 2019.11.22-54.240.27.188 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES 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 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(-) -- 1.9.1