Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2591353ybg; Fri, 31 Jul 2020 04:48:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3ffAqDZNb43vHNo6SOQY39GDFvJNHTucEru+QphlkMfZGDvHvr0IJXuYRTIPCB7Z9CNC5 X-Received: by 2002:a17:906:5c52:: with SMTP id c18mr3670355ejr.168.1596196100984; Fri, 31 Jul 2020 04:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596196100; cv=none; d=google.com; s=arc-20160816; b=sB8CO+mPXbrnMYD4SmzE1Sh2GS+nC9GNcd+qS97EpLwQhMc0qtx96HDlIPjQ+Hk1ui +HMduZFiqbLSD6BXcOAi3DpJnL3DYys6boK5YfG/Pps74VO2vRAdJjgTkBMJ2A617Fhr 2beCjOsylGcyl0XyuOdMf4QJZK+m4ApuQKGqhePeHT+wWCXuNzTHKZqpatbllM7BCZGv q87qkq5CfDox2KdD3W8ijCuRSp3PoUOeI7iiMO1aO+2iaD6E+CkgULqRxLDBzlPj3u/q +FW/RsXN7MEAR9GMHzq6A4h9d2DnXfROZM2ysaS5AtJdk0g1bfd+Zk6PcjRqS8KYaspP +ckg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=0GCBgslDZw0GYxmu1/0QyIojItqk9H/Ui6PIwaiTKBw=; b=p7Y0YtGnvdcIDQeXkqXUofBLTqZarsp1W7jrWLIjrFx+D3YcwgYzqd2vt2NBbVJDpL /IMW13NCyJPwYSRttUI4FsrsgFA+esX3wf0t8RCFkU1MWowG0agk9u58ovCIERR+MUr1 PDt+nKOqBO7KFB0jhRjwCvxYAf70vJrg37srWSMdLN5qb0NqgL5rTdsHUBnxxm2EqrY/ Xc6uzlaWWL3gic1k2U/FB/tpQeTxA+esUQ/Qsx0CDAXtR3ZSOSj/P9tSBKWe1G3bQVHl nIdkU5iK1hQ7IxdRgzX2aQCq5penmkka3Q7ugU6McZ/aalkn1YbhO4KV6u/Z/dxHIIVk IBPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=LbYYfJku; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i9si5558394edb.144.2020.07.31.04.47.58; Fri, 31 Jul 2020 04:48:20 -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=pass header.i=@st.com header.s=STMicroelectronics header.b=LbYYfJku; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732809AbgGaLrw (ORCPT + 99 others); Fri, 31 Jul 2020 07:47:52 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:59832 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732784AbgGaLrs (ORCPT ); Fri, 31 Jul 2020 07:47:48 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06VBc333015223; Fri, 31 Jul 2020 13:47:45 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=0GCBgslDZw0GYxmu1/0QyIojItqk9H/Ui6PIwaiTKBw=; b=LbYYfJkuthsTZUqclPZmdITvrbh//greT4ll2Blj6+EPjWOXDf+s8vCbN9nqgyV0373z A0KeFwP8ErMwbUbFU463x+rBF/IhdFPu2xuRwg4RXf8RMzkGDdXYoXytWgRXwTz5Fi6m TBjIKQEDJEXxdct/DBh4zNt6wCJl8yj9hdU6CEuafB0GNImk1fdo4VsuxvKZ4limLlkb EilyMZmhJiToiZmaJi8WaHw6rXBmEJqs9NUT+lj2y1xkiMCXqd/BHjkgD0mIv2dD1p92 covJKWlOfCLow468Y7vSNKlu5OKIc2jUuvVUTjMTQyqdmJVL+k5JIXcd13KzG2hKrJvp qA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 32gagvna7k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 Jul 2020 13:47:45 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E704710002A; Fri, 31 Jul 2020 13:47:44 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D9842221061; Fri, 31 Jul 2020 13:47:44 +0200 (CEST) Received: from localhost (10.75.127.45) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 31 Jul 2020 13:47:44 +0200 From: Arnaud Pouliquen To: Bjorn Andersson , Ohad Ben-Cohen , Mathieu Poirier CC: , , , Subject: [PATCH 4/9] rpmsg: define the name service announcement as reserved address Date: Fri, 31 Jul 2020 13:47:27 +0200 Message-ID: <20200731114732.12815-5-arnaud.pouliquen@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200731114732.12815-1-arnaud.pouliquen@st.com> References: <20200731114732.12815-1-arnaud.pouliquen@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG4NODE2.st.com (10.75.127.11) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-31_04:2020-07-31,2020-07-31 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The address 53 is reserved for the dynamic RPMsg device management on name service announcement. Define this address in a reserved enum list. Signed-off-by: Arnaud Pouliquen --- drivers/rpmsg/virtio_rpmsg_bus.c | 3 --- include/linux/rpmsg.h | 9 +++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c index 910d30818901..b2927661868c 100644 --- a/drivers/rpmsg/virtio_rpmsg_bus.c +++ b/drivers/rpmsg/virtio_rpmsg_bus.c @@ -162,9 +162,6 @@ struct virtio_rpmsg_channel { */ #define RPMSG_RESERVED_ADDRESSES (1024) -/* Address 53 is reserved for advertising remote services */ -#define RPMSG_NS_ADDR (53) - static void virtio_rpmsg_destroy_ept(struct rpmsg_endpoint *ept); static int virtio_rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len); static int virtio_rpmsg_sendto(struct rpmsg_endpoint *ept, void *data, int len, diff --git a/include/linux/rpmsg.h b/include/linux/rpmsg.h index 9fe156d1c018..5496d27c6f8c 100644 --- a/include/linux/rpmsg.h +++ b/include/linux/rpmsg.h @@ -20,6 +20,15 @@ #define RPMSG_ADDR_ANY 0xFFFFFFFF +/** + * enum rpmsg_ns_flags - List of reserved RPMsg addresses + * + * @RPMSG_NS_ADDR: remote services advertising for dynamic allocation + */ +enum rpmsg_reserved_addr { + RPMSG_NS_ADDR = 53, +}; + struct rpmsg_device; struct rpmsg_endpoint; struct rpmsg_device_ops; -- 2.17.1