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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC1CCC10F07 for ; Mon, 11 Dec 2023 11:54:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234866AbjLKLlH (ORCPT ); Mon, 11 Dec 2023 06:41:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234641AbjLKLkw (ORCPT ); Mon, 11 Dec 2023 06:40:52 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A2AACB for ; Mon, 11 Dec 2023 03:40:58 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EC12C433C8; Mon, 11 Dec 2023 11:40:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702294857; bh=5I0PYKVYM7syKP7JCpCzQG2R4ozPV4d953nCGoVm7Qc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MHY8QewYlY5P5h7xtAty4w70caY2eAemqXWDaem4ihpf0udcp1AGjQ8CJd+0P2Z+H 6dFyezMHK0Q5fKGDuoRBXC0LNOxWXG+pbx2C8zRxOTGdfSiK/xCn38jxa4KAIjx0pu FnbuzBKl0Gtar/m4aOQhIY19VB8gtYkrrTjwV/1QQYHakllRcgnXvqbmmmfnzca65j ec0bxle9JdPn42qF8uCK62vdAuDzGpMQocyMpb50gn58+jlbCQPUK6j49NH97yHqlF hbS+mG4Oj0ZbQt/bb8n5zqqLeCyYsoJT6AoeSE/cJTg1Pwd0tMWAlws4RXU5uwQHo4 E6LydrTH76M3Q== Date: Mon, 11 Dec 2023 17:10:53 +0530 From: Vinod Koul To: liu kaiwei Cc: Kaiwei Liu , Orson Zhai , Baolin Wang , Chunyan Zhang , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Wenming Wu Subject: Re: [PATCH 1/2] dmaengine: sprd: delete enable opreation in probe Message-ID: References: <20231102121623.31924-1-kaiwei.liu@unisoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06-12-23, 17:32, liu kaiwei wrote: > On Fri, Nov 24, 2023 at 9:11 PM Vinod Koul wrote: > > > > On 02-11-23, 20:16, Kaiwei Liu wrote: > > > From: "kaiwei.liu" > > > > Typo is subject line > > > > > > > > In the probe of dma, it will allocate device memory and do some > > > initalization settings. All operations are only at the software > > > level and don't need the DMA hardware power on. It doesn't need > > > to resume the device and set the device active as well. here > > > delete unnecessary operation. > > > > Don't you need to read or write to the device? Without enable that wont > > work right? > > > > Yes, it doesn't need to read or write to the device in the probe of DMA. > We will enable the DMA when allocating the DMA channel. So you will probe even if device is not present! I think it makes sense to access device registers in probe! -- ~Vinod