Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp540621rwr; Thu, 27 Apr 2023 05:10:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ59pTH7aKUA/olgySlZWOAc8T8rLVHrh+z1vA7V1GTkYy1E1XeX8PWHMvhgY/aq3FcgefJH X-Received: by 2002:a05:6a21:32a2:b0:eb:7d41:a70b with SMTP id yt34-20020a056a2132a200b000eb7d41a70bmr1630536pzb.1.1682597452624; Thu, 27 Apr 2023 05:10:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682597452; cv=none; d=google.com; s=arc-20160816; b=e7var8QGzBa7udEr+hMc2zrlEMybrx2nDbv/EXGU2Re3iE4q/fMgZGsaSdW5e84Trx +y5Y3riUvvVnxLWKnQQPJFRso5hu4mMrg/vAcfNFivfMl8RZGOUSJgrU5mI3m7gdNWTb FXQj8DPlkroCpJ3SOOsjIaconh6dL3k64s+R2pSYgBu/HpyHZzVKAJpyF4JLWENSGHHs H+RxffD0oiMUJq+VbROfNMosYn/uvxti/gt2UGMpnV1LeX4xkCnKfPs58wda3Z2OaUCN xaOvZDF+PceV6ceAsWiFKCa47QR1cpTLMW7AdwIgO9DUNNuHYeZboKkdw9dwsWE1Nemj WbdA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z13-20020a63d00d000000b0051f0e959dc6si18392086pgf.483.2023.04.27.05.10.37; Thu, 27 Apr 2023 05:10:52 -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 S243665AbjD0MKE (ORCPT + 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 ); 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 ; Thu, 27 Apr 2023 05:10:00 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4f004cc54f4so2418563e87.3 for ; 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 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 , Rob Herring , Krzysztof Kozlowski Cc: dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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, -- Linus Walleij