Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp357293lqb; Sat, 16 Mar 2024 07:05:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJFB/znp6D6LGjePusVyumg7YepEh9aFGE1jxP9RTmtz7O8IsNncR/da4V5m9YO2F7tAHgWNJ/UAnJTZ1fPyS5rGpDiic5gGV/7E7qlw== X-Google-Smtp-Source: AGHT+IFyMJhUbqPOeZgZmNCHike/qoKOluFKlmIFy+xIoQitFtvkiOdWIFIlDDFHjg+7/jgKLWgi X-Received: by 2002:a05:6a20:93a7:b0:1a3:56df:b10f with SMTP id x39-20020a056a2093a700b001a356dfb10fmr2109617pzh.12.1710597912771; Sat, 16 Mar 2024 07:05:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710597912; cv=pass; d=google.com; s=arc-20160816; b=antqwHjmGokXUJyf87PZAKtwBDBsDPbZ0I8+jmLSgEQEj2AWrOlvEoMjhY9hkjNHQR TwXHikBc9OsNtjkrgeMMOclbS3yx3q4k05XlQiQhX4ws/xsmKDHv2nrEjwPLCqnbx/+P XrT3JzF/qDMoTYpQNadL/XzfkE2vC3JbdwQXZbENsibOqMHDljsqUOzsJPfl8H8PhXcM Y1VFgIi2Ku/IcnMd7/bfPB4zLo6T3H2X0YRaWBX2e3WsRYWHusJTP5LiqYfzlPeKHCy7 EPJkS/r400vdvplrf620VRq1pmyXtyUT/c2B8mSU1XZBiO90cCkhIpB5tqHHJwtwbSok pQdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=QYAlQCnBB1ai+C65Z85X2xSlCYDBjvN0f/4i9Je2h4U=; fh=hmZFxP7ShtE2kP9i0KppWYhGqcoMQGX7lc+ovNtr2qk=; b=HYJ1JskP4knwdsWivoqPbF0lgTsY3At05TdVaCKatlAYZSqxnLDN4gNMjcS6whH7Q/ ZOcNwjrkKZovVgiWyew3GYbbW+39nBEEeds2CxZOj3sEgiQNsyEQAir/dx8XhXmNUMqQ CQfj3FaaLtRqiDvqWgY/6bPOvYkEahRqnSs0HcHhKlq0cMSBB+PiCv79TJg1wTTa177x E/AeKf0o/8erw/b8H9qocodDMLzOeGb8LImfAzhE39/UQfGl2O4AdIBGiwH/cRXdez8w 9/1u5u2GTxPK7lT90WOYsRQNIUwr0KSXxcVv739+P4HbCZjjgjELI+dT18E/efqFnaLx 9/pQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GTyPkDiW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-105196-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105196-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e19-20020a633713000000b005d8e3645dcesi4611784pga.210.2024.03.16.07.05.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 07:05:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105196-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GTyPkDiW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-105196-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105196-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 73444281F0D for ; Sat, 16 Mar 2024 14:05:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC97D1AAA5; Sat, 16 Mar 2024 14:05:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GTyPkDiW" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E873F2F4A; Sat, 16 Mar 2024 14:05:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710597905; cv=none; b=uStQ8IzkykXSDfoWbR+Uq+N9iLCgGJJ5HDuZB7rD5c4Ukr+cqMQBdoI9b4qEu9lyN+fQgdQfNIdbsf1VvkPginGsSyt67rAF38Q/xlBZWeUrU2Qo5je3bPtWqcWu+2F99FK8vh8rgbCtu7wEoJC03DlDntiKRk5/NG1Y/CxQyEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710597905; c=relaxed/simple; bh=amixzluleKA1HX6A3tMriG6xxpkzudzpXqwqjiZetbE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fzrKl8pt4Qbulha7BFCjfE8t59vqV/SDD49JTJYpu72hsVM8luu3kNL53NGfA90Wh9RA92eSPpBGWSd9PEvyDqIlKaO5ONmDwUNIkyT+NY9DYucrH1FGcH3GTYxUL4hHetB/PHzDqJV2TGF8qA/1C/HfZ9FF1es+ZogwdP8Te/8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GTyPkDiW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 892C4C433C7; Sat, 16 Mar 2024 14:05:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710597904; bh=amixzluleKA1HX6A3tMriG6xxpkzudzpXqwqjiZetbE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GTyPkDiW/xjYqiebMrtBr69ygwNafwO79gbrZq92gRVVyR6Dv03Pnbt0ieH2o49NR w089NssxcGEbE3r9gaOWw0DXw9p3NvmvUZOO8p4vCFqwXj3iqVkR0otg4m1YhLexBu D3B+J8Wasf5Ivde5izXuVcAiEhkF9ELVWdatXJbRed5l6Tk1bvbqu/hcHNAsfHK3sb Ma44B2bmeeLghltTp1ZBjJS+WxwcaxlIcr+MNxvcrLYI+Be3ggpbmKhnwt8V/qFhWK Mmk8KO3vFMBK0sOZX2Bgr+5y4WRR1S1CJ+eB+3IDHt44Y/cMCg/u7EYnXpSBk9FwXT rqwDgO4+EhheA== Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a46805cd977so252048766b.0; Sat, 16 Mar 2024 07:05:04 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWSUYPPrDcV/Yy3Ar41kt86gPYqZxprz+yntBG84anrMDbiyAd6jK3dR33pLAtxsJqFz7jplWQ0lXTxyYjKRVt+ZhTKxtPmbj9jJJlY7vWMM9vx/d2zyh2wjlpR7jIZOHZBtTltt3WQr/jxA1Z07VYR6azZa0v6oVMOj7GAaMFeGYawak1O4KTBkViYD69fJ4uATMLfMP8IuIRWUhnh1CU= X-Gm-Message-State: AOJu0Yy2bcggv+4NgHGK1WbtXilpLpMvv05mg4JL10NpqXR2YrtdW5Go GlczByJR8bd8DA6Gbs41aVQT4DvV0Odhm4TLuhUnFhDJiAp4YTkHbDfX2yRb4ZO9avLBii7x7Z5 +q+o9fiJVQY4jBh6gYnwX9UZ7WsE= X-Received: by 2002:a17:906:11d6:b0:a45:1850:e6ed with SMTP id o22-20020a17090611d600b00a451850e6edmr3653615eja.6.1710597903023; Sat, 16 Mar 2024 07:05:03 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240316-loongson1-dma-v6-0-90de2c3cc928@gmail.com> In-Reply-To: <20240316-loongson1-dma-v6-0-90de2c3cc928@gmail.com> From: Huacai Chen Date: Sat, 16 Mar 2024 22:04:50 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 0/2] Add support for Loongson1 DMA To: keguang.zhang@gmail.com Cc: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mips@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Keguang, Sorry for the late reply, there is already a ls2x-apb-dma driver, I'm not sure but can they share the same code base? If not, can rename this driver to ls1x-apb-dma for consistency? Huacai On Sat, Mar 16, 2024 at 7:34=E2=80=AFPM Keguang Zhang via B4 Relay wrote: > > Add the driver and dt-binding document for Loongson1 DMA. > > Changelog > V5 -> V6: > Change the compatible to the fallback > Implement .device_prep_dma_cyclic for Loongson1 sound driver, > as well as .device_pause and .device_resume. > Set the limitation LS1X_DMA_MAX_DESC and put all descriptors > into one page to save memory > Move dma_pool_zalloc() into ls1x_dma_alloc_desc() > Drop dma_slave_config structure > Use .remove_new instead of .remove > Use KBUILD_MODNAME for the driver name > Improve the debug information > Some minor fixes > V4 -> V5: > Add the dt-binding document > Add DT support > Use DT information instead of platform data > Use chan_id of struct dma_chan instead of own id > Use of_dma_xlate_by_chan_id() instead of ls1x_dma_filter() > Update the author information to my official name > V3 -> V4: > Use dma_slave_map to find the proper channel. > Explicitly call devm_request_irq() and tasklet_kill(). > Fix namespace issue. > Some minor fixes and cleanups. > V2 -> V3: > Rename ls1x_dma_filter_fn to ls1x_dma_filter. > V1 -> V2: > Change the config from 'DMA_LOONGSON1' to 'LOONGSON1_DMA', > and rearrange it in alphabetical order in Kconfig and Makefile. > Fix comment style. > > Keguang Zhang (2): > dt-bindings: dma: Add Loongson-1 DMA > dmaengine: Loongson1: Add Loongson1 dmaengine driver > > .../bindings/dma/loongson,ls1x-dma.yaml | 64 +++ > drivers/dma/Kconfig | 9 + > drivers/dma/Makefile | 1 + > drivers/dma/loongson1-dma.c | 492 ++++++++++++++++++ > 4 files changed, 566 insertions(+) > create mode 100644 Documentation/devicetree/bindings/dma/loongson,ls1x-d= ma.yaml > create mode 100644 drivers/dma/loongson1-dma.c > > -- > 2.39.2 > > base-commit: 719136e5c24768ebdf80b9daa53facebbdd377c3 > --- > Keguang Zhang (2): > dt-bindings: dma: Add Loongson-1 DMA > dmaengine: Loongson1: Add Loongson1 dmaengine driver > > .../devicetree/bindings/dma/loongson,ls1x-dma.yaml | 66 ++ > drivers/dma/Kconfig | 9 + > drivers/dma/Makefile | 1 + > drivers/dma/loongson1-dma.c | 665 +++++++++++++++= ++++++ > 4 files changed, 741 insertions(+) > --- > base-commit: a1e7655b77e3391b58ac28256789ea45b1685abb > change-id: 20231120-loongson1-dma-163afe5708b9 > > Best regards, > -- > Keguang Zhang > >