Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1876442ybh; Fri, 13 Mar 2020 08:56:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvgsdQV+Sh2YsYL9XAy2pYoUKDtF5rEyF+UfZc5w5M9BwJmOkYhQwVyp7QV5+FZmhiwEm7v X-Received: by 2002:aca:310a:: with SMTP id x10mr7239689oix.151.1584114999406; Fri, 13 Mar 2020 08:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584114999; cv=none; d=google.com; s=arc-20160816; b=fP8WIHtstEuFoI1iEaLJACKwNYqrPVZBvUvMOdDW+UQZl/nUwSp7MOQrNOaC0u1viG lziJzw566Gsy5QK/+eR88i+q8qF2LiEQx+HjVhHsLY4F8FuWOiBnWdkuo1FBbIOj0HOv C4eO1TL1AChu8a4Y0Vv3cVTi5vJ9dHOerOqE1cc9fjD4oc0Tzpl2fhLKVCl3kvPhtG0c 0X46umalql4Gwg3WOR+c6sumd0R21HfGuFEIpvzOzuqBES2Jl5M72/xR+locbPxQODFc RiU3GIajj8eU6dOLd+w4HyFFp6bHnJPYCAVao8FUK0vqQCoaSo4vxprMNpDOBgZg50Nc h6Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=GjhurXp50L6TQV06SZcFn3+m+NvEvkbhjdeRMvOgVl4=; b=jU6hJhpkoxy0IkhnPxiA24opL7Bvga1O3VLsXzhJutYQWobp+IFDD6UV3ggGWQ2lEU 9x+WQ1c2x2EUPtdyx9moN+KxZsSDCDufBq0H4lqFzJHRhABaZ1ysVTx6I5+jpDaQRt5S YX8/40h2+Cc7dXQQ1BYFKEmMSBOUHyCX6cotIF4MOBfXBVrd0MadLXdnhcm6aa7uhOsa /UoNktLq2sY7Xj7k4mw2jIY/NLAki+n++rumxt9CzSPFU5bCBclraXOTZVma3qM1INjJ Zoxd59fmWJlJG9FNzttTOkSoWpDAm3NMftRLMoKudAuLHAbkewX360yskeWaDi2ThTBy 5+Wg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si4707711otm.256.2020.03.13.08.56.24; Fri, 13 Mar 2020 08:56:39 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726713AbgCMPz7 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 13 Mar 2020 11:55:59 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:58639 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726406AbgCMPz7 (ORCPT ); Fri, 13 Mar 2020 11:55:59 -0400 Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jCmf7-00012X-Sk; Fri, 13 Mar 2020 16:55:49 +0100 Received: from pza by lupine with local (Exim 4.92) (envelope-from ) id 1jCmf6-00054P-27; Fri, 13 Mar 2020 16:55:48 +0100 Message-ID: <3aedf6357f321efaf1d59a0b654300803ad51cef.camel@pengutronix.de> Subject: Re: [RFC 10/11] reset: imx: Add audiomix reset controller support From: Philipp Zabel To: Abel Vesa 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 Date: Fri, 13 Mar 2020 16:55:47 +0100 In-Reply-To: <20200313141606.euumtuizm562zghv@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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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. regards Philipp