Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3303521rwi; Sun, 16 Oct 2022 08:33:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+ZMvf8yQMymHqL+EwRtaVNuKzepP1rp37hRKvfl22styrKYpxiyZMjw+LBYRYzy8MHDUQ X-Received: by 2002:a17:902:b70c:b0:179:eb79:cf9a with SMTP id d12-20020a170902b70c00b00179eb79cf9amr7627398pls.130.1665934384655; Sun, 16 Oct 2022 08:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665934384; cv=none; d=google.com; s=arc-20160816; b=aS2P8Vmu30cBynaSRnTNXgB5FIrV/PA6AjOZg33rJaNT2BUHqxLIQcj+uNigV2ZPqi 9EuA2BW78Ww1DGRK4aNN/fCE6Np6rO6PV1sSH1I6OtSjagvDMEsmMIrx3w+MwGW4H+B8 ODzd6fxYoIaR7/oLtOnhQ+bt4XFngDglV4yde3UL3a8GzDhYZvGElw5f+GH/sDgczMsV jXFz8Q/VggGPPUTzb00VT5PqEfSY5CQPTBBp+tmw0wnuuRjhKd3wWWZyrlI9oNVprIfE WX9xtOIQJzi536sL6O3w4hRBBO9r04xsat0dcoCS2F0uUERr7FUo/1FN+TMpku/BZ9fT WJ3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=neMO/Xv6+/M8nxm7VBGkm586LqlZgH70RZd7S709kIk=; b=z68opyskYsFi2AK0ijWWLJ1MeiTMFiuZucfEzpi8RVG8MVyx4luvk1fwT1zdB+80Gi r0ib9ijvNa8Y2WJ809WvmvQouU2yLDwRdymWHhE6QHqMan2dDt1bDZo+/1aOxk4CD+hj lncQyjpEQ40U8D0bO9+rQFieD/F3n7FlJBtbFBwiNdkdz7y1fZJ5vdkyURa3sDOqcbOM +zCLqep96MLILpaWs1Assc4+iIOZvGMTcxQwxWF1QrDGHvunoCJKkO85Yyj2jH7LgPtC YQsvPwn5n+W3TGYpOezfNvcB0Rkb6Vf1CvWgoxpWUzPZMo/ixmCDYkh0Tjn4KbMYUFNk CGYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=cy1aqFE4; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z5-20020a63c045000000b0043af57e5d16si8354083pgi.724.2022.10.16.08.32.52; Sun, 16 Oct 2022 08:33:04 -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=fail header.i=@gmail.com header.s=20210112 header.b=cy1aqFE4; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229972AbiJPPNs (ORCPT + 99 others); Sun, 16 Oct 2022 11:13:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbiJPPNn (ORCPT ); Sun, 16 Oct 2022 11:13:43 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0A4431DDE; Sun, 16 Oct 2022 08:13:41 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id l22so12846797edj.5; Sun, 16 Oct 2022 08:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=neMO/Xv6+/M8nxm7VBGkm586LqlZgH70RZd7S709kIk=; b=cy1aqFE4kk2fK98HQUyCMX7gpk8Uh1wj2IO/y2KU/Te/tLpZ2wiuJ7mxthCkzzsfcr wv03BqE9+JoLzKjUpQp1RKCNY9TgsEKRGIA4DKgmqGmKB2zuMe8MrGykU6+BgTAEwCSk GNm5cN7Vlq85W6SlYBCTSBNiVwSZ/gL+dLlg+QMJwpEkNBINM7uWouQIdAiz6Vpg9F4S MtUccb89emjD1C7heJpJvV76Jcx0DM2YNACCFRLhRTss1nVdvSVgrbrL3On8T/eN3Wr2 Ga/RvoaRlaZ7hLTB6LtBrkzjMLiaoNW5SuwR3/SJ2tR9pjmOEgr3os/al9k4iBd4Bila kMDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=neMO/Xv6+/M8nxm7VBGkm586LqlZgH70RZd7S709kIk=; b=fshGa36vu0XbJRuJX4vUEPhErZJE6jU5mPQcJRawC/fqZfVbYcNBMmTNGzVW7IvUOJ TJWICMSmWxHbLkAwsjcQZJqYBaXwlTh4HkbC6K53o+4QNxFqtDP1jS47j13SdzRBeLy1 TqArrTi4z496v+oefE2KUAwkxV61PP8D0IbAGCZVGLKkBMGhc+Zpf1DNDXTm6414jze5 bQgsuW9FMCkVdQeFIaUPXL5tRdSf/h+imX4FAJHOKVbTMAVncT5XWIJi69sltGRpo9QD T1YgFKRGI/DgA/qalQW5k3ZaJ2mDiVfVfXaHHTTYYpzNdiHViENgqPxRWMq+QBTPr+c/ PlVg== X-Gm-Message-State: ACrzQf2m6jA7h/OsZ+Gkp/lYPAMA+m8zzJYqNUjWxL85mvmO76YH6uFZ vReSkXven4H+rxk0vlIt8KSOx8XudjD1qA== X-Received: by 2002:a05:6402:3552:b0:45c:e4c:e6db with SMTP id f18-20020a056402355200b0045c0e4ce6dbmr6323433edd.403.1665933220594; Sun, 16 Oct 2022 08:13:40 -0700 (PDT) Received: from hp-power-15.localdomain (mm-39-7-212-37.vitebsk.dynamic.pppoe.byfly.by. [37.212.7.39]) by smtp.gmail.com with ESMTPSA id i8-20020a1709061e4800b0078d4c72e2cesm4702735ejj.44.2022.10.16.08.13.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 08:13:40 -0700 (PDT) From: Siarhei Volkau Cc: Siarhei Volkau , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Paul Cercueil , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v2 2/2] dmaengine: JZ4780: Add support for the JZ4755. Date: Sun, 16 Oct 2022 18:12:56 +0300 Message-Id: <20221016151256.3021729-3-lis8215@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221016151256.3021729-1-lis8215@gmail.com> References: <20221016151256.3021729-1-lis8215@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The JZ4755 has 4 DMA channels per DMA unit, two idential DMA units. The JZ4755 has the similar DMA engine to JZ4725b, so I assume it has the same bug as JZ4725b, see commit a40c94be2336. Signed-off-by: Siarhei Volkau --- drivers/dma/dma-jz4780.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 jz4725b_dma_soc_data = { JZ_SOC_DATA_BREAK_LINKS, }; +static const struct jz4780_dma_soc_data jz4755_dma_soc_data = { + .nb_channels = 4, + .transfer_ord_max = 5, + .flags = 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 = { .nb_channels = 5, .transfer_ord_max = 6, @@ -1101,6 +1108,7 @@ static const struct jz4780_dma_soc_data x1830_dma_soc_data = { static const struct of_device_id jz4780_dma_dt_match[] = { { .compatible = "ingenic,jz4740-dma", .data = &jz4740_dma_soc_data }, { .compatible = "ingenic,jz4725b-dma", .data = &jz4725b_dma_soc_data }, + { .compatible = "ingenic,jz4755-dma", .data = &jz4755_dma_soc_data }, { .compatible = "ingenic,jz4760-dma", .data = &jz4760_dma_soc_data }, { .compatible = "ingenic,jz4760-mdma", .data = &jz4760_mdma_soc_data }, { .compatible = "ingenic,jz4760-bdma", .data = &jz4760_bdma_soc_data }, -- 2.36.1