Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2199763iob; Fri, 20 May 2022 04:27:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+9QoJYW2pK+M8drym5jeOQ+DQUohqVmWz25HNlXzD2BI5i2MWavIemFYxjX8eYMoxhAVo X-Received: by 2002:a17:90a:4b0c:b0:1df:112:fe49 with SMTP id g12-20020a17090a4b0c00b001df0112fe49mr10522954pjh.155.1653046072190; Fri, 20 May 2022 04:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653046072; cv=none; d=google.com; s=arc-20160816; b=1Ff8elIBU/GomamNqJFXifBQTGdS/G2DWiFnaBozD221zcSG5Jj/TpoE8UEVVaRQh4 aBMpxVuYINNZn7BLGHe/mZ6E3n2aHxfUgAGOITUMHADjiUktp7WIs47JPO38c69cKlkN +DDsU3Cq4W55esg/DcjQrfIPBlGgqAGoblKHNEY1XzFxmrtNjtwHLiaxlGpYw8iemaq3 gqB1YMkGL7R4G17fNSlFaSeLKt5NXFGRIMFUKrz3v0ipY0Gr8bd0aImk16nQ89vEH8VV LTvXtNMyJimxFR3A1AI47+zlqhjTolVv4rfjC0pPkO1YGn5g+zqY9xT2tlpfj1ffLVb/ nb5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=p81IteqDcs9feqNCfCp4bcfoxnoxwJ/dPlcEO+Y5KY0=; b=InnPb0s7L/0iRhUbudmgp16Ja2GXaX7yCddp7ys7sztgn8d3QgnHcEe6VcmxpyMV9H /PgN+Trr52Qpf0N/Bm2JUYBn1EG6vVm1djZJznBWyq+0YqrRgZEaPSuc5TOOW2VAwx63 3diRzvJNSyxmZLxtyGYYCsmFFmtOZIEbe/Cy2Wsemr6zv/VOkuEnXvYo8MPTV6NigEEN 8N+2CQxzDzv6qESrkY6+hDMq6BoJjwr3wVLOQ2rIYjZr3mSvKNe4NbPwt7CC6fRZKnwX XidwFuaPsjyjJswptw8GkIuwPhtyYHy8ksvoodR18m+gbT1zFveg8tl7gYtNZR6W6RAe Ul5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Puppa7FB; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u25-20020a634559000000b00399345490cesi9681367pgk.419.2022.05.20.04.27.39; Fri, 20 May 2022 04:27:52 -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=@kernel.org header.s=k20201202 header.b=Puppa7FB; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243571AbiESRvu (ORCPT + 99 others); Thu, 19 May 2022 13:51:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241663AbiESRu3 (ORCPT ); Thu, 19 May 2022 13:50:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B653EB36CE; Thu, 19 May 2022 10:49:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3E076B825C3; Thu, 19 May 2022 17:49:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42F71C385AA; Thu, 19 May 2022 17:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652982581; bh=9A5+aIyuXlTlURbYrnNECxCHAE/FESaqMNCsL6/awOI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Puppa7FBRvhE6BDdhEDwhEJWvRlwJNek6upoz4Dr5kf0mDHj/ln2DX4S+ztY5+U2P li2U6dtnwbQWT2DzDSeUBXj1B+Ks0lur/ohsr7Zo6HPaXQl1bPK4My2L2oQURzkH61 Wygy+6X6rvUAirXy1GXvHbF6nQKFmuDyjZIqN5p4kAYuBpNF9SkqWcBXXOR+AHZJqe 9RM2MvzrVBwE8BZCzeLHjzSV52j2siBqjmr32q2E498BIDkVs1KlBtBF+ouXpEx1hY yxH1Pgb/rzdcgk2/PBiGgx/H1S/B8cVx6ZTWf79pG6NThDKRs8Tt1oWc97caOZqmcl eLd11ncCWxqFw== Date: Thu, 19 May 2022 23:19:37 +0530 From: Vinod Koul To: Amelie Delaunay Cc: Maxime Coquelin , Alexandre Torgue , dmaengine@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: stm32-dmamux: avoid reset of dmamux if used by coprocessor Message-ID: References: <20220504161724.123180-1-amelie.delaunay@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220504161724.123180-1-amelie.delaunay@foss.st.com> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 04-05-22, 18:17, Amelie Delaunay wrote: > One of the two DMA controllers managed by the DMAMUX can be used by the > coprocessor. It is defined in the device tree with dma-masters. > When the two DMA controllers are used by the main CPU, > dma-masters = <&dma1, &dma2>; is specified in the device tree. > When one of the controllers is used by coprocessor (so not managed by > Linux), dma-masters = <&dma1>; is specified in the device tree. > In this case, Linux driver must not reset the DMAMUX, because it could have > been configured by the coprocessor to use the second DMA controller. > count is the number of DMA controllers defined in dma-masters property. > Reset only if resets property is found and valid in device tree, and if > the two DMA controllers are under Linux control. Applied, thanks -- ~Vinod