From patchwork Fri Nov 30 11:20:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 152517 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3532984ljp; Fri, 30 Nov 2018 03:21:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/VVtwwdBaILotJlvAemxcIv4KZfdonSos9Rx0jKwtH2yTHG7p0VaAJ7nti49WAvGL6SyL3J X-Received: by 2002:a17:902:9f93:: with SMTP id g19mr5180942plq.195.1543576863633; Fri, 30 Nov 2018 03:21:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543576863; cv=none; d=google.com; s=arc-20160816; b=0WweEsyPoFJnIKVpe2Bi4Tzo+abtzb9e3nE7+qCJcLUo7aafAJVgMNiNPoOCE4SHM4 AHwbYa0/l84vgPbKaLNTzbv+OLfiBzkdOJc7wxu04auxdp9/Mo09E89uVT7T1wQICJ/K uDYsSZ+SMu5Ywe4fXE7s10GidlXdKC4qs1JgLXOTjp/MgguD3eXnQRyvAcsvhjnYmWdZ FsoL7c0WmmIKqsWJ4HNeKktvPljAbfxBhXTpcpmo19ZBsdkp+hlnLXFwxwSsDHUM5d+d gOLVLWn8gVcyUI2fwKFZQfTWAiiD/gxiMMOB7qu6ZdJGTmpXLz8YKjvoNO4wE9npPlGb j7Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7erg8T/suDyNnxBlOv6+Oc8Opzezhe58BHPmkVpN4aA=; b=qVNkIEZzqPXq308EFL0nKbLMDEjpiN9oaw5xbPk5ANbTT2LlfxcKckIb1YaH1FNy7h t9Gnw9aAFkozs9mm8p+J+1jE8J+pLxPWfSOBvTMifqFFPNjQKvpPploOv6UcrOvaII+J kL1JzGKlPBWpnXBCCIRgqfmatGO+qJ2wuoM69JdXMsVoMVzDWqDl4Nn+23GrdhzdV6ZO ixOTi8+TMeWo0hSlyUBqWUTx63k61Icw2NFrWQg5dyFROXSAxMOIwZxtJtClvtltH4ha gP1P4MK5ByVXEA9UY+6V+ZwbvDBHGxii7dMfEq7uwFYmVetafaWkruiVaxdl+cbOoUlj myAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BhkOBUlL; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g83si5148019pfb.278.2018.11.30.03.21.03; Fri, 30 Nov 2018 03:21:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BhkOBUlL; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726459AbeK3W37 (ORCPT + 15 others); Fri, 30 Nov 2018 17:29:59 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:46131 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbeK3W37 (ORCPT ); Fri, 30 Nov 2018 17:29:59 -0500 Received: by mail-wr1-f67.google.com with SMTP id l9so4897981wrt.13 for ; Fri, 30 Nov 2018 03:21:01 -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:mime-version :content-transfer-encoding; bh=7erg8T/suDyNnxBlOv6+Oc8Opzezhe58BHPmkVpN4aA=; b=BhkOBUlLAGclsf/5TsLcx6uomblvQS6WfUPdzwhA8z4BxHRt5LlX+Gda8DKBrT81bH rd+M6sJvPC+WIX2zKH0D6oPrCPtnyZPvB7HbasB+6U3ah5csVheP4oYGzfsYX01ljQjZ qBS/6RTRTn2mpzBtDlPbvGXL+r7jABJUwEhv8= 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:mime-version :content-transfer-encoding; bh=7erg8T/suDyNnxBlOv6+Oc8Opzezhe58BHPmkVpN4aA=; b=K4fKSutYSq4mr5TyG3FrWHzkF5uaPHTHnejXOmj2EsUsPbcFoTVc5OvIoc8q7HQnsn U+ZO/tyPvPs4ibS1WE+PTvRSvf6zbyNHFRDwJRpBhujKj7pu5bZH/AtLnICvuFEUWj/I Pj05jqmVisgpgkeWw0hJaaBuzSUQJHReJY97w0RPJqEgy7qG2yvQwP/nN/ktW9jyReuk vFMGgXEDPBUPr79Ch5cczXu8mvM3kLrHnsY4rRHKFH/o37BIzQH2edWf0w9Nq9FlxQ7Q CthcbMZeag8vBmMnWydJ/aMet9p2l/7eMc8tu9e8ghXpVxCY0cpurp6oRqgRyW6WjfO9 p1BA== X-Gm-Message-State: AA+aEWZPziCnKo5YZ7C/UQAYGJYInP66CXI6GIKCdPump3g6vaVbaNK3 zLvaPIZO5DQhT6MeQ3EgWb1gWg== X-Received: by 2002:a5d:558a:: with SMTP id i10mr4429921wrv.287.1543576860758; Fri, 30 Nov 2018 03:21:00 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id o81sm6585217wmd.10.2018.11.30.03.20.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Nov 2018 03:21:00 -0800 (PST) From: Srinivas Kandagatla To: ohad@wizery.com, bjorn.andersson@linaro.org Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH] rpmsg: core: make rpmsg bus DMA capable Date: Fri, 30 Nov 2018 11:20:49 +0000 Message-Id: <20181130112049.14444-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Many of the rpmsg clients like audio, fastrpc 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(+) -- 2.19.2 diff --git a/drivers/rpmsg/rpmsg_core.c b/drivers/rpmsg/rpmsg_core.c index 8122807db380..33881e70f478 100644 --- a/drivers/rpmsg/rpmsg_core.c +++ b/drivers/rpmsg/rpmsg_core.c @@ -510,6 +510,7 @@ static struct bus_type rpmsg_bus = { .uevent = rpmsg_uevent, .probe = rpmsg_dev_probe, .remove = rpmsg_dev_remove, + .dma_configure = platform_dma_configure, }; int rpmsg_register_device(struct rpmsg_device *rpdev)