From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B3921F7586 for ; Mon, 15 Sep 2025 15:40:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757950827; cv=none; b=tWxjQFEQF0XR7Uw0mTVPsPHCvYRwLwww/zzXB3ldlgSmuBhMhQ/JZc571z4uCxJrRL4g871/e1n1sjJ+f/OYkq0b5boLfJnVxqWCryCcXnfzZ0RPnCOQJvaXNhFszhEsurpnd4MR/Bd2xk7tpm8yLiDPOuFaGqh1LgfnuTW2V54= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757950827; c=relaxed/simple; bh=82L0x2oMofUwCXJw/yoY61w/+jPiOevKC7hOK80hFRc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=l+YwGx2SWVoLUx+x0lGuqvSx3IgRQ5sYaVICcNgZinZZ53ZyByWuqFoaa47/05GzsjW7EOBA/bAn2L17p34qZejsajAe74upCjF68FS9j/qhWjgTvkaDC+aZopJPibNvaPMVJxhe5L9QLcPvXtbw5E6rS4A/1yqTuRGizM8le1U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=EoeRc0gh; arc=none smtp.client-ip=209.85.208.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EoeRc0gh" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-62ee43b5e5bso5584744a12.1 for ; Mon, 15 Sep 2025 08:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1757950823; x=1758555623; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CbGW74Hx6FChjlot3Wj0dX/C4wldujvmwSh9HaBF/Dk=; b=EoeRc0ghNxrVvQGRoZ3nWN7eqYIX5Oa6KFej7hYaNXQm76ZcJz1QQ6SpLN/UylK1lv cQBhtLOe4LHPZkg6eBLA4jIZXsUxSvm/QruNxmHDdGg+WS2sDRnlgD3wGmekm9JnmRB/ uKqosEePqZ9PoBtmn5YcSInWj169g8IlCVJbouzVjTU8wbSG2seP9w6KqDfUV4oRvtV5 b362cEj4K0AQUx074KBCoujWXIsPUKFuS/xcN2FjCCtKktQoxACJO4kYowaswYdQhE5Z avfZwX7casjmBbLe/ygyNDoqDxGLpXhPhphWkrx3VTrnUAyDMI5PH/YmBYIHKfPXUmER IHFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757950823; x=1758555623; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CbGW74Hx6FChjlot3Wj0dX/C4wldujvmwSh9HaBF/Dk=; b=T63Ec493qqdFTkKnbW8Hq7UzRuTC3ktYmUf706sZ8i+7ewuxKyLo+bxzeq6zfCpHP0 Vt3RKQe8Y+dCCI+qxuuoctXAZkRXq3JVl137Dqw5Pp0NDXd3dc8bX+LS6iwxgJmOoiV6 ymkgY/64BOkh9KJipKr0J/yijcb1EnMdZNU5qzINa02JPkDrN0WguaEXixL20IbuVHBA GArA9ua7bAtsu1Mlpcj9YsK65tV71AsQkq9FsdYMHkGNOulJv8dr62zm/5vND+Vh/vpr eT+U8WsKWk3bH7KPqsHA68NfHuHs/2OJjaKA3z9/PHUr+GLhh9A4gCZROTrRqunQAwID 3UwQ== X-Forwarded-Encrypted: i=1; AJvYcCV15KvAZcNQdf2sIXHFn2Q26X/QuziidoGtfsxmYtAtdwd3rUvo+C5pvdcFUfof10rhgUcINkeVumEMnA4=@vger.kernel.org X-Gm-Message-State: AOJu0Yzp5ZE1RNMCu061lWxWQ6vQOX5cymq//3Cq6jDL9wd82LdRjk/s 0xUFBFsN5cb7QtouYGFjT7aRLiQNHj7fJFrRWYHOnhSKaXH7HE1iHvqjp+Jry0pp2fU= X-Gm-Gg: ASbGncuVmlexD5ootpEWC5RG1TCh0980Orxbf3uwYFMmvbF/1rDBAoUGI0P/g56XFiN v2BNwdvOQxigfC8rOQ07OJ0eeV9MbFbia+ef9lSj1v0+TYcrDravNIliOjCe5lfQY0IyUoNR8p/ AYBAG9RMm7Dj/aOEywo9pG85GnAHxeab2mRiHhXuOgShCQpb9mbpO2fRfmkNex63icbShxTFKDw XOmDEtHK7Mr4BHEf/VvxsDpFiByKww2iNggn05sq9pWUKyThgNuZ32T5QC0TUxsKe4CAOj4mxAk G5k4/JmQFpM4Y0EOxBDDgQ4fjIHSFbuLrPjwy04aWr7otXeCLtUePyqBSrtDOkCTzT6nDKhUxex mO1g9U9sIVxkVsGitQXyh/9dVADuPCnGq X-Google-Smtp-Source: AGHT+IFaP0APFcnnHzepInFuNe9QRhF2cHCwrhbwHtmb3MUXGYc0B2MoogMChIbOb59TPPzqTW7arg== X-Received: by 2002:a17:907:9444:b0:b11:4d6f:d7 with SMTP id a640c23a62f3a-b114d6f01efmr309182766b.16.1757950823214; Mon, 15 Sep 2025 08:40:23 -0700 (PDT) Received: from [172.20.10.3] ([109.166.130.161]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b07e1aed5ffsm568146666b.81.2025.09.15.08.40.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Sep 2025 08:40:22 -0700 (PDT) Message-ID: Date: Mon, 15 Sep 2025 18:40:20 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] dmaegnine: fsl-edma: add runtime suspend/resume support To: Joy Zou , Frank Li , Vinod Koul Cc: imx@lists.linux.dev, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250912-b4-edma-runtime-v3-1-be22f7161745@nxp.com> From: Eugen Hristev Content-Language: en-US In-Reply-To: <20250912-b4-edma-runtime-v3-1-be22f7161745@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 9/12/25 13:55, Joy Zou wrote: > Introduce runtime suspend and resume support for FSL eDMA. Enable > per-channel power domain management to facilitate runtime suspend and > resume operations. > > Implement runtime suspend and resume functions for the eDMA engine and > individual channels. > > Link per-channel power domain device to eDMA per-channel device instead of > eDMA engine device. So Power Manage framework manage power state of linked > domain device when per-channel device request runtime resume/suspend. > > Trigger the eDMA engine's runtime suspend when all channels are suspended, > disabling all common clocks through the runtime PM framework. > > Signed-off-by: Joy Zou > Signed-off-by: Frank Li > Reviewed-by: Frank Li > --- > Changes for V3: > - rebased onto commit 8f21d9da4670 ("Add linux-next specific files for 20250911") > to align with latest changes. > - Remove pm_runtime_dont_use_autosuspend() from fsl_edma3_detach_pd(). > because the autosuspend is not used. > - Move some edma channel registers initialization after the chan_dev > pm_runtime_enable(). > - Add clk_prepare_enable() return check in fsl_edma_runtime_resume. > - Add flag FSL_EDMA_DRV_HAS_DMACLK check in fsl_edma_runtime_resume/suspend(). > - Link to v2: https://lore.kernel.org/imx/20241226052643.1951886-1-joy.zou@nxp.com/ > > Changes for V2: > - drop ret from fsl_edma_chan_runtime_suspend(). > - drop ret from fsl_edma_chan_runtime_resume() and return clk_prepare_enable(). > - add review tag > - Link to v1: https://lore.kernel.org/imx/20241220021109.2102294-1-joy.zou@nxp.com/ > --- > Changes in v4: > - EDITME: describe what is new in this series revision. > - EDITME: use bulletpoints and terse descriptions. > - Link to v3: https://lore.kernel.org/r/20250912-b4-edma-runtime-v3-1-2d4a4f83603f@nxp.com > --- You have a typo in the subject, dmaegnine/dmaengine