Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp590777pxb; Wed, 27 Jan 2021 16:04:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLVjCptW7wOM6tkkhlYZ/FnKp+3JLlCdYVpjxf4q2MkaQlUudWgl2Eirda7Kv+USOaNoA1 X-Received: by 2002:a50:b742:: with SMTP id g60mr11088118ede.113.1611792241039; Wed, 27 Jan 2021 16:04:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611792241; cv=none; d=google.com; s=arc-20160816; b=dk+2JxxPb382w6z5YMY3oQiVu4417uHYJ0Lt8vZ3LGGWvdqgLSHBeJVSRK5FBD3+tD s0c0ET7lEVBsDn992JCDPZe/dX2Gro1fp18rwF6H36Jb9ElHhYnAJ9N3jVn5SrAFKa/C HL+ENck3GLDkS+YLXoiwKjPK45ovvSpZxsrqo9gWv3QS3SpBoskvWMZjfn5kuXk3OeMG DXWfZyoouRo6ekeBvbKVsafLYut54Ssi7CH+lBQdoCWUP9mOMJcADDbMg9gseOy/ScC8 QlfB/R6eAaOdBEh7LZT9MQW6bYRr4xllIn/lFpp+Y+k+3s3Sa19zMByPp9ehduN0n+3p X3UA== 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=KH4y5IoUfIe8bpTGpIO9x9rREMPkh7V4s6saNeyO0MY=; b=RfVrTRGAUPGGlbEakm9kTFRWtRaZ6wJKaSGR4fIb4EHFOhSgosnjJtJhSx3qK7FBZ4 HTxQHKEQUgktTjow8LEtEi0WU+fnQNS/FSmZAf3fQb65NOGo5GUdzgSetmBSasnPtAm2 ASio21/c92Dwh2WFha+d+jojnQR1xDFaeARzS6XEhyzIb4v6TmBsOG7nv+l0JeE5Nqrf cQyO5ct9Pt8wLd6TTGxvyYCSp83spOugIR3xUQJKWSQ69CeRqXZh7Ue9lvBNK0rxyHLS bvwos7dWteIIHpvkhcf1qhf/LdCidTunNuYZDxecfuKbwyKHppOKqW861OdNrGqFI/0/ Q1Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qTDJm0UO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh14si1525174ejb.45.2021.01.27.16.03.36; Wed, 27 Jan 2021 16:04:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qTDJm0UO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236545AbhA0PpL (ORCPT + 99 others); Wed, 27 Jan 2021 10:45:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:36580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236236AbhA0PnF (ORCPT ); Wed, 27 Jan 2021 10:43:05 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F6F8207CC; Wed, 27 Jan 2021 15:42:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611762145; bh=hTTKruYKBe92ui3jqhTUD4Nv5kSB/j+ATAzHAvegku0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qTDJm0UOXGy1TM4Bk3E42hB2CzgjJ+zAA0BW2Hz67WXWg6TYvay6NEGSiIZmSL3AD 8Ug6ZXF4Kx7ZkYJ7aLIzlUPF4G3K/qzvNlChP7qGrI/8pnp43+c1X2gdEHCXaadgWR Eida5XTdN6u7KMSLPxvAcSl+AH7fbTPp7Z7XNFh4zdrVHB3swWJoI2dheXAZTdFTCQ xfjsnKjVvbbld5TrDpq9m5HQPICi7Lsi1PrEn70EiGk0ZjAxuJmyHtpPZ9KIklQHWf aEbevlVOrWTzczKRgBP8/8URuqo8ZtnYHyi39HDznPMeM/Yl2dWNwyoZ6KdWeh89T0 VGX+C2YBEh22w== Date: Wed, 27 Jan 2021 21:12:21 +0530 From: Vinod Koul To: Thara Gopinath Cc: agross@kernel.org, bjorn.andersson@linaro.org, dan.j.williams@intel.com, shawn.guo@linaro.org, srinivas.kandagatla@linaro.org, linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] dma: qcom: bam_dma: Manage clocks when controlled_remotely is set Message-ID: <20210127154221.GD2771@vkoul-mobl> References: <20210126211859.790892-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210126211859.790892-1-thara.gopinath@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26-01-21, 16:18, Thara Gopinath wrote: > When bam dma is "controlled remotely", thus far clocks were not controlled > from the Linux. In this scenario, Linux was disabling runtime pm in bam dma > driver and not doing any clock management in suspend/resume hooks. > > With introduction of crypto engine bam dma, the clock is a rpmh resource > that can be controlled from both Linux and TZ/remote side. Now bam dma > clock is getting enabled during probe even though the bam dma can be > "controlled remotely". But due to clocks not being handled properly, > bam_suspend generates a unbalanced clk_unprepare warning during system > suspend. > > To fix the above issue and to enable proper clock-management, this patch > enables runtim-pm and handles bam dma clocks in suspend/resume hooks if > the clock node is present irrespective of controlled_remotely property. Applied after fixing subsystem name, thanks -- ~Vinod