From patchwork Thu Oct 5 16:43:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9987565 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 29976602B8 for ; Thu, 5 Oct 2017 16:43:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C1AC205FB for ; Thu, 5 Oct 2017 16:43:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10E6B2841C; Thu, 5 Oct 2017 16:43:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84EF328CEE for ; Thu, 5 Oct 2017 16:43:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751354AbdJEQni (ORCPT ); Thu, 5 Oct 2017 12:43:38 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:49130 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319AbdJEQnh (ORCPT ); Thu, 5 Oct 2017 12:43:37 -0400 Received: by mail-pf0-f176.google.com with SMTP id n24so8194423pfk.5 for ; Thu, 05 Oct 2017 09:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=qZJ9/t0N4nrlXUjGuBZaV3FXtbsxq1F8NhEkLPcJPVM=; b=Uhm+d9awDzuj+gzyIfghyW4WcTXLetCZK/CkMzMyeHJoW7QyBSkZgU89oJdFwgj/1M vAQU7PrQe1KK9JBWXKw7ifNDW21or6p3jgORoN4//HYSiNSC2NLvh+dOH2fBnHdmT50M 3oZuinSUaCEi9jo25mFjWT6/IEQBzfxVMETcux3QFjSUr2nxXmceASa/esoBeewDCnNO apP37hD1+DVomHLX20V+P+zC7PwyrnBrjlfwOoeAYRlnitqDmCGhPOFLopBhkf5kZZtn 5fHYQn50s+V8RIWgHVu5VwTdefwHuWaRpamyfuorQpctKfgfkrk7gF5P4aiilNFSTZYp G5ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qZJ9/t0N4nrlXUjGuBZaV3FXtbsxq1F8NhEkLPcJPVM=; b=p8ZAqaUaChXrYziuusBtlBFEE52i8uyUypkHRfgAjGv63zv0UO39RnS+m69qpQy42R 3q/K44FctMqLQPYtNPGmG2IlW+JtWUJXyjNvEhHV4iAPu1tnHOHnwYdWGawaMwvUXz+x 0kB1LQBFjT5rE4YFc0s/rnz8Tu1hA5UcCL0JohMaJFWh/Mryn9OsLwub8fRAYpH0VpBx UlAuLX3ssbZlnW8MqpvgUfVxLLEw6Wf4JyBGoYcXbgDakb0K1UontqHe8y5xXJ3jmezt lqwix8yAityl2ao62mrTwYDHG+75RlpZ78+/kPYQJe9oNzjCvEFDQ0PgYzgBsDdLlC4P logQ== X-Gm-Message-State: AHPjjUh6I4IevvssAswtwj3eMlI8VbsrDZZjTDinObJw/QYhYOGkbEQS IjX+R8y3UvyuZK4jxpNp4xO27TLd X-Google-Smtp-Source: AOwi7QCSyXIgxGq0m6InZk1+tO61Qr2PGdzJcaRvgsNIHKoiGG7mtmFORwelRdW0qDM07Frc4gJSgg== X-Received: by 10.84.185.106 with SMTP id e39mr22917250plg.333.1507221816387; Thu, 05 Oct 2017 09:43:36 -0700 (PDT) Received: from anup-ubuntu64.dlink.router ([122.171.25.18]) by smtp.googlemail.com with ESMTPSA id g68sm30540060pfc.64.2017.10.05.09.43.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Oct 2017 09:43:35 -0700 (PDT) From: Anup Patel To: Ohad Ben-Cohen , Bjorn Andersson Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Anup Patel Subject: [PATCH v3] rpmsg: Allow RPMSG_VIRTIO to be enabled via menuconfig or defconfig Date: Thu, 5 Oct 2017 22:13:20 +0530 Message-Id: <1507221800-25519-1-git-send-email-anup@brainfault.org> X-Mailer: git-send-email 2.7.4 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently, RPMSG_VIRTIO can only be enabled if some other kconfig option selects it. This does not allow it to be enabled for virtualized systems where Virtio RPMSG is available over Virtio MMIO or PCI transport. This patch updates RPMSG_VIRTIO kconfig option so that we can enable the VirtIO RPMSG driver via menuconfig or defconfig. The patch also removes "select RPMSG_VIRTIO" from various remoteproc kconfig options because it is now user selectable. Signed-off-by: Anup Patel --- Changes since v2: - Remove "select RPMSG_VIRTIO" from various remoteproc kconfig options Changes since v1: - Add depends on HAS_DMA to avoid build failures on archs (such as um) with NO_DMA=y. For most archs, HAS_DMA=y so having depends on HAS_DMA is fine. drivers/remoteproc/Kconfig | 4 ---- drivers/rpmsg/Kconfig | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig index df63e44..afb7628 100644 --- a/drivers/remoteproc/Kconfig +++ b/drivers/remoteproc/Kconfig @@ -28,7 +28,6 @@ config OMAP_REMOTEPROC depends on OMAP_IOMMU select MAILBOX select OMAP2PLUS_MBOX - select RPMSG_VIRTIO help Say y here to support OMAP's remote processors (dual M3 and DSP on OMAP4) via the remote processor framework. @@ -58,7 +57,6 @@ config DA8XX_REMOTEPROC tristate "DA8xx/OMAP-L13x remoteproc support" depends on ARCH_DAVINCI_DA8XX depends on DMA_CMA - select RPMSG_VIRTIO help Say y here to support DA8xx/OMAP-L13x remote processors via the remote processor framework. @@ -79,7 +77,6 @@ config DA8XX_REMOTEPROC config KEYSTONE_REMOTEPROC tristate "Keystone Remoteproc support" depends on ARCH_KEYSTONE - select RPMSG_VIRTIO help Say Y here here to support Keystone remote processors (DSP) via the remote processor framework. @@ -133,7 +130,6 @@ config ST_REMOTEPROC depends on ARCH_STI select MAILBOX select STI_MBOX - select RPMSG_VIRTIO help Say y here to support ST's adjunct processors via the remote processor framework. diff --git a/drivers/rpmsg/Kconfig b/drivers/rpmsg/Kconfig index 0fe6eac..65a9f6b 100644 --- a/drivers/rpmsg/Kconfig +++ b/drivers/rpmsg/Kconfig @@ -47,7 +47,8 @@ config RPMSG_QCOM_SMD platforms. config RPMSG_VIRTIO - tristate + tristate "Virtio RPMSG bus driver" + depends on HAS_DMA select RPMSG select VIRTIO