Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1432394img; Tue, 26 Feb 2019 22:18:18 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib7pclz1XxBxrMEYSLoTmR625BHlokcw7GT22wC8jXM6WhxsCBAWaEKTR2MZzHTvowYbr7H X-Received: by 2002:a17:902:765:: with SMTP id 92mr457894pli.95.1551248298564; Tue, 26 Feb 2019 22:18:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551248298; cv=none; d=google.com; s=arc-20160816; b=DfsiU9rjX7XzTChteWVDm7N3hgR5EvK2PMOTm8oNy5IPuJuGyroNcT/2Sp/aeob8Si kFPC/RBEep8p8fDOVQ/jzWrcI5B+uXf3h5S7BR32BMJ29RtpK782hg1y0kNvfe+bOgyY udIW/Me5ekbOAbbEe5qx0QopsGOjwPSk7oVOxSRTLgRRRC3kst/pVMndkGQKkboCxo8y 1k03k5t1l1SGPHv5IEaY0bnSkCFCmvmNL0pUi5l6+yV8iOnLCPT4v7ccESmtPmEQ5Ntt oR6ywqeOIc3Fjzcn2hTtnHqE7Z5Sqs6Og1Uzwvx76OWBWPfyL2FCEtPAftCt3ggh5Vu7 1WoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=W8vsZ2Kifl5T5G9AeWtPcKM6+uv18ftpyIdzfFUQvA0=; b=tXzF/+wokUFCRmHL8e1kfsVp5HR8LKwikJj97kd0tbi7FNCTI7TpF7MCdCBztzSADB UbH774sZREWqxYg3U5YJ837Z5EZf3wjMLTYq7HbkdGa0jYMFT3NH5W8uDUok7bddtXul 4hkLiTLpmUgVMDRmW8XrxV+I61kF7o6jrsrx2vctFXjbNYYBFkUjvOkIpKrEQ2N4QkxL XSG6NMFyg4gectmpttzu0wKIt1F2rVSgOZqzWto5TVrbF4vjzhmJcEl4zOaRwQmEgEFs JM+cBncK+4kR7Gm0UPy89HwyqV0CY5RM2RjHDt0tlvpf8YzWYEmr80M2irs0p7LWvIaO fAtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=mnSCuDYw; 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=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11si10700978plb.60.2019.02.26.22.18.03; Tue, 26 Feb 2019 22:18:18 -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=@nvidia.com header.s=n1 header.b=mnSCuDYw; 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=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729786AbfB0GRG (ORCPT + 99 others); Wed, 27 Feb 2019 01:17:06 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:18387 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729529AbfB0GRG (ORCPT ); Wed, 27 Feb 2019 01:17:06 -0500 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 26 Feb 2019 22:17:00 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Tue, 26 Feb 2019 22:17:05 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Tue, 26 Feb 2019 22:17:05 -0800 Received: from [10.24.44.186] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 27 Feb 2019 06:17:03 +0000 Subject: Re: [PATCH v2] ARM: tegra: enforce PM requirement To: Dmitry Osipenko , Russell King - ARM Linux admin CC: , , , References: <1551169537-17548-1-git-send-email-spujar@nvidia.com> <20190226091308.ycruijz2lcziv5gt@shell.armlinux.org.uk> <562c4307-74ad-fd9d-74e7-36ac19315d0b@gmail.com> From: Sameer Pujar Message-ID: <92ca8288-3b57-0683-83fa-445e2be42086@nvidia.com> Date: Wed, 27 Feb 2019 11:47:00 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <562c4307-74ad-fd9d-74e7-36ac19315d0b@gmail.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL104.nvidia.com (172.18.146.11) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-GB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1551248221; bh=W8vsZ2Kifl5T5G9AeWtPcKM6+uv18ftpyIdzfFUQvA0=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Transfer-Encoding: Content-Language; b=mnSCuDYw2UopLOeRbZQrZrHGeY3BLp7vqP2XklrQU9QeMv/C2JwRlTqtBQXwU1T3H GfGaAhBIuzew9YgK+gaV8sP/ID+gRiSNP7IiLjnx5ztyppIfDbHTpOtY22t/fDe4Kf /5PGmcK21jJu+nt+ecm016JjJP874D0dHbluyIQZ94QmFVvd9Bh9aGEvpF+wroHD3v K5L2mFsbDQnOdaJaptjK4FuKWjtSsdggpBug11Pco5cKNREeKGiF6BeXhniOm0yEEU tTZbu1gQqRB9t4by4FfQfVE4+ideCQG4uFbzslXFb8UZUEN8rjmXls3B/OWedKO4Mw Mm3G2V5k4x/JQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/26/2019 10:22 PM, Dmitry Osipenko wrote: > 26.02.2019 12:13, Russell King - ARM Linux admin =D0=BF=D0=B8=D1=88=D0=B5= =D1=82: >> On Tue, Feb 26, 2019 at 01:55:37PM +0530, Sameer Pujar wrote: >>> The requirement for this came while adding runtime PM support for HDA >>> driver. There were concerns about driver explicitly handling !PM case. >>> In general, drivers need to handle !PM case with work arounds for >>> managing clocks and power explicitly, which is not really necessary >>> when PM support on tegra is in good shape. In fact ARM 64-bit Tegra >>> platforms enforce PM support and there is no reason why this cannot be >>> done for 32-bit. >>> >>> More details with regards to above can be found in following patch, >>> http://patchwork.ozlabs.org/patch/1036645/ >>> >>> This patch selects PM unconditionally and drivers can rely on runtime >>> PM framework for clock and power management. >> What if the drivers are re-used on another SoC IP? Doesn't this lead >> to unexpected failures? >> >> If you want to do this, maybe also make those drivers depend on PM as >> well? > The commit message is inaccurate, it is intended for the Tegra HDA driver= and not for some generic driver. The overall final intent is to remove dep= endency on the PM availability for all of Tegra drivers to "make Tegra main= tainers life easier". Wanted to convey that finally it would be the case for all Tegra=20 drivers. I will update commit message to make it more clear.