Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3211292lqp; Tue, 26 Mar 2024 02:56:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYx9dX3VDqSj5480oc84UksrTEBKRNjGLkSW4tw+vIMcjd7Lxj3OheFKvafdYXmE5zSifiBDY7MfKSgjXITE42/MPhy+XABkXxbFPPBQ== X-Google-Smtp-Source: AGHT+IHiDSCRYe5sE0aIgbSPy4HgtVUmidKpregPyo72pUvkHO2+2Qh55RpiP834t9qkR8GU2+Z7 X-Received: by 2002:a05:6214:21c5:b0:691:86d2:b099 with SMTP id d5-20020a05621421c500b0069186d2b099mr13219435qvh.21.1711446976960; Tue, 26 Mar 2024 02:56:16 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jm10-20020ad45eca000000b00696925319d5si3041390qvb.539.2024.03.26.02.56.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 02:56:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-118728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118728-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5C8351C3C06D for ; Tue, 26 Mar 2024 09:56:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 016136BFA4; Tue, 26 Mar 2024 09:55:23 +0000 (UTC) Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2095.outbound.protection.partner.outlook.cn [139.219.17.95]) (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 65BB167750; Tue, 26 Mar 2024 09:55:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.17.95 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711446922; cv=fail; b=cOFy08dhQeNrPLM/eWDMrOsdnR1IxgpDVgi885kqviUZuXdz7tYPCE+fDMTtJlJS0u4oip8dFXoB9J4mSd5yie5Aegv9qVb3VowEedq0o2d41b26hpq5cnPMER/enoxK9hySQOnNmsxyPFJrEvbojM/6y3KzzEBfR2m/EfZP3xc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711446922; c=relaxed/simple; bh=4EfzZ+J3LtUadzufIba+d9vEgSQTSbnen8UI4pvu0qk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=UpAYlFiSC3o4lHwyk7StWaLJ5FiunZcUfY2dLZH/wEe9iNKQzEAUA/pqOpo6q7x0+ZWXy8QcWLVbTBkCJn8Oe2G3EQeSpD/+bUb9AEaiR9iuAwnMvs1yFAMZH/WXM48h3v0vAfYzws16PjIHd2RivZJVG3g+YQ2M0/AwNw3u5P4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.17.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bqBInlEXkSF2MTqY5mFcpeszaDKIcJb5e2H7vmURcIWHHFhG4utXtcqOuLuePYebLU26KUcGfCcxbM3H52q3d2E/+b/jloIaTNyyVZsNsyrV60qVBhCFc/Y00iUdIEr2d0W4V1/mmz++4dzJYEvG4jwgQuqY8nBveaTrrgrr74HY56gvsPVIMDfcsWBZ5u+tZ6q5NNrKjAcCMZ6NJ2Cnb2JBrwCEGXwjSL1ySHnAjBzdx/0G1lU1nlO4OkMfsqZfAeDReekci+3foIAiz8IctKXbNzvRakJY77Ebh/Vnk7+/E+er4yt3hryXmmifadlwNYaYkB7FLuQZdCDqSd1x6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EGFwBRqR0Ubnr6Qww0efT6ERK3Tj0upKezJN+tJoDus=; b=e92OtRKgOnCgXBfAdGYdtUjpKd6wag+ZhkU2hpLyrklOpAaW4A2DqKPgaVsGbFtqdsg5DA3HOk1EVxfrD0W2tqevOiTaGuaBy2FBrF14Xfm0U/QT5z9Jqp0E6aK4VsVyZ1LYCeP0CFF8TVSHElRN+jbYIisg+gRNKzhsVIaQ5W7sAXwygBhCUd+2SbQLgMe1IgHQR+EHEzD7KHbZsoY9xj5VT099jRCZrmZbXUOHxOX1v1wNNdi0JE7BBUdfT8ZCMbxlflMPueB3qCjy/eHV5CT1EjZjrk7Lsu9DuL3ipE3tJDS/AUSWHMxomRYOjlEmIRziaKZFcV/F3IE+BQil+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:e::20) by BJSPR01MB0660.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:1f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Tue, 26 Mar 2024 09:55:13 +0000 Received: from BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn ([fe80::d0cf:5e2e:fd40:4aef]) by BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn ([fe80::d0cf:5e2e:fd40:4aef%4]) with mapi id 15.20.7409.031; Tue, 26 Mar 2024 09:55:13 +0000 From: Tan Chun Hau To: Eugeniy Paltsev , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Ley Foon Tan , Jee Heng Sia , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] dmaengine: dw-axi-dmac: Add support for StarFive JH8100 DMA Date: Tue, 26 Mar 2024 02:54:57 -0700 Message-Id: <20240326095457.201572-3-chunhau.tan@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240326095457.201572-1-chunhau.tan@starfivetech.com> References: <20240326095457.201572-1-chunhau.tan@starfivetech.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SHXPR01CA0027.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:1b::36) To BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:e::20) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BJSPR01MB0595:EE_|BJSPR01MB0660:EE_ X-MS-Office365-Filtering-Correlation-Id: 493c743d-c083-4a55-a003-08dc4d7ad4d9 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: st+lkL/wL0d8wLqRIZkM4OyeySqPiurrnjmBFyH7oqbdBe665GB7x04hNrTMCihkDCVqKamw65jaoqiSrn1JLi+Crn40QzZyI4O0Z8LGizsU0sSYJrfzpibWF2NlMFVhcsU7vlCVZgLLj7393FhD6STUELoVPhcZQKVBvhQjEbfCdmRFnfZycWgp7j3W9TNcMgyJl334ZKhLjsI1tBDs1+QSH8Y0DgSIJWVfznwUMaKouOys5iozucNIbZEzQ3ZuoH5dQPM5KOqYHsGZrCWAmQwV0RbiPZaQT0I7sRuLQ2XYuACg3ItEVfj2Jvo7q0bT2lHJzgUvt2HPb1r9ILY4LI+mc4WZav6KOIUPnqC5u5cn4oZVkRp1nkH6rp1hXHSDaEI5jLqghFqT75xozkxZgc7AiMbP2igDXnyULRJwEHaHED1swRPR/5I3L7R8a0fcIlzz33LvEnzyJlHLMLSfX1ENew8l7hNndBep6khB+sONx4yc2TnXzKXLDU3DR6B7P7fPM8n+dC6kGofpyL8WQrJFmjmJYLXgBmMeu2UdMVmoBlgxpwvh2fSyN8+l1IQ9O6Nqjutye8cEsi/ieokJDd3mo74NhL/BIGk5/ij+SRm3SpNF4R/vosBWOEWaI9Yh X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(52116005)(41320700004)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?a+oKd29jg1arpfzk8glzTDfExs5zjuR+pUCBQgN6tsrCc2jwVXGyPEs/Pba2?= =?us-ascii?Q?Z8DLBgpxZHX8Dsfdf+a2r3tX7gCci5YEg5DnTceICklhPmZLUEaeSRfa+7Kr?= =?us-ascii?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YgmhzQq/3imn?= =?us-ascii?Q?NE3i4oBb3sqFghnJ3kDeb7xcFRWYOI81NsuVcizH2Ky/ZceXnLQghxoV4LV+?= =?us-ascii?Q?Hg7sv//SeNy18kSc8IZxX+q19NCnNjRbSAx6p8vA3nnYqJlW417qGqN/O74g?= =?us-ascii?Q?luGTbwvYDqVaPBwwjVb9XUH4oCDvLZLXAd3jAbFhUjRzlmUgiD5x17tOePDL?= =?us-ascii?Q?m9TXd+tKQPE04g2pSAscjP4uwK1zmovlcqn8rf7XeYWpCxr+q4ibGmrsSR++?= =?us-ascii?Q?nXtzuqaVbZMyI3YZFBnJhRQHv/4Wl/Yh2dHC+Iwoj/M2cz7ezAMm8U+MyI7i?= =?us-ascii?Q?pEZOSv6yPWLH68D0CAlJcxSl/107ztFY7Ju3wCcU4x8rNgL3x7GyqWcvw5lE?= =?us-ascii?Q?6dgkP1Xu8T/aHUvREvteaOahD9Qq2MQJYY/3zQj6do09P2C+A8HS6nBks9n/?= =?us-ascii?Q?dbAfALHQXr49tSXlXjN0107RDN30wL2PfuJOaoj6gVN43qlr58riyz/hl/5s?= =?us-ascii?Q?9Ngql0dQmbJnTAoRqMA6MsRImqQw90UzJ8OBFLeLB7fw6BpvVamqi4MbELvV?= =?us-ascii?Q?JCXTGUfKLBlkXSjeqPCtCFxejWx9yn3Yvbmb56GdJYQFCn61ol1EkWjYjbpl?= =?us-ascii?Q?Lg=3D=3D?= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 493c743d-c083-4a55-a003-08dc4d7ad4d9 X-MS-Exchange-CrossTenant-AuthSource: BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2024 09:55:13.4047 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1rUdCtR5kjnvM9y1/zjXFhwH39+xaUV/DeI1kSnSIrakgMyPFsKDkvAFbJo1uPRN5qqLI5q5mu4zaW++z8NMciWoZcdZAgoX4SMO3Cj8qgs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BJSPR01MB0660 JH8100 requires reset operation only in device probe. Signed-off-by: Tan Chun Hau --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c index a86a81ff0caa..abb3523ba8ab 100644 --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c @@ -1653,6 +1653,9 @@ static const struct of_device_id dw_dma_of_id_table[] = { }, { .compatible = "starfive,jh7110-axi-dma", .data = (void *)(AXI_DMA_FLAG_HAS_RESETS | AXI_DMA_FLAG_USE_CFG2), + }, { + .compatible = "starfive,jh8100-axi-dma", + .data = (void *)AXI_DMA_FLAG_HAS_RESETS, }, {} }; -- 2.25.1