From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59239C433EF for ; Mon, 11 Apr 2022 13:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7pYdtpv4kS2+taoXNyzloHaLHoG83ZBJ0nCom6aCWXo=; b=SB++//NHaTus+E 9tnaiMxFKqzMXtr/UNoQI67fS0Fl/8GAm8UnqRgp1253r4UvRKSRrbPVTBNNZBwoiob+42LAKhQ0z ahSzGhKRZpZyqsF0aCkVeZVHpsP0vto+BT/pCfpqBLtt9FVFsChw/yFuszzgqp49m6W5I2JxGdeBu uIBt7g1VCHs0N83S31m8YCLXukGJjxpVC9Spv03uX1OVlay+iepoh56EqYyx7rLnK7lnABdFj0YDO 84c7qaGOqt25J/AYEDsJa4SfFzmsOhbzLrS8CmSjPE8WZtZpeUBrWOEeKe7l7x0va1CmjLb+H1r7c F+gbJ47TKVK7qoZbWNXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndu5v-009A6R-Fu; Mon, 11 Apr 2022 13:28:39 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndu5r-009A5U-F9 for linux-arm-kernel@lists.infradead.org; Mon, 11 Apr 2022 13:28:36 +0000 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 dfw.source.kernel.org (Postfix) with ESMTPS id F2AF760BBF; Mon, 11 Apr 2022 13:28:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCE23C385A3; Mon, 11 Apr 2022 13:28:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649683714; bh=wY2kkpkdJta5VZ4YNiEH8OvoR3YdYHuwo0F1OuTyYj8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IvvY1WzzHSzYXvYnOKCFUjS4UgpB0CDgJmIrACaNIhTZY3PhF79b3OVRp1LoGpM/S VfI6g2m25yIelLafewradRDZlul1qbeZi2n1gHeCxqVv0iI/j4m4tDna18EzJzZt1N oiL73LjDk9SZ3rq9bC850P0LNimGAlYr8l8IXMPb1k7Mu/ePKVusAM8SE8THQXtH6y PGrK8cpM4ZRpqQsqjP8bLqhX2SLgorBNfJMpF9D4l0FM9Qw2O4/aU684TuO3s8aRwj x2InZKP4gHKMtgNPOmZYhiTKuOlfPs0tAOKNNumVUZlDVeIz5TDikSjo4m7KR3flqr 3TwceEzvkDKsA== Date: Mon, 11 Apr 2022 18:58:30 +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-mdma: check the channel availability (secure or not) Message-ID: References: <20220330103645.99969-1-amelie.delaunay@foss.st.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220330103645.99969-1-amelie.delaunay@foss.st.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220411_062835_588543_7A880927 X-CRM114-Status: GOOD ( 10.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 30-03-22, 12:36, Amelie Delaunay wrote: > STM32_MDMA_CCR bit[8] is used to enable Secure Mode (SM). If this bit is > set, it means that all the channel registers are write-protected. So the > channel is not available for Linux use. > > Add stm32_mdma_filter_fn() callback filter and give it to > __dma_request_chan (instead of dma_get_any_slave_channel()), to exclude the > channel if it is marked Secure. Applied, thanks -- ~Vinod _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel