Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp507263ybh; Wed, 18 Mar 2020 04:08:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv8I5dcavJoiJwAPmlXGzdSOWzTxxmmz1nC4v9QrB3rBARehISWDom+JrzSZUJ0ZIPz25xH X-Received: by 2002:a05:6830:1051:: with SMTP id b17mr990832otp.157.1584529732580; Wed, 18 Mar 2020 04:08:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584529732; cv=none; d=google.com; s=arc-20160816; b=WM14ah9dXcLVsiq2p+VGEB54/yyYFQJwaslW8P0gXiyjjxIfp5FtCziASlHXPHlA4X 2xCSBKCWcJyZdm7sEEW8XMjwPzTjBNMrXKJot/8jHM73nEfB9PlJ6GfovkSe1nL7ZbyH mr9F/AA7OZlcE1gxSbHZzvb/IcTDWrjMY02Ch5LGFrzg5dwFOWZVdfAQ1IKsJnBLQlNC tXGDkeWzeLGcs9ebuODWA6xAVRvw/eQXDbffgEhIUJuXQ/PhNAVV6PH43SOq2wxJoIcy IZUnV07HNW7ERC6dqVknpm9SlGKxeeSbqooPwNP0Nf9okejwUWbGlQtE2LiQRSEF75aG 4j7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=AjOu/D4ycNVDL+At/xJSytTgbuhuQ2Xq5oAKbr8tPp8=; b=I7rlBhmCxzFz/54gD/wZaWx1F93fY5NWcmzAqRVzh8HvNRLv913//QfhIJmirx8lwX 65t1lJ4GVxbBqY8MQP+7QQ8o6nX7XQ0J9y8+qZFJjHcCovqgcEUgEMjRA2mFbugQ4djP OZ1tf6nGfjPnHyXWllgdiUDE8Z4EwEqdBtWa3i7GPW6A2GQbvoCF3j88vTERxykcbzEM /Iv+2ON6g/QMLK3aR7dBwKrMqRD/Par3beVmFZr1gIFNtWjEsaQzZDFC0EZx3PWjeKWR tbmvotW0bqr/O2ZI5hMaXa1FcHfhG44iFc1pMdPiKu8HDyE/Hpxem72T6FVKAqXfU6ti Gpqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o25si3195822otk.28.2020.03.18.04.08.40; Wed, 18 Mar 2020 04:08:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727768AbgCRLIL (ORCPT + 99 others); Wed, 18 Mar 2020 07:08:11 -0400 Received: from inva021.nxp.com ([92.121.34.21]:33250 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbgCRLIL (ORCPT ); Wed, 18 Mar 2020 07:08:11 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id CEA862003C6; Wed, 18 Mar 2020 12:08:08 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C18FD201202; Wed, 18 Mar 2020 12:08:08 +0100 (CET) Received: from localhost (fsr-ub1664-175.ea.freescale.net [10.171.82.40]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id AD12620506; Wed, 18 Mar 2020 12:08:08 +0100 (CET) Date: Wed, 18 Mar 2020 13:08:08 +0200 From: Abel Vesa To: Philipp Zabel Cc: Rob Herring , Shawn Guo , Sascha Hauer , Fabio Estevam , Mike Turquette , Stephen Boyd , Lee Jones , Anson Huang , Leonard Crestez , Peng Fan , Jacky Bai , devicetree@vger.kernel.org, Linux Kernel Mailing List , NXP Linux Team , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [RFC 10/11] reset: imx: Add audiomix reset controller support Message-ID: <20200318110808.hzwr7m2hc2nfftvm@fsr-ub1664-175> References: <1583226206-19758-1-git-send-email-abel.vesa@nxp.com> <1583226206-19758-11-git-send-email-abel.vesa@nxp.com> <20200313141606.euumtuizm562zghv@fsr-ub1664-175> <3aedf6357f321efaf1d59a0b654300803ad51cef.camel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3aedf6357f321efaf1d59a0b654300803ad51cef.camel@pengutronix.de> User-Agent: NeoMutt/20180622 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20-03-13 16:55:47, Philipp Zabel wrote: > On Fri, 2020-03-13 at 16:16 +0200, Abel Vesa wrote: > [...] > > > > + if (assert) { > > > > + pm_runtime_get_sync(rcdev->dev); > > > > > > This seems wrong. Why is the runtime PM reference count incremented when > > > a reset is asserted ... > > > > The audiomix IP has its own power domain. > > The reset controller does not control the power domain for its > consumers. The consumer of this reset should implement runtime PM. > No, the reset controller itself is part of a more complex IP called audiomix that has its own power domain. > > The way I see it, when the last deassert is done, there is no point > > in keeping the audiomix on. So, unless the clock controller part of it does it, > > the audiomix will be powered down. > > You mean when the last assert is done? Presumably the driver wants to > use the hardware after deasserting the reset and asserts the reset when > it is done. No, I mean deassert. If there is no reset asserted anymore, then the audiomix can power down, if nothing else (I'm talking about the other stuff that's in the audiomix, like clock controller) keeping it on. The reset controller needs to be on only when there is an assertion of at least one reset bit going on. > > regards > Philipp