From patchwork Mon Nov 9 08:54:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 320904 Delivered-To: patch@linaro.org Received: by 2002:a17:906:d156:0:0:0:0 with SMTP id br22csp2484190ejb; Mon, 9 Nov 2020 00:55:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9nhUPdMHnqFIkYzb77rgXtLDu+WQEHBr8sFDCg4lEwQ54Z6qB3fmlA0vfyMyrarZOmT4p X-Received: by 2002:a17:906:15cc:: with SMTP id l12mr9444575ejd.363.1604912109480; Mon, 09 Nov 2020 00:55:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604912109; cv=none; d=google.com; s=arc-20160816; b=FKG2pgE1Ye/5JCgnjoXBSarjaO/DCRJfx3w54MmFE8WW8p46wKimun/tzTZ4AgFPvD g2ytxo4KF86GeC7jsi9jA/13o7FxkRzrbq+zRzJ0zZcOa62gpxiWE0j5jRmqzPLeAJqt e6AON9uipiOfxsplYwdl6KzhSliK/XrtgBa0H4G5FbVv58TNbISe4X8E6zQkY2IZZg5b Go1vl5R3P+ObjiBC1zYSbMmw9iy9dbXd2BAKmAy3ODpIPIoFweQXd+U+xBKKS8G3kOWb S6eJ1oqRpsJfB2Y9lVUHLVdzj6wF95caGOHYYP6EoVJWf61cLUsGHtJ/Vn4ywkbEgZ0S 7u1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OGuBbjzxJvHEJDZPTp05R7EbllPy6uDP9ZAIckkbm/Q=; b=H0Dj1k2TdwhnEJkTm3D9gqf3f0qRhAjdABF0KP84wHDkqd+Di1R/CrE1BCnk1qRYkx 2HLVZ5dKJp1xYXvJXASQSF8XO+ImG4Okv1LPcmkXzDpqvUbuWQqAj6SETYSeJ83zyV+0 TBkjbeXTldGmYEC0abR7BVAy+v0P1L2JbAGcbVqBCHlawjFupsDkRETK15ydxoGVVgni QX/gKP48PDkbHJYTCWrSa5/e7jL3X2R3AvI1YcbcJ3cRETrZw+kZ/iIZU+zeQl4uxwuH MP/C1FxWsuq26weXznoiKFoM/N85E7YQGER6/ee3MFprOxODHdLv8MkEybLqJG+Ymsmz gOzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vu1OXd0f; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e15si6716010ejr.176.2020.11.09.00.55.09; Mon, 09 Nov 2020 00:55:09 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vu1OXd0f; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729774AbgKIIzH (ORCPT + 6 others); Mon, 9 Nov 2020 03:55:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:44606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbgKIIzH (ORCPT ); Mon, 9 Nov 2020 03:55:07 -0500 Received: from localhost.localdomain (unknown [122.171.147.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 775A420702; Mon, 9 Nov 2020 08:55:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604912106; bh=FAWZqcB8rrnTRfBi5nGT+Xgbjb35tQW4OIlGOvwmpXU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vu1OXd0fjQyx9LsdDupVEILzPTSAWGthDBDADg6HzHxHsfHFsq33UamYUM1dJ/FNY A8LpT98fWI6YvXgGy0PFN61Tgq4jqm+Fs+PuIyZmubqi5tXp3tz1xjl7PHfGY6ljkr eG2QJ7Z12VGn1DTXGLTfbW/1bQ4xCyhkLN9Fi35M= From: Vinod Koul To: dmaengine@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Ujfalusi Subject: [PATCH v6 2/3] dmaengine: add peripheral configuration Date: Mon, 9 Nov 2020 14:24:49 +0530 Message-Id: <20201109085450.24843-3-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201109085450.24843-1-vkoul@kernel.org> References: <20201109085450.24843-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Some complex dmaengine controllers have capability to program the peripheral device, so pass on the peripheral configuration as part of dma_slave_config Signed-off-by: Vinod Koul --- include/linux/dmaengine.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.26.2 diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index dd357a747780..493a047ed0a2 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -418,6 +418,9 @@ enum dma_slave_buswidth { * @slave_id: Slave requester id. Only valid for slave channels. The dma * slave peripheral will have unique id as dma requester which need to be * pass as slave config. + * @peripheral_config: peripheral configuration for programming peripheral + * for dmaengine transfer + * @peripheral_size: peripheral configuration buffer size * * This struct is passed in as configuration data to a DMA engine * in order to set up a certain channel for DMA transport at runtime. @@ -443,6 +446,8 @@ struct dma_slave_config { u32 dst_port_window_size; bool device_fc; unsigned int slave_id; + void *peripheral_config; + size_t peripheral_size; }; /**