From patchwork Thu Oct 8 12:31:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 317472 Delivered-To: patch@linaro.org Received: by 2002:a92:d603:0:0:0:0:0 with SMTP id w3csp1308541ilm; Thu, 8 Oct 2020 05:32:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztjzRvb74TbpnGr61GQkfWV4xRx0o2OiXr4n9sFPhNba9JfSCLNHT3LKOQ+oxD1k2fuH/p X-Received: by 2002:aa7:dd4b:: with SMTP id o11mr8545879edw.251.1602160338099; Thu, 08 Oct 2020 05:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602160338; cv=none; d=google.com; s=arc-20160816; b=N+z+imzRObNx7jr02KPAm4jDEh4q1NGVPTSujo5cZah7/MK9L3dMnGl8RP5qi5Y7ha lDOUn2Lovfh28R6s3O5aCwlp6Kw1PoC8MS9ccBhM/iwQ6KYfXZ3dHdsa0mB0DWLSr/9p iv4zKw1+UUdYZhoKqP1H4sTu6JosyswyNpcZtOkYUdFpIvkTYEnW46r+XN+HKilbqSYg DBOE1HbGLXlSEOQ+Z1T5RNb8swbz4d/pYfAYEEiJJCaWFoY//V7DWxyKuAb8VSrHQwup wTiFkh0yy4f+YvsM+696KQStPaZ4AFMKDWypNl8Gea5FOSqPUL/p0pkgpXqkO9UtmLjx 3J2w== 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=RbSi8uMi8IQtiGIoF1yBFjp5YM4pQp954JlrSRPR5oo=; b=JVSUestn9qBYC6IOfJUZNrMd4pFGSdsgMcdovPFkhIAQlxTtogQo+CZrTX1gCnh9GX bLkiXYaWCLA++bita3KJTZv4n3i4Qx5NvtDnu4SL6n4xTpzcRMz0OiwvqQqTRTabltdU 2YRKAuWM9SM7+RECajgJSqSjlH7LGEdOvzXk8krVvX2ZelHlH1u2aJORIqJV59I9kF9d neQHzl+Mr7bo5khbXrKHoxrSS7CKp/cfjJKfhFpP2Szwc5YyAeIqiztC8Y8r6uYemwid 9sXYHulK8ZkaENbEhJywnGQwo4oKYtUhnqyEea8a2sgg0ez304B2B0slT9WnFzz7NrwW 47tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mI5CoUeH; 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 lf14si3758480ejb.720.2020.10.08.05.32.17; Thu, 08 Oct 2020 05:32:18 -0700 (PDT) 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=mI5CoUeH; 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 S1725802AbgJHMcR (ORCPT + 6 others); Thu, 8 Oct 2020 08:32:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:58002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729942AbgJHMcQ (ORCPT ); Thu, 8 Oct 2020 08:32:16 -0400 Received: from localhost.localdomain (unknown [122.182.224.172]) (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 987BB2083B; Thu, 8 Oct 2020 12:32:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602160335; bh=ySoQckmFJh8rm9F+Ix3Hhff1OcUz1ve3KxVHcsZ+2xA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mI5CoUeHWcffAjGKN3ozZqTb3SB5WHq24a0X7oVEUdvQwGB3gnZ0ZuHwmWjtT4YCE VzuV6wWCAB1hIqSPSwLECNvMgx5BkSob4Xd2aAxwHzcju4vAIu157bSL9ieDwoIXgr lEpMZRRXaO8Ef2e4OMv8n7XMJC+2D8egHO4O1Vns= From: Vinod Koul To: dmaengine@vger.kernel.org Cc: Vinod Koul , Rob Herring , Bjorn Andersson , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Ujfalusi Subject: [PATCH v4 2/3] dmaengine: add peripheral configuration Date: Thu, 8 Oct 2020 18:01:50 +0530 Message-Id: <20201008123151.764238-3-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201008123151.764238-1-vkoul@kernel.org> References: <20201008123151.764238-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 6fbd5c99e30c..a15dc2960f6d 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; }; /**