Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp250080ybk; Tue, 12 May 2020 22:12:17 -0700 (PDT) X-Google-Smtp-Source: APiQypI2JcHeAa/UPUKEkqv/ZbEzw4Nc5q5E+RD4dSvm/adrJi/K7azZfdnJqxziDvajngh4b10z X-Received: by 2002:a50:d98b:: with SMTP id w11mr19164715edj.196.1589346737655; Tue, 12 May 2020 22:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589346737; cv=none; d=google.com; s=arc-20160816; b=ceUjnNv11yDMspcAWCmYPE9PUeyso61+QrihooxQN2R4AGEI2M0YyfpVGUwwbOgPfH UsGSo4HDLw4aY6zQ4bvOzNTcc0+/KRZ+q7m94fCcSy+wBDSdE//KqUjOsWDoYq3YVVFB sG1OpqcCa5VBWva7ra3PJgppF5+YRrWOFghRtBZn0sphiYCxfyNBHHzues/aVk8P+2AJ H7y2KJcKSaCNsX1nxJQZGID3jY6p4QhEmFLyMyHvNKqJaQVDT+rnApfToj1z/Eiq6Y9g f3LG2FTMHYGXHCQx5MRVjX2MaZCNbBh78DNzelYFJ1Z14bBlKDVx92w1TISkYJWAZ61C M/IA== 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=DZQibOhxYLyG5G1VX6UfWA5/4+MXrMRUnbCNt7bbHJk=; b=NgM4U/p5nDoOGao++/h1pO4sQwhDk9yBdR4X9xCwQu4KRhaQi/sseJqfjC/ZtO5j8x GyCMjwJJP+JdQ4tsO1wSPW3GLi4RM1jsVGC2LzH13PhljDKIzd38jD4S/k+I7MMdeFqu bch/fi/E2VvGYajnNzMMbZBbZLT5Ph05Fuls+rmflQjDP0DdWJv8s8BtvNk+qeP9bCjJ E7Tk/O4xFiJ0365yR5Q/ilzbMfoAkgzM2Ec73VP7rcbGDRphf1C81KXDhmoyrxwdUOpW 3UA2gbazwbifAefaa89uFmedWsT3OE82/ecbsc3OPEX/zqq2iFMU+16m43JFpzmfFyQg vOuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=moFWeo0B; 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 e1si9464696ejl.173.2020.05.12.22.11.55; Tue, 12 May 2020 22:12:17 -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=moFWeo0B; 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 S1728692AbgEMFKa (ORCPT + 99 others); Wed, 13 May 2020 01:10:30 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:21111 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726035AbgEMFK2 (ORCPT ); Wed, 13 May 2020 01:10:28 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1589346628; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=DZQibOhxYLyG5G1VX6UfWA5/4+MXrMRUnbCNt7bbHJk=; b=moFWeo0B2nL97ecFDRa3ZihmQSwKhF9E/UBzpV2V8tJY0GFMlbaRt+n6W1OwuLoDbkZ1QQ+i 3IC2Q2WVLgjcXCni9LGgYsW90DuHXbVVymg42GFO1GFe9bQF2ll1pIhxADTAdQ6NZabTVopt lN4HVYt2uRTAZ2rfcZr4f1K17IM= X-Mailgun-Sending-Ip: 104.130.122.26 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 5ebb813e.7f33deb01420-smtp-out-n02; Wed, 13 May 2020 05:10:22 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 80F38C432C2; Wed, 13 May 2020 05:10:22 +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=unavailable 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 AEC7EC433CB; Wed, 13 May 2020 05:10:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org AEC7EC433CB 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, 13 May 2020 10:40:01 +0530 Message-Id: <1589346606-15046-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 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