Message ID | 20230417-ux500-dma40-cleanup-v1-0-b26324956e47@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 b10csp1951115vqo; Mon, 17 Apr 2023 00:58:44 -0700 (PDT) X-Google-Smtp-Source: AKy350YQTkTE1k9vmPsGH68MqQ0KhllsBbVSc4BZ+SEx8GxJIk2mYraSPScsNnCyUKVqs+FrkB2Z X-Received: by 2002:a05:6a21:339a:b0:ee:2bc1:6e01 with SMTP id yy26-20020a056a21339a00b000ee2bc16e01mr12017404pzb.24.1681718323837; Mon, 17 Apr 2023 00:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681718323; cv=none; d=google.com; s=arc-20160816; b=lp4WcCBtMRgCrhdxfMKxwDqiapcmSLAedWItzbTD6SDVOSYcqojGiZL10CnQaDhHbG I6t8BZCRzck5CIA6BrjmU/SNTfx6ox1bL7HJMc//zfU5cA3oJBKLCEcUb3NCsrH+paFU QdDZpaUYce1xtWNVwFySNmWWFjpuz7/nQ236te4BSR3gwXOVOA3Jk5LnSoNE3bAfa2Gp hMTL2tmDonc0zY9AUbQhrpIZ+hozfskNsEvl5114o9zzOKIqq6GKLOy7sQOA23OoMXN4 BzRh6fKyHH8BmlTW8A8r9tSYIw/OoXK6lPKMAqSupFNUDOEdioC73+cix10plCEeH91c VBrg== 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=szDgWnNXTe804j/JNxSmhLFRIKCdtPV3/vRqisoeX9c=; b=j5tA+n4n/+3plEi07o2oOPx4IT9X08fKwTe/Z2FvkDxoSjQZOgYGzXJcHOcq5rXU2c UO6c9wDdqjGsJdyuVTpNpG+WPXxI7MhKkQ4yUbZ8qT3H0jFZDynZT8Xsm6q06gt/TyWI 2IfdoWH8RUAzYVe7Nevy/5ef5ulpfPM/7rWX4EUEojyjdiWObNVN9qp6bkzfgsvsKxum pCryQ+Ck4AoYnG4nu0+/ZqN1nofMJiUc1RxladkDXHWC+y4v4Wj/QlJ4frDwR2drunbY 3iJvZ1a3XRdTCpDGcHbNfXHTbUsEVuqisTECbip9i7jr25aVnB9flQ6w1ZRgr2GOvOz9 FpnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LvVKMQo0; 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 s9-20020a63dc09000000b005194496616bsi11036084pgg.348.2023.04.17.00.58.29; Mon, 17 Apr 2023 00:58:43 -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=LvVKMQo0; 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 S231130AbjDQH4A (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Mon, 17 Apr 2023 03:56:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230446AbjDQHz5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Apr 2023 03:55:57 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D0A935A6 for <linux-kernel@vger.kernel.org>; Mon, 17 Apr 2023 00:55:55 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4ec816c9b62so1187404e87.2 for <linux-kernel@vger.kernel.org>; Mon, 17 Apr 2023 00:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681718153; x=1684310153; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=szDgWnNXTe804j/JNxSmhLFRIKCdtPV3/vRqisoeX9c=; b=LvVKMQo0ZcjqPQ6Gv9LgJOZBLKBUFlPI1lR+IDNZ7qFT83T2c32tlELFoqukViJReg h40mUna8ViUXKrdPetxT4x7KTK6OKkQkH7O/KwVO20GXvIrVfHySylcaHt3Qt9X6jDb3 CRWtVwGHiPFi6PLqAFasvlZzARJUcPChnNXOioktG4jjJSVIpwClTcVAMLQuvjf4Qio6 vMUgTx1o9SThe2DJMNGAY7CwX0MGB6KQ/tualpZEjVv5RxtEW2Gh/1MWQCGRW3KOnv/y J+4awPWN9fWOIVZB/iYUpeWp6nLe5F4ccdUG9dfRouxCXY5cvpfGd2gPexBvrk9wRZls d/Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681718153; x=1684310153; 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=szDgWnNXTe804j/JNxSmhLFRIKCdtPV3/vRqisoeX9c=; b=BOK0HEV4IBnboVeQ1rdFOTH0aIsiKoSkx995EabOWSWMo4deuMzZAzHKi0lfICWQ/N IKA1ZtAyU/arALSa6n60pqt4mZpUiDaxdbmRq+Ry6bdtB3xLRXWbsnvYfuO86wSmuhNT THgbe94V9t3fOpK6dvnFmDF2LwMH370kS2wdkQT8dQpdUxQub439vwJQNTtnzLSQHZAI 7wdh6VQIHHq5ONYPBvS0c/5V7hPnql0GhALbYq6Gvmg2FLzgSgID4Gqk5IZxC8kf6Z5k bLv0Xb3O5D1OeVzoIkRsPU61W3lotBEj9ZyAiCZCtcovTNDObCTlkBkItrq08R2rit6S R6dQ== X-Gm-Message-State: AAQBX9fSdrMoGsimpAqpBXhw+B8DYO24kfYVrj3RtYZHGUCQqYU3rowB E07PFxDEembm9BCE9m5SZ0vZ4Q== X-Received: by 2002:ac2:5a08:0:b0:4b5:649a:9105 with SMTP id q8-20020ac25a08000000b004b5649a9105mr1659136lfn.65.1681718153313; Mon, 17 Apr 2023 00:55:53 -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 p2-20020a19f002000000b004eb274b3a43sm1952547lfc.134.2023.04.17.00.55.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 00:55:52 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Subject: [PATCH 0/7] DMA40 SRAM refactoring and cleanup Date: Mon, 17 Apr 2023 09:55:45 +0200 Message-Id: <20230417-ux500-dma40-cleanup-v1-0-b26324956e47@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIL7PGQC/x2NQQqDMBAAvyJ77sLGRlr7ldLDJtnUhZpKUosg/ t3ocRiGWaFIVinwaFbI8tei31TBXBrwA6e3oIbK0FJ7JWtuOC8dEYaRLaH/CKd5wig23kPvTO8 7qKXjIugyJz8c7cjlJ/kQU5aoy7l7vrZtB0KRJRp+AAAA 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=unavailable 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?1763409473070944287?= X-GMAIL-MSGID: =?utf-8?q?1763409473070944287?= |
Series |
DMA40 SRAM refactoring and cleanup
|
|
Message
Linus Walleij
April 17, 2023, 7:55 a.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>
---
Linus Walleij (7):
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
.../devicetree/bindings/dma/stericsson,dma40.yaml | 35 ++-
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 +-
5 files changed, 182 insertions(+), 294 deletions(-)
---
base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
change-id: 20230417-ux500-dma40-cleanup-fe4f8d9b19c5
Best regards,