From patchwork Fri Mar 2 14:55:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10255021 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 4611C60211 for ; Fri, 2 Mar 2018 15:42:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35DE6289F6 for ; Fri, 2 Mar 2018 15:42:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 29FEC28A04; Fri, 2 Mar 2018 15:42:19 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B7EAE289F6 for ; Fri, 2 Mar 2018 15:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=uPPQDVsg43kBN0JMuKrsnapYH1r6H9sP+QKRkV/geEo=; b=tFGSP+67zV53hLLHs7qc8dNsl1 cOb+a7SOYyAKYMyo+EH/rXSK6jaP0RLIMDaf4z1uj59VytWpPBT+TtvzZDFEEzB3Fw8d5wqb022OQ VOQWIlHxKsUCn0RLv5ZaSz//7kC06Tkx2SkQKC9npNh5fMPojiVi6iozB0YaoQmlRPKqlntTJVYN5 qpkPAfGP67kPvKlJuDgmJOwQ95Jeo4Mo+iglZq48BtWUFONori5bkrcgn7mGIm5FAYEqCuqlS26tT M2o7Univwc0ldjuVbmEyEJKuSBtRXed+P2QR/U5sdUKMhXtWHWbdRJ0iVI1XViwzRJuEyM7gr7mB4 c0eOFsWg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ermp0-0004Zb-0w; Fri, 02 Mar 2018 15:42:10 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ermoV-0004FH-77 for linux-arm-kernel@bombadil.infradead.org; Fri, 02 Mar 2018 15:41:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=W3ukytPLmphIhDeCNRJIiwK6rG3cGoGMZ5S4jB2QyJA=; b=ttc6pxs9mD2nCz52x6UqOv9PK iaiDwO2+AZp7487D3BiJkZvYk3B+nQcUdGw46X4+k5+1eYJfRe8l3vOnltHlM71eZfDvsxVGmDQko QnxfIKFRg85TG1LGgRTpY5neRLvz24e/v8f68op6voSDUOncoRwRUynMACJex+X8dpmuqB5LWpzRM mKPwIFbwEyeSfKHSq6XO9lh84HRzboSc8HjHTCjj441/1Kqjwq7HQifb27Jbo/mGZZTBDGcc1INjx lGra1RklPSVSnHIzXESJcneZ/G320WmQp2HwKB8o1XTiNtQm8JaTntJMmRO6n4odiJbJ+Zc5ctN6t e3b5Npi8w==; Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by merlin.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1erm90-00064l-4A for linux-arm-kernel@lists.infradead.org; Fri, 02 Mar 2018 14:58:47 +0000 Received: by mail-wm0-x241.google.com with SMTP id x7so3580255wmc.0 for ; Fri, 02 Mar 2018 06:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=W3ukytPLmphIhDeCNRJIiwK6rG3cGoGMZ5S4jB2QyJA=; b=Mt9qQby5eoW66qm/Ky3GXUMbZVQk0ll+L3m0T+lNF+Ks9SiltprBDlZFq5XDm78Icf 7SyEAsencTKvmxWrXjVfJHOAwm0JC9RjBOBwMMT7/vjCagANR3Q0rFLx0HNTslyKSBMg qT6TcCWBDoeS7HLc01FvtXHaUXvzVdivp3kYQ= 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:in-reply-to :references; bh=W3ukytPLmphIhDeCNRJIiwK6rG3cGoGMZ5S4jB2QyJA=; b=BUWr+fmvW00EWRtNGEPsLUj7SY8JB+IhKsOlQlo9j6V4uPIsGfi+fTDASdRmzchvr1 PWY8FlZ5P9H9lzjwA7CNRB33Pw9MGwLX830w7HMi3IMSv9YMLFnxy75ybxf9EjPTe4tm tDZztbQHL2jte5/ViuGnkBEgBsAYJiDP9gyZWhczC8iyOLLte86xYUG58gsuNaTiZ+ed NW9sFZ9YvJ2HRokJO7fDY29fD+KKmI3e4sifVjEF0WnUUAHZ9bcXoPxzeLPwANCdhd1I Op7Ke8ffUkXfH1FLXemrqv8ZUzIiKinkP9fQGhkLeJrURiaBLY+hoRdzrGZ/7dLRPaut Mi9Q== X-Gm-Message-State: AElRT7GdbYoah4jUMo0ZPZGWWt8DvhFtEt3qjc5ORzeCfCsTnpjZamps 8zUawc50OY2hPaid0CUKjY5JXYU5AeE= X-Google-Smtp-Source: AG47ELsRUyM0lO0Mz6A9hNs73MNbuEpVHlWF2jatSidkfAYzDGcPWRiM+l55ooXyniyoa8qvfuKTuw== X-Received: by 10.28.35.14 with SMTP id j14mr1611963wmj.43.1520002709531; Fri, 02 Mar 2018 06:58:29 -0800 (PST) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id b68sm1483168wmi.30.2018.03.02.06.58.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Mar 2018 06:58:29 -0800 (PST) From: srinivas.kandagatla@linaro.org To: will.deacon@arm.com, robin.murphy@arm.com, bjorn.andersson@linaro.org Subject: [PATCH 2/3] rpmsg: core: make rpmsg bus DMA capable Date: Fri, 2 Mar 2018 14:55:30 +0000 Message-Id: <20180302145531.20463-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180302145531.20463-1-srinivas.kandagatla@linaro.org> References: <20180302145531.20463-1-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180302_095846_183580_737DEE37 X-CRM114-Status: GOOD ( 12.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ohad@wizery.com, joro@8bytes.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Srinivas Kandagatla Many of the rpmsg clients like audio drivers need to allocate dma memory. Make this bus DMA capable so that the child devices can use dma apis. Signed-off-by: Srinivas Kandagatla --- drivers/rpmsg/rpmsg_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rpmsg/rpmsg_core.c b/drivers/rpmsg/rpmsg_core.c index e84c71f8d6ab..540a3f3567b8 100644 --- a/drivers/rpmsg/rpmsg_core.c +++ b/drivers/rpmsg/rpmsg_core.c @@ -472,6 +472,7 @@ struct bus_type rpmsg_bus = { .uevent = rpmsg_uevent, .probe = rpmsg_dev_probe, .remove = rpmsg_dev_remove, + .force_dma = true, }; EXPORT_SYMBOL(rpmsg_bus);