Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4579150ybv; Mon, 17 Feb 2020 01:48:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwm7sJ79feB2tY7pPv0stFB8RY2Fl7ya04C1X3hB+xMGRBQMfS25iWwy6KxqNgnOLp9EdaK X-Received: by 2002:aca:1108:: with SMTP id 8mr9520055oir.127.1581932932145; Mon, 17 Feb 2020 01:48:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581932932; cv=none; d=google.com; s=arc-20160816; b=U5Ijy78d6L7YPcltwXDY26ovSexmTmb4kzdHU3Wvr2oCKw6ppZSMuh7Sfr6Y4yX59a ywXIAlNA+pT21RsQPM1MTPwlCa2i+50z4ATleMy1GQ8og6keJuxmBXL9+i01kKQpFFEm 3mueYneAbzdfp6lmmJVNHr820my7D/M1fQLHAWZpmZQLz2Dhzuo1clOqQdOUQKDEvMF2 AKdr8nwul3IQL06RhkzaiXufnb5Ypaca0uA9xzl0oqwqRWEQkdGuFImnRRYXbONsgGvt 40tAXyM2XJSzE20GxD7HNXMz++lE9pYgkD807sJGTh+/wxC3FaWWBw4OeP9L59WM4dWh byJw== 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:dkim-signature; bh=mRzhu4FuDGLh80x5UO0rDFw65MYmAaxUcoBtzYtkWxk=; b=M6aQ9EdvNNkqBwWysFYD+6hDFCA9Bl+MJMmYa+hKPtlV/h/wbfMgYrbnMZPORQnFIh wnh851k1t5eG3OGAIEJPOrfix/FHsu+bqMVAc/6JNs53R+MuC0nH1MA23IJFOiJ8IiGg dfuPHeduEoxQJXdFAx+XFOgHk7WC0H3d/XNOzud7YrKTo97TYqmMmIhRBQ5pQweMCUyi y+oQm77W9EYjwoeIqt36ok2OtJlmEXgGrptOnQWj4i1/qWAsmmlGUNEADSLkrtjPdV3B GFHlKDvx2aqbTDN7PV8Sq6Yzk/ohW3KXgORrfOAu2K3rM0euhIub5aZrdMSznRZGVcRM fnig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TSDX6BGA; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si6815421otk.120.2020.02.17.01.48.40; Mon, 17 Feb 2020 01:48:52 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TSDX6BGA; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728923AbgBQJsc (ORCPT + 99 others); Mon, 17 Feb 2020 04:48:32 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43157 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726397AbgBQJsb (ORCPT ); Mon, 17 Feb 2020 04:48:31 -0500 Received: by mail-wr1-f65.google.com with SMTP id r11so18790581wrq.10; Mon, 17 Feb 2020 01:48:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=mRzhu4FuDGLh80x5UO0rDFw65MYmAaxUcoBtzYtkWxk=; b=TSDX6BGAs3Qkn46ZWpOSekS5iahlNNJ49ygptHlstiI3PQLXt7LamxtveGKsgUp8ol XRJPirlPRQms90vlTjDwKnQFYqX2IzKu8XlkmcAazijEFuAWDCRNqmx1+iECQxt3bMi+ HHOTK6UNc/m2TDhxU2Kl/zCoskH5NzuoHMpzOzBX9hciE8DS/uTHKP/8DSKomA6bZ/CS 6ZZ5Ed6yBdeZ3xHgRrLDq06M06GPEhEpUtgE8q0JoSQo79n4vuE3FDmifiAegoByjSmN ZFYBWH5t5/FXo7Kd1ONkv9IhnJdouKyURMc9Izgi8WIOKBkSiwf/x921NlsU4qpGlTBl rL4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mRzhu4FuDGLh80x5UO0rDFw65MYmAaxUcoBtzYtkWxk=; b=LahFMuPZbtDvacHuM7+VbcksmILfj7XTPgMWHPzP8QkyPcTP3oOsjgBxZYsL92oAHu 8AUPPm5ismw3+G7eKpzfKqGx0tsHxxJAB26+GThICnlVHsGGU16CPvv4d1kQQ6wOjxb0 qWyyx55ENl8iReyRWsWCW0LUradwbjO603XU0KQ5yZ3SMrh6TYdlkWFhUOm00RQWwPyW PyBMs609CxSKKb+4JrPvIP5H8T+/QB8G7hjD6Rn2NdnD+NlqNzJGwZOiQXitR3QpNttU froAR01xXswtU2Xo6p/0bwI+6D9Dbtt/XtRY+hxjs5o2qRFUPSKhv6rXTqC73FVcMw42 xQmQ== X-Gm-Message-State: APjAAAVZOnFzW6ECmCstZLXm0qK3BTrrgkUW7cQf6XmLmFAqd0b+pH+c rFZrTnIxi7ppfXDxQcMK6is= X-Received: by 2002:a5d:4085:: with SMTP id o5mr20884290wrp.321.1581932909095; Mon, 17 Feb 2020 01:48:29 -0800 (PST) Received: from localhost (p2E5BEF3F.dip0.t-ipconnect.de. [46.91.239.63]) by smtp.gmail.com with ESMTPSA id a13sm104558wrp.93.2020.02.17.01.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2020 01:48:27 -0800 (PST) Date: Mon, 17 Feb 2020 10:48:26 +0100 From: Thierry Reding To: Sowjanya Komatineni Cc: jonathanh@nvidia.com, broonie@kernel.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, digetx@gmail.com, mperttunen@nvidia.com, gregkh@linuxfoundation.org, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, pdeschrijver@nvidia.com, pgaikwad@nvidia.com, spujar@nvidia.com, josephl@nvidia.com, daniel.lezcano@linaro.org, mmaddireddy@nvidia.com, markz@nvidia.com, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 12/22] ASoC: tegra: Use device managed resource APIs to get the clock Message-ID: <20200217094826.GN1339021@ulmo> References: <1578986667-16041-1-git-send-email-skomatineni@nvidia.com> <1578986667-16041-13-git-send-email-skomatineni@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WeDu0lr7bteb/II5" Content-Disposition: inline In-Reply-To: <1578986667-16041-13-git-send-email-skomatineni@nvidia.com> User-Agent: Mutt/1.13.1 (2019-12-14) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --WeDu0lr7bteb/II5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 13, 2020 at 11:24:17PM -0800, Sowjanya Komatineni wrote: > tegra_asoc_utils uses clk_get() to get the clock and clk_put() to > free them explicitly. >=20 > This patch updates it to use device managed resource API > devm_clk_get() so the clock will be automatically released and freed > when the device is unbound and removes tegra_asoc_utils_fini() as > its no longer needed. >=20 > Tested-by: Dmitry Osipenko > Reviewed-by: Dmitry Osipenko > Reviewed-by: Sameer Pujar > Signed-off-by: Sowjanya Komatineni > --- > sound/soc/tegra/tegra_alc5632.c | 7 +------ > sound/soc/tegra/tegra_asoc_utils.c | 39 +++++++++-----------------------= ------ > sound/soc/tegra/tegra_asoc_utils.h | 1 - > sound/soc/tegra/tegra_max98090.c | 22 ++++++--------------- > sound/soc/tegra/tegra_rt5640.c | 22 ++++++--------------- > sound/soc/tegra/tegra_rt5677.c | 7 +------ > sound/soc/tegra/tegra_sgtl5000.c | 7 +------ > sound/soc/tegra/tegra_wm8753.c | 22 ++++++--------------- > sound/soc/tegra/tegra_wm8903.c | 22 ++++++--------------- > sound/soc/tegra/tegra_wm9712.c | 8 ++------ > sound/soc/tegra/trimslice.c | 18 ++++-------------- > 11 files changed, 42 insertions(+), 133 deletions(-) Acked-by: Thierry Reding --WeDu0lr7bteb/II5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAl5KYWoACgkQ3SOs138+ s6GK5A/5AcdDL/94+MLDuWQO9rtvoWy8z68TTio7XPaP1m3tLsAWmOrO4b+QPfyp pnyHtrq8rW9fRShCzBPf6DM5tAKALPrwoJSBWABqZNr0vupPZKcDCc47xRyz0VSI oeT4BuDIjYJtEQyzvUibM3ZsnbKJ0Iis8ZKQZK2b5UjGKt3/mO2sf6HmrXrUjAnn fo3FNwCiEvIkBkcyEu7NIZN7BzpHHWKRni7BgBnu+2Tr7cdqKwxkr9Eek52AVFV6 IBY7pn2JSCd3Yf82RadY/lpLmQ2i5M/ZKFhraMnVGfBYFr73B56sv69XEtv+I3do GP7t8FimcM2Nj+yNERQidOxBTT4JaF5lt6lXFEqqz3OYFcJ2GVc/3BNpEwrsL2z+ s0mv00ALzbrSdifmLYE+JbSBdscZArJDzs4aOJmNEbJUXEo3ucMkRVBwFoGcHtjQ 4RrvHR/pvGX85Cyhjmo0Z+uNi0Nr/JciRePBelXdjdeLn0LRCaSqntQ90rHnCi3V txQ33jOfO2Q5VlEsHBwuRYYzlqhIVVnIW8WII8cPSso91NM99QyI6tY+BLXJqT6p kqQw2OzXfCBdO/xCFLGu1LLsVFmFe9HPI+Yh5tde07/OutCgQ0hl5BnEDzg9ywnl CLdRdoUHbVoZdwg7R8QzMuUZ+nYTslcYQYYOBW5r/iBkd7u36Co= =yMLv -----END PGP SIGNATURE----- --WeDu0lr7bteb/II5--