Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4485398pxv; Tue, 29 Jun 2021 08:07:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqMao9xCh7fIUpPkbdhEWJOlr2bSfRVcerDydtaZl53ma+YdaB/GlvmIXITE81HjxIT0YE X-Received: by 2002:a05:6402:20e:: with SMTP id t14mr9810126edv.193.1624979227347; Tue, 29 Jun 2021 08:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624979227; cv=none; d=google.com; s=arc-20160816; b=IK2W09viNc7phUDC4JeK7bxWhQo/Al/q0WR7j7B2Z9+p7TKi7WDDDEuR0mCGUAPKr5 luJqzgsNyKksKSBv8pjBpvozkxWQama3sSYCB7WD41J3DwPiQBGDpChDUm9MzSfeb7RC D2wR4oCop8vfk8fEKuiRz+9l3lUnJN6XhxPKyV/+QYhJAy2cm5TIPkAs0CC8uMIdoyVs x88eERtC/fmo3yZ4SW74thH01E5u7sZsPAC/Ki2n0tGD9L2V5PUwWkXF06HI750B57dX yntmn+VyWay/oYdi+Vs2xWWMvk7Y89S9pBUzVHKtly17NP/w9p4GPqLQIlRXtZ/tm117 Dpbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=dJotlS0TFUbUcD0eq/i8ljehgW7K9gwfEhGaeZ++mPs=; b=sC0PCkxZMp/APQNv5+dnciOYXdcJtlY+YPKLu7qKwtzclIan2TM4zS8mQf4rXCxICS VJvgfGkxkYcNgrYE4i7zSU1kWpCk+R9rZIEBwcb5agZpgIUnRrv5KD9wLFtpAsoIWsbZ x9+7Oq9UhbQv35aWU8E4rWiCGN9OSyTImOmLgq/pKVKeEwAmd3bl7/0dSM0jG6MUCTnR YtEzZRNnY/gD+bd05k4VuFVsrP0WeFV5t4oZx8DnWjRS+i7Sc6yMXQu8jqfNskBhRTOc 6Oyul85nQAwXAVpxVw76vx/oIAFyVRrXdyGPWSOuttjIizXXv6L5dT1cDYRjtK/GivcM j/kw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f18si17086838ejq.333.2021.06.29.08.06.39; Tue, 29 Jun 2021 08:07:07 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234612AbhF2PE2 (ORCPT + 99 others); Tue, 29 Jun 2021 11:04:28 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:41500 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234583AbhF2PE0 (ORCPT ); Tue, 29 Jun 2021 11:04:26 -0400 X-UUID: 016235ef35a0485eb01b979f11d6978f-20210629 X-UUID: 016235ef35a0485eb01b979f11d6978f-20210629 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1076631800; Tue, 29 Jun 2021 23:01:52 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 29 Jun 2021 23:01:50 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 29 Jun 2021 23:01:50 +0800 From: Phil Chang To: CC: , , , , , , , , , , Phil Chang Subject: [PATCH] remoteproc: export rproc re/unregister to virtio device APIs Date: Tue, 29 Jun 2021 23:00:02 +0800 Message-ID: <20210629150002.8050-1-phil.chang@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In some case, the remote processor already boot up on previous state, but still need register to virtio device, so that exported those APIs. Signed-off-by: Phil Chang Signed-off-by: YJ chiang --- Hi In our case, the remote processor is already boot up in u-boot, we don't want to boot again or load fw in driver but register to virtio device for rpmsg. so that needs those API exported. Furthermore, the rproc_vq_interrupt is exported, so those functions should be exported also. thanks drivers/remoteproc/remoteproc_virtio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c index 0cc617f76068..e23658a76f5e 100644 --- a/drivers/remoteproc/remoteproc_virtio.c +++ b/drivers/remoteproc/remoteproc_virtio.c @@ -425,6 +425,7 @@ int rproc_add_virtio_dev(struct rproc_vdev *rvdev, int id) out: return ret; } +EXPORT_SYMBOL(rproc_add_virtio_dev); /** * rproc_remove_virtio_dev() - remove an rproc-induced virtio device @@ -440,3 +441,4 @@ int rproc_remove_virtio_dev(struct device *dev, void *data) unregister_virtio_device(vdev); return 0; } +EXPORT_SYMBOL(rproc_remove_virtio_dev); -- 2.18.0