Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6009108rwi; Tue, 18 Oct 2022 07:05:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM52V1xszXMbRAm937+c8Pve5Li3qETCPcrU62/iytqyGa6VzFqCi/Oefg5eKhos5jo4xUg5 X-Received: by 2002:a17:903:2684:b0:17b:7568:ffea with SMTP id jf4-20020a170903268400b0017b7568ffeamr3278063plb.128.1666101929818; Tue, 18 Oct 2022 07:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666101929; cv=none; d=google.com; s=arc-20160816; b=bi5ttcohQN2dBrge1g4JNbD5kHkDu9etXh609aKm71jRZPtxgOsLFOdvI7KVLW9ZaY 52pDXmr8JqNnN8ZOk82mXRXJCbxorGytBoE9r2oU95NE/VqCcj0z8jV5k/jkBgNu3SJU VSSaQoauY22GhK0N57ImMbxzLjZ1VPerXg2f2/Giwr7lmBQpOlbIVCEcINgRgLU4xj51 42cKJs6qDzBTdk/86GLpiUu0et3AJ+lbb/24+pJoQnjgltGSa2ZL0h0f6m8atwf/xVGP 1+YH7Tkyp161CmB1FKDxn2D7nB12bMF25NhOzk0i9TfaZoxPdWw/X2ATNrVsqB+iDHIq RKiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=HN6qEph+YykdsQG5bbLmu5Q4ymal6rx7oLABFA4amOY=; b=blQB/rxVQWe18EtzepLBz2KH1DxZwVIN60XRp5BfUbenhVztAJZtvViCNZqVtLXMr/ 8PH1mAgjVUWxWpefxL2AHP7WJnIHZcnjdcucTfTOM8x2BBkSjmyCx8XPWTd5R/NC7Sqo NCstUyY2lZuFJ6Bg6sQ6IuIVAMKLV2oyNBT5v0q7kWpO3TnShpmljIThxwHr/VH+cd3u hhSr1I5YvjfBkii5g7sJ2DQa5LA+3sqt5HccTfaA/JNw2LAIYzoKee5bk6nmtaUpaZcB MGo1bvZWhtRxTUzymLP3s80zxYVkDGmwd/YJj3d0qyEynyectOmxUmbJaXnskkyBGFpD b1Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=KKDanF8w; 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=crapouillou.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a17090a974800b0020d5c5e1660si19538825pjw.190.2022.10.18.07.05.03; Tue, 18 Oct 2022 07:05:29 -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=@crapouillou.net header.s=mail header.b=KKDanF8w; 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230365AbiJRNTh (ORCPT + 99 others); Tue, 18 Oct 2022 09:19:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230369AbiJRNTd (ORCPT ); Tue, 18 Oct 2022 09:19:33 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61E3DB7CB; Tue, 18 Oct 2022 06:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1666099169; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HN6qEph+YykdsQG5bbLmu5Q4ymal6rx7oLABFA4amOY=; b=KKDanF8wUwyf7bcqIa5qwhcaZ/EbzxJtTa0PYmVYyQ0xMFSecaYtvOqkKj91KGh/CVuxpy IvKjHQRD/WMpTbTCcifuRzuAOLWwSRXuvQh5n7ZGVeHz47DOpeAQhy7Sx6cn996I8Vv8jA RDSm+AAtja9p8LWi5s77Die5rk66K84= Date: Tue, 18 Oct 2022 14:19:20 +0100 From: Paul Cercueil Subject: Re: [PATCH v2 2/2] dmaengine: JZ4780: Add support for the JZ4755. To: Siarhei Volkau Cc: Vinod Koul , Rob Herring , Krzysztof Kozlowski , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Message-Id: <8CAYJR.MSXCGTKEB37V2@crapouillou.net> In-Reply-To: <20221016151256.3021729-3-lis8215@gmail.com> References: <20221016151256.3021729-1-lis8215@gmail.com> <20221016151256.3021729-3-lis8215@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 Hi Siarhei, Le dim., oct. 16 2022 at 18:12:56 +0300, Siarhei Volkau=20 a =E9crit : > The JZ4755 has 4 DMA channels per DMA unit, two idential DMA units. >=20 > The JZ4755 has the similar DMA engine to JZ4725b, so I assume it has=20 > the > same bug as JZ4725b, see commit a40c94be2336. >=20 > Signed-off-by: Siarhei Volkau Reviewed-by: Paul Cercueil Cheers, -Paul > --- > drivers/dma/dma-jz4780.c | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c > index 2a483802d..9c1a6e9a9 100644 > --- a/drivers/dma/dma-jz4780.c > +++ b/drivers/dma/dma-jz4780.c > @@ -1038,6 +1038,13 @@ static const struct jz4780_dma_soc_data=20 > jz4725b_dma_soc_data =3D { > JZ_SOC_DATA_BREAK_LINKS, > }; >=20 > +static const struct jz4780_dma_soc_data jz4755_dma_soc_data =3D { > + .nb_channels =3D 4, > + .transfer_ord_max =3D 5, > + .flags =3D JZ_SOC_DATA_PER_CHAN_PM | JZ_SOC_DATA_NO_DCKES_DCKEC | > + JZ_SOC_DATA_BREAK_LINKS, > +}; > + > static const struct jz4780_dma_soc_data jz4760_dma_soc_data =3D { > .nb_channels =3D 5, > .transfer_ord_max =3D 6, > @@ -1101,6 +1108,7 @@ static const struct jz4780_dma_soc_data=20 > x1830_dma_soc_data =3D { > static const struct of_device_id jz4780_dma_dt_match[] =3D { > { .compatible =3D "ingenic,jz4740-dma", .data =3D &jz4740_dma_soc_data=20 > }, > { .compatible =3D "ingenic,jz4725b-dma", .data =3D=20 > &jz4725b_dma_soc_data }, > + { .compatible =3D "ingenic,jz4755-dma", .data =3D &jz4755_dma_soc_data=20 > }, > { .compatible =3D "ingenic,jz4760-dma", .data =3D &jz4760_dma_soc_data=20 > }, > { .compatible =3D "ingenic,jz4760-mdma", .data =3D=20 > &jz4760_mdma_soc_data }, > { .compatible =3D "ingenic,jz4760-bdma", .data =3D=20 > &jz4760_bdma_soc_data }, > -- > 2.36.1 >=20