Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3905085rdb; Mon, 11 Dec 2023 03:41:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNfw7C9nzNT6eZ+aUlCAdLveCiNUzP1KnpBmzTdC0wErAjsELvva3n95sbERJnmDyjsDUS X-Received: by 2002:a05:6a20:8e15:b0:18c:3ea9:b85d with SMTP id y21-20020a056a208e1500b0018c3ea9b85dmr7181699pzj.11.1702294895446; Mon, 11 Dec 2023 03:41:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702294895; cv=none; d=google.com; s=arc-20160816; b=kRRMiE76K2VqfTuNLZvUgc4/ObT/6+yGAEC9pL/zA/VfMGBE0i6YBWnL6wFZEc4VL6 amH5nt7pNkjw1zgrnNT0iRj+um3dLiPEbFJcUoGXoFKb17mXUxAjwiyFuGGV0lPcDRxw tvgriJ1E1cWiyXjOCnMWrKb9iwDiJtC9mKGluMfp3427NJjfFgMByflVHSsAf9ALmTwB w4nZCKeEY8dAIUX3mLoix+mkhCQaPIor/eB9KORb8Yt3/aKbxAxOvcjSvAHKGuOtXqgB Els1aYdhshMoSp8nU4gE/2DAc42RWMdlKAwHuBpC5PsqO0VmmoUsWO2YsAqwATA99WXl ak1Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ShtKxoZEXW2lUyKuEJsuy0bZGCvcrR6RM2uMAIvtE04=; fh=OdoJP8jJjWfWZ70iczzJqUGD0Yj9v29FzUkkgo8WZQ4=; b=ovdZsdmZ21BLElcLGggJHsUpYHFRZH6fQjlHRpxXP6IStBAu63B5niPaQfXDr7vqXg eOur+3WSrB7v1MWcB+iAavsM39Lid6Sqvwr0YjNR9xIFLge5CWDCddEu2u+BnBGl2ekR NTRdP73FD/Lph27hNTeb+9jRKW7WfsLIA6VES3nEPbKAf3CXCPOk1Gu/36hNxf1soXFP 01TKZ1wAQXnvlgRYOkoymxu5hF8BokbL+E1baToRpqImAfVbjqFGHsl7CUh8f/umY0zU v+0hPB0dTES4le9BB8xjACv9cIl2LhqvGtm+F8u51UJwzFk2qSacDJVCbsqilL0aECLX v07Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MHY8QewY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id v190-20020a632fc7000000b005c65defc40fsi5943857pgv.576.2023.12.11.03.41.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 03:41:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MHY8QewY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id BB58D8078634; Mon, 11 Dec 2023 03:41:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234862AbjLKLlG (ORCPT + 99 others); Mon, 11 Dec 2023 06:41:06 -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: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 11 Dec 2023 03:41:33 -0800 (PST) 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