Message ID | 20230417-ux500-dma40-cleanup-v2-0-cdaa68a4b863@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp219612vqo; Thu, 27 Apr 2023 05:11:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7RnA0VlAoET+RDLiTJgE3jisM9i5kjfs2dsS3sWsYhHvRPFnOAEST3Q5gaKqG8dh8w90FM X-Received: by 2002:a17:902:6b08:b0:1a6:a7f4:b5 with SMTP id o8-20020a1709026b0800b001a6a7f400b5mr1125386plk.18.1682597477058; Thu, 27 Apr 2023 05:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682597477; cv=none; d=google.com; s=arc-20160816; b=o/g/GK3t5+UlQr0wKsiJbzV3xq/REnFFynDSvLEJYbcVrbNIIDvB8fg6UQ7mFanj8q EChUa4TXix6Ue2yWbLymtuMeNT1AEgmxfTGsR8pcp4X1EEaxHJ81hX5/ACH2RXnAxSkA YA95jUKwNP34nsmBMqsd9Voh37HAhik6zzO2UWLudKjM5EHTkHBhyPgV3MpD8ICEcnQn eHx6/Oz1h6Ep/dApdTNkFF7hF8Y72ehbf/aaRn+7AYxGhH3T66lxXp/4E8e/8+2VYNKL 25kn5EthBpKMQdwlCtnCqCK9m9ffm/X/1cdfV5g1syVH8jATyIzpu5woul8YYZhiF7ZZ p7ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=gB9tP7rs+oqMW9ALl8bFEzP45alTjiFtwAOU4p0A3+Q=; b=je65cigbRivV4pkGl9obPU/rR41VytoY857Lm1H+hJTu2NtkCu05JdBkNOfZ6Voq/t wPR2lx+k+e5d/D7KO0aCp0CYVRR/o2BWeFEuTk+GhNKbPwrYBDBaI19L8yy+0ONUG4rA Bi9J0Wrertm2RB62mwe7zdChjLZP2Arou/lGN8sOLtAbKKqGgo9Ms7S+dWOdnQEOBCXb ZVQTXuEAI1B4QobQEXi9ZJV8Dl4odWaiNLcBt8odx/vYE7/jNXIbowEK8NhEG9QuXh+R vKqcvfe6nM1z4fKBRYlJcKO9OaoSKi6P5zx1wxaDsqecewTRGWICkoN/zpCnzC5zWT+1 5h3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NJztf3p4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a170902d1ca00b0019ce4e2be99si16055109plb.193.2023.04.27.05.11.01; Thu, 27 Apr 2023 05:11:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NJztf3p4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S243694AbjD0MKE (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Thu, 27 Apr 2023 08:10:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242972AbjD0MKC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Apr 2023 08:10:02 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88F1D4692 for <linux-kernel@vger.kernel.org>; Thu, 27 Apr 2023 05:10:00 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4f004cc54f4so2418563e87.3 for <linux-kernel@vger.kernel.org>; Thu, 27 Apr 2023 05:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682597399; x=1685189399; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=gB9tP7rs+oqMW9ALl8bFEzP45alTjiFtwAOU4p0A3+Q=; b=NJztf3p42UXFPuoXibn0+jqHTbnG84XbMZGKeP94kzfUPTQBB/OuFcWZcNk+OkrZLX e8PdVruCzOBS3FlWQu5sgElAvbdZmkXJxuOTuTUw+BY6YS8tFHx393HXFfOtxSz6eCLB 852JfhSqWOBG3Ks9bDMPSFGeGsoqoqbzvnoTyGUu6HlSV04dXjvQLEAT1rnuhdgKD3mm PMcuQviX9SEqipD/6F+87Io0TOb5pVwAMTeGNNAgwtaC8cgp86NtWXyALXEiU6q/sMwf ZT2d/BzrLaZ8n5yGtKUXDmdVibJXNO/FnDoK9UbNte4QwoI3Y86So0WuB0fWTJde3BVa +J5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682597399; x=1685189399; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gB9tP7rs+oqMW9ALl8bFEzP45alTjiFtwAOU4p0A3+Q=; b=N3gioSzE4gn6ebSPNrvmTgqUjlc0cAzM8sZG314pTTyelQ8HSvvPxWZtDljAxsHgBI DeF3+1Ht/axWLQlGOVduXV8tHecwq/FwHjzZrlaDWg7RTAsHXO/33rv+Bp66O7EoogF2 so5ciwbFXRLgfSWFEZM4FbmGjJeeB2CkAdhLRh8slGd/nEH75VvbuGRNYy+gx+rg29zV yC+Go5DfRgzBlqwEfObWIpAxIuEKvyuQQuGEtist+ae1KibsnaUpDHPYMNX12Qatjo0L X2YZV+tCCUr8qaGlwatP9VI/E5glXBzGjgSSrxoM0RHtaNIF6gA1UL6L6nJligxQB6Ap aUEw== X-Gm-Message-State: AC+VfDzEdMXpqxzlNuMexQjXLerelwW1RIRvQegKgvCh9maTmJxvQ+tw jef4UG5nNfF7lPTw3xDV1jyXnKe3vqUiMtooyjM= X-Received: by 2002:ac2:52b7:0:b0:4f0:80:d0c0 with SMTP id r23-20020ac252b7000000b004f00080d0c0mr570943lfm.63.1682597398713; Thu, 27 Apr 2023 05:09:58 -0700 (PDT) Received: from [192.168.1.2] (c-05d8225c.014-348-6c756e10.bbcust.telenor.se. [92.34.216.5]) by smtp.gmail.com with ESMTPSA id e7-20020ac25467000000b004d4d7fb0e07sm2892044lfn.216.2023.04.27.05.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 05:09:58 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Subject: [PATCH v2 0/8] DMA40 SRAM refactoring and cleanup Date: Thu, 27 Apr 2023 14:09:55 +0200 Message-Id: <20230417-ux500-dma40-cleanup-v2-0-cdaa68a4b863@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABNmSmQC/32NQQ6DIBBFr9Kw7jSAqLWr3qNxATgqiYIZ1NgY7 170AF2+//PydhaRHEb2uu2McHXRBZ9A3m/M9tp3CK5JzCSXGVeihGXLOYdm1IqDHVD7ZYIWVft sKiMqm7NkGh0RDGlv+9MddZyRzmMibN125T514t7FOdD3qq/iXP+HVgEcjCwyqaq8QFW+B+c1h UegjtXHcfwA9c/TAtAAAAA= To: Vinod Koul <vkoul@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij <linus.walleij@linaro.org> X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764331332350686562?= X-GMAIL-MSGID: =?utf-8?q?1764331332350686562?= |
Series |
DMA40 SRAM refactoring and cleanup
|
|
Message
Linus Walleij
April 27, 2023, 12:09 p.m. UTC
I started out by augmenting the STE DMA40 driver to get
its LCPA SRAM memory from a proper SRAM handle in the
device tree instead of as a reg cell, and then I saw
that the driver was in a bit of sad state so I did a bit
of cleanups on top.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
Changes in v2:
- Amendments to the bindings after review.
- Link to v1: https://lore.kernel.org/r/20230417-ux500-dma40-cleanup-v1-0-b26324956e47@linaro.org
---
Linus Walleij (8):
dt-bindings: dma: dma40: Prefer to pass sram through phandle
dmaengine: ste_dma40: Get LCPA SRAM from SRAM node
dmaengine: ste_dma40: Add dev helper variable
dmaengine: ste_dma40: Remove platform data
dmaengine: ste_dma40: Pass dev to OF function
dmaengine: ste_dma40: Use managed resources
dmaengine: ste_dma40: Return error codes properly
ARM: dts: ux500: Add eSRAM nodes
.../devicetree/bindings/dma/stericsson,dma40.yaml | 36 ++-
arch/arm/boot/dts/ste-dbx5x0.dtsi | 73 ++++-
drivers/dma/Kconfig | 1 +
drivers/dma/ste_dma40.c | 336 +++++++++------------
.../dma-ste-dma40.h => drivers/dma/ste_dma40.h | 101 +------
drivers/dma/ste_dma40_ll.c | 3 +-
6 files changed, 254 insertions(+), 296 deletions(-)
---
base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
change-id: 20230417-ux500-dma40-cleanup-fe4f8d9b19c5
Best regards,