Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp221090lqs; Thu, 13 Jun 2024 08:18:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWP9wiKk9igTkXxRa9wmSNY9AMqbMd0KhodL2iXRTFdRgKk6Ym22S5Y8nIJsVpQRHUd7kIzRb/cDNWhxeX79khmg/zD3obE+olKAnggA== X-Google-Smtp-Source: AGHT+IFOnKsID0/E6AfhizTxjfeaOeYvoPngpnmeiJnyEa8e0YBMnXp6Wvv4KxCeY749Qm12+iGK X-Received: by 2002:a50:8a8b:0:b0:57c:9da5:fc09 with SMTP id 4fb4d7f45d1cf-57cbd6a8266mr85523a12.23.1718291937823; Thu, 13 Jun 2024 08:18:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718291937; cv=pass; d=google.com; s=arc-20160816; b=DTWvvC+tPjhCah35mr/6URfOJ8Fd/GY81xyOfE3ktQuCpx85sln3o83IUQy5wdQrlt y/cicpiRHFadtcLVkn7KTCAe3A3FmeRMUM3vfOCke/7Ft4Xd0oZpkoKKUYRxEnVtZijy 6iVFPbV/++LC188zd9L4dJeGsS9Rw6t4VKZUGhyJXhy6Z6OQqhuq/Ij7eagC+RyAgd74 wZJkTi/7gkfkwVN+FDo1fXG05KnQJq/fjgR2pw6llvuyET3bUt51twgCwCd3j19bQ796 pRTQKI07mRkWFboM1BCOnvSZAlQXAPR9dldin/0nlH7cpTUFV1+8kVOXjruVkSSjwAqo cFWg== 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=sIH3LeWYzl1WpwuIFtFDNqVNMnqwiwzwFCcDcabvnO4=; fh=tUk9Ilrvf/3R9EtApAy0vMDQZBJFqOqVbpanWRVskcc=; b=x8blfSWe65Lh3dH4fYuWM185pcznVHlizr+9I/r26+Z519exoc01v8hq6U2K2EW0f0 bwHaOw2DtEK81mWSILGztLNts9+d1IVqLHGQ+GXxqTTNPp4fDcuDwMHGoHTh5uaZEw8E NhdXvMllZprAHI85KlX8WRTD/wVmavyrk4gPi7Gr+wEU5VU87/tRoPcDqd/Fl+YkLd6J SHnhINm0jN/1f5Ljw6ev10wAZ+UOtWMwHy6igVbMfgpMwn1pd3DhPaAbfSMO71r7oK2I SqDPsjYe0ynEOs/bIT6dWHuBwUtCljWeYRuLt+cCmk6FEd8nKcSmws4Irtykc4QiplfT 7Y0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tx68Lz/j"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213504-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213504-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb72d69a6si855754a12.70.2024.06.13.08.18.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 08:18:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213504-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tx68Lz/j"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213504-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213504-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5825A1F25974 for ; Thu, 13 Jun 2024 15:11:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E12A149C6D; Thu, 13 Jun 2024 15:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tx68Lz/j" 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 ACA7F149C4B; Thu, 13 Jun 2024 15:11:00 +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=1718291460; cv=none; b=a3boukS7aZ0hGNRfGOm1asWG4GEbCUqUfCTfV58MrOvpk6Vd8yED9tkkn1ETspPetOpOfNt5BCLZPZeKdEDmkQ+SgW12T7qwAZklIxhx5iuMx5/KeAClDqJ6EG+l6NbcMdpaUtaHebJx4zN+YT2zP6BIimO3oVML14Ng5Jy+AFk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718291460; c=relaxed/simple; bh=KEXcr6Qoi1UOFLMTPPqZR4F4hcqSnV5GgodnaogfRVQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=U9bWK3cEmP7YzrWy9/nJaxmfOASke1mzqCnkOIoHPlAJIvOdKrHHv1M4OwYFvZ5Cyav+2apLTwWxUe/RHqvjePesMBnEM9O06Vpzo61axgDibG4y4gYuB04BFRr7iEZJkRp9SE+eRlGWUqTmSInfCxRk4LqwcPy6Du2x04/T3NI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tx68Lz/j; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41676C4AF49; Thu, 13 Jun 2024 15:11:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718291460; bh=KEXcr6Qoi1UOFLMTPPqZR4F4hcqSnV5GgodnaogfRVQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=tx68Lz/jYiv25eoBL7oqfcUkd0kEGRiwX9e+hvytTB0AU3CYT+0SY55E0Hx1/TXEE Y4gsftI68RBk+RT6C/Ll0CpHl8u8hs0PQSY+hAkYkAqzuTNRLCLdcyIyvrZhZBcnzS avA+ZuW/kdYPdbfwEJOsDn/OC5s6WpDk9o7g2LDzEKlD6L8gbpIGF8jvDwOXDjsPDZ DTv95nHqQLDA7KiNjdXaAqVSV4k9wHFSyI5DoQGolB58QRUYX6no+D2wblqlJRdqRQ av+qBZHGPedqvjY+o4UYwH/K3pC2E3TDOOR8qQN6AsTZPaFXwRWn64jpC15YrFdvyg iSuXSbw1oONaQ== Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a6f177b78dcso156331966b.1; Thu, 13 Jun 2024 08:11:00 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVrhM2F/HwWHmn5RZ54Gka2TAQOd/+tBvCPZyvTW/soDacMFYVPu7eO/V8KDCqQb5qyQtoBZ0elsiXeJKH8kFZT8Pn8WzK0629UvM4cPuPVbtl6ydq4ihcqPeDiQJIRaCL50ClEzW9yDLVRYrgQRzJ3qC/ClJtuOcOgi0PEADRDGiGYr1cp3/vGg7/oIuioLxM/oSVf1M6CeJgOOzkGcLY= X-Gm-Message-State: AOJu0YwhClA+zZnq0p+9Fi3wmSuGRLgA2CSWE4iWjb6UUV9Ye3vw2/hi XBokq27ZdVY4b1JBB508fFAG4hYfPm3yARlk3HdCSjJ8pS62xPaAnJyjh0V0GeJxSyozy7zodb+ zoH1i/FTlp8zfLcdzZUvBw93GgX8= X-Received: by 2002:a17:906:b0d9:b0:a6e:f8b9:361f with SMTP id a640c23a62f3a-a6f60d1d1bamr3615966b.24.1718291458750; Thu, 13 Jun 2024 08:10:58 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240613-loongson1-dma-v9-0-6181f2c7dece@gmail.com> In-Reply-To: <20240613-loongson1-dma-v9-0-6181f2c7dece@gmail.com> From: Huacai Chen Date: Thu, 13 Jun 2024 23:10:52 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v9 0/2] Add support for Loongson1 APB DMA To: keguang.zhang@gmail.com Cc: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krzysztof Kozlowski , linux-mips@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Conor Dooley , Jiaxun Yang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Keguang, On Thu, Jun 13, 2024 at 8:03=E2=80=AFPM Keguang Zhang via B4 Relay wrote: > > Add the driver and dt-binding document for Loongson1 APB DMA. I still suggest using ls1x-apb-dma.c as the file name, for consistency in the same subsystem. But as I said before, I will also accept some of your suggestions, so I use loongson3_cpufreq.c here. https://lore.kernel.org/loongarch/20240612064205.2041548-1-chenhuacai@loong= son.cn/T/#t Huacai > > --- > Changes in v9: > - Fix all the errors and warnings when building with W=3D1 and C=3D1 > - Link to v8: https://lore.kernel.org/r/20240607-loongson1-dma-v8-0-f9992= d257250@gmail.com > > Changes in v8: > - Change 'interrupts' property to an items list > - Link to v7: https://lore.kernel.org/r/20240329-loongson1-dma-v7-0-37db5= 8608de5@gmail.com > > Changes in v7: > - Change the comptible to 'loongson,ls1*-apbdma' (suggested by Huacai Che= n) > - Update the title and description part accordingly > - Rename the file to loongson,ls1b-apbdma.yaml > - Add a compatible string for LS1A > - Delete minItems of 'interrupts' > - Change patterns of 'interrupt-names' to const > - Rename the file to loongson1-apb-dma.c to keep the consistency > - Update Kconfig and Makefile accordingly > - Link to v6: https://lore.kernel.org/r/20240316-loongson1-dma-v6-0-90de2= c3cc928@gmail.com > > Changes in 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 > > Changes in 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 > > Changes in 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. > > Changes in v3: > - Rename ls1x_dma_filter_fn to ls1x_dma_filter. > > Changes in 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 APB DMA > dmaengine: Loongson1: Add Loongson-1 APB DMA driver > > .../bindings/dma/loongson,ls1b-apbdma.yaml | 67 +++ > drivers/dma/Kconfig | 9 + > drivers/dma/Makefile | 1 + > drivers/dma/loongson1-apb-dma.c | 665 +++++++++++++++= ++++++ > 4 files changed, 742 insertions(+) > --- > base-commit: d35b2284e966c0bef3e2182a5c5ea02177dd32e4 > change-id: 20231120-loongson1-dma-163afe5708b9 > > Best regards, > -- > Keguang Zhang > > >