From patchwork Thu Apr 27 12:09:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13225406 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54544C77B73 for ; Thu, 27 Apr 2023 12:10:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243530AbjD0MKD (ORCPT ); Thu, 27 Apr 2023 08:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243143AbjD0MKC (ORCPT ); Thu, 27 Apr 2023 08:10:02 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8924F4698 for ; Thu, 27 Apr 2023 05:10:00 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4f00c33c3d6so1151793e87.2 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=L/SMRmQAxDJtbozR2GsdjsSppprFcBj2OQ9D63mlAbevwl+W+k5QCKeqUs92kL1ot0 yTKUyQgrw9J6CEGVAKrvqr4X2pamPl3AzHIL4vIAgSHJjVS4yV7u8eMFiCK7Z4nzBpVf noopYtata2hRprnqbFzB4tMnkq5muCpqKxMqDSh/wbJNrVfdkXSbgim4qIDdLbTfMlQC ui14B4RK2iLIsUgp/2/j9QtZRpJxnXzfGs/uTvl55sa+9NeuTVm1E+aItz3PI4D+s+Dx OQZ1k/p7Pik6WsVJpGcAz9wa0Z+fNvI+hKqztIxQNWprhYpLlbVUajQs9MScmuMJxrGS QzpA== X-Gm-Message-State: AC+VfDyiRA58K2mfquQ48Jn1ac5/xUxPPmT2DYmEUpa24Bys5ioilt2I Faz+vX6CA3K3OccbWiG3qL9oQQ== X-Google-Smtp-Source: ACHHUZ49Ifw3IGPXCugcW1uWCK8DG1B1lpCN+elQI5TdLqaoq2CrgC4KbKYoN9gZK933+CpLqKxpyg== 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 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 Precedence: bulk List-ID: X-Mailing-List: dmaengine@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,