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: 10254889 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 434CD60211 for ; Fri, 2 Mar 2018 14:59:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 339F2289B5 for ; Fri, 2 Mar 2018 14:59:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2878C289D8; Fri, 2 Mar 2018 14:59:16 +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 C676B289D3 for ; Fri, 2 Mar 2018 14:59:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1428939AbeCBO7F (ORCPT ); Fri, 2 Mar 2018 09:59:05 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:54345 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1428929AbeCBO6a (ORCPT ); Fri, 2 Mar 2018 09:58:30 -0500 Received: by mail-wm0-f66.google.com with SMTP id z81so3672810wmb.4 for ; Fri, 02 Mar 2018 06:58:30 -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=HUaqoXrD10ak5uU8763wHahXUAUF1R7duy7j0AuoSQi3kSTeNskdvcBNrowAO+OoLN WnZQ3QwXl4gOSia8m9LxR3TBAN9ANHuOdMAD7T+AfKomT02m7RyjLnz/zyAZrr5ixGwk usIX6crCO6HMhxhVuStO3Q8msq1wxXLdI7SdrRNOCv+AyLaJISvpL0RUzdMG4Bdzgu/a lEFz6YNo35RqLWTwXzKbncCrQPKqJt3AS5rkYbvCem/110V5BeYnh1FTd7z/r9zqsPWM jLAoq4p5VcqHQx6aKWQIzmSUULioEdRxqMfbsl8lXxvVACa9nL4yzcIm66Nb6Q3BHqcD kjng== X-Gm-Message-State: AElRT7EE6zQoLTtyM6k8oUd4miq3jAdQC/mlgc2Bdg/s20AMJoQibHKP mC7vlAXnwT8h2ycYOtZkWfo0uw== 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 Cc: joro@8bytes.org, ohad@wizery.com, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, Srinivas Kandagatla 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> 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 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);