Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23AD1C61DA4 for ; Fri, 24 Feb 2023 13:09:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbjBXNJS (ORCPT ); Fri, 24 Feb 2023 08:09:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbjBXNJN (ORCPT ); Fri, 24 Feb 2023 08:09:13 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 854F714987; Fri, 24 Feb 2023 05:09:10 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 7A15524E31E; Fri, 24 Feb 2023 21:09:08 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 24 Feb 2023 21:09:08 +0800 Received: from [192.168.125.93] (113.72.147.165) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 24 Feb 2023 21:09:07 +0800 Message-ID: Date: Fri, 24 Feb 2023 21:09:07 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH v2 1/3] dt-bindings: dma: snps,dw-axi-dmac: Add reset items Content-Language: en-US To: Krzysztof Kozlowski , Eugeniy Paltsev , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Palmer Dabbelt" , Emil Renner Berthing , "Emil Renner Berthing" CC: , , , References: <20230221140424.719-1-walker.chen@starfivetech.com> <20230221140424.719-2-walker.chen@starfivetech.com> <1467f7c5-07eb-97db-c6f2-573a4208cc28@linaro.org> <36188e04-332f-e944-9c58-f6f2b74987da@linaro.org> From: Walker Chen In-Reply-To: <36188e04-332f-e944-9c58-f6f2b74987da@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.147.165] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/2/24 18:51, Krzysztof Kozlowski wrote: > On 24/02/2023 11:14, Walker Chen wrote: >>>> resets: >>>> - maxItems: 1 >>>> + maxItems: 2 >>> >>> This breaks ABI and all other users. Test your changes before sending. >> >> I think 'minItems' should be added here. So like this: >> resets: >> minItems: 1 >> maxItems: 2 >> >> Other platform/users will not be affected by this. > > Which will allow two resets on all platforms. Is this correct for these > platforms? Do they have two resets? > In kernel 6.2, only two platforms use this DMA controller (see 'arch/arc/boot/dts/hsdk.dts' and 'arch/riscv/boot/dts/canaan/k210.dtsi'). There is one reset on k210, while there is no reset of DMA on hsdk at all. If here minItems with value 1 is added and the value of maxItems is changed to 2, after my testing, whether it is one reset or two resets, even no reset, there is no errors occur when doing dtbs_check, the DMA initialization shall not be affected either on their platforms.