Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp265367imm; Wed, 30 May 2018 23:17:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKgKyS38svd400PhjjviPf90Bfzgi0Gn4J3Aa1GNnwFVF7TEEh47v/aO6zMhAHL8KfwKi00 X-Received: by 2002:a17:902:8d8c:: with SMTP id v12-v6mr5725959plo.366.1527747446919; Wed, 30 May 2018 23:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527747446; cv=none; d=google.com; s=arc-20160816; b=irYAEnrqznI9MzrkNLa64S9D6VMluTYAuI1XojorUdTtGzvDC3k2s5uRRHA9bJlm0+ eT6PWS5VMBAz4kp1dDPu1srakkhPVdEv9A3LC2tjzjM/FhVj1nvqcEfqN32bQnD+iGGP da/mFhH+vt3huwAufzpchQpIIA4JXRxtGt147LIDVWl7Jee2Zqvgx0R2Md4buwA2ZOTy vqLNa3fm7OsNfPkog9z0FH0W6a9L0Pl6zHrSCwpd29QFHmSLCpQcpRaUgzMS8yJGMi7A px5vFoca7J9tHsjhG+NrbL8YN/Ytf02BR8MVBo6Jsc80JqbmDAkrpeGxliy6zQUZA36l hfFw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=t5i8ebYzNsyV2zr+cShmFfvAbKPVk03igmj31oP83C0=; b=kRX3M2dx9yxXqFiVwt+RD3FFk4wcJkNWw7YpcY3n3bIlpS5+X8cyWp8I8Sp6pjFU5S RuTd3xZ0NrKH/Us9dfeDqT3NNwBOjDWcpw4nLZyyNfcLCijjK1PKzt1bU024LxXoj7Eq +d1+6f7euKAyCH0XFr8llYXo8+5X2SQ46HCMDejnEi8thv6O6d1HtXTJ6pj4PnEc154S wFRMvI8D1bYoQ6ZKq+hsB+v+UeIrI70jDxY2VcMSAD9tAXxj9m/WIXDcogJL7pOuQwkv FLs+XrO2pkco9LQ3Nt1EVywLvK0a5ZfT/S5tGd3INqhyV3xVyqYTy1E/jUSotoXGY6EE eQ0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gOUp2JHJ; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12-v6si9218250pfk.166.2018.05.30.23.17.13; Wed, 30 May 2018 23:17:26 -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; dkim=pass header.i=@linaro.org header.s=google header.b=gOUp2JHJ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753958AbeEaGPd (ORCPT + 99 others); Thu, 31 May 2018 02:15:33 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33858 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753760AbeEaGPa (ORCPT ); Thu, 31 May 2018 02:15:30 -0400 Received: by mail-pf0-f194.google.com with SMTP id a14-v6so10244106pfi.1 for ; Wed, 30 May 2018 23:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=t5i8ebYzNsyV2zr+cShmFfvAbKPVk03igmj31oP83C0=; b=gOUp2JHJtM4Z4Ac4HXQtbtB0gI30OkosF0ZVQKiFkxPb24nnFDXx7mxGFNdI/RuAn5 uDs9sqvcrXy2+3qYOufo2LP74u4b3t3L5cEBmaGXwOh2xLJiry1M9PgdkE/zXQKikbbe G5c/Q/Sr/vYAEOT+zO/iNxO5Z0it20U6/F930= 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:content-transfer-encoding :in-reply-to:user-agent; bh=t5i8ebYzNsyV2zr+cShmFfvAbKPVk03igmj31oP83C0=; b=MVNQv8cbqoIyCJkoqz8RIFmYLfFFr4iw1DNLBVx0jNPe0HvR+jhnH/PtIgAgwp7Ci7 uG7NFzgKM7lRMNNLoaxlPG3c6VWvtWmOk0V8QPzD3sO10+L/ISidd63j2o3bBqDcNDW6 2HDo23HyDSWN7bGyUFxTdOzh9O1DCuX8UOpkJ9jPOMFsc86D7ySpDvt6mnQN8TwZ38cB e8bTyS3WftCHYWfgFAe9jV58PFQax/6155uZ5aZ0Ahho/86KhdbtM1ibdOXyQy3K/Hqf KMTv085H5zAsao5wiJ0oQOlmMP9QNrOT58HLmwvZ6ya40EOwzghE4DApS4h0j0/Qz7fJ hGWg== X-Gm-Message-State: ALKqPwd7y2WLN3yqLkLYthYqSm8ytyfAoRiaziZo4f9A3jSb7eiJR7mp 50ZyeQqewzr6YCIgIDnKG4jC+w== X-Received: by 2002:a65:554b:: with SMTP id t11-v6mr4546082pgr.130.1527747330466; Wed, 30 May 2018 23:15:30 -0700 (PDT) Received: from localhost ([122.172.63.23]) by smtp.gmail.com with ESMTPSA id o4-v6sm77611670pfg.129.2018.05.30.23.15.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 May 2018 23:15:29 -0700 (PDT) Date: Thu, 31 May 2018 11:45:28 +0530 From: Viresh Kumar To: Ulf Hansson Cc: "Rafael J . Wysocki" , linux-pm@vger.kernel.org, Greg Kroah-Hartman , Jon Hunter , Geert Uytterhoeven , Todor Tomov , Rajendra Nayak , Vincent Guittot , Kevin Hilman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, Alex Deucher , Christian =?utf-8?B?S8O2bmln?= , David Zhou Subject: Re: [PATCH v2 3/9] PM / Domains: Drop genpd as in-param for pm_genpd_remove_device() Message-ID: <20180531061528.6b7qdfygk5ouyeyh@vireshk-i7> References: <20180529100421.31022-1-ulf.hansson@linaro.org> <20180529100421.31022-4-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180529100421.31022-4-ulf.hansson@linaro.org> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29-05-18, 12:04, Ulf Hansson wrote: > There is no need to pass a genpd struct to pm_genpd_remove_device(), as we > already have the information about the PM domain (genpd) through the device > structure. > > Additionally, we don't allow to remove a PM domain from a device, other > than the one it may have assigned to it, so really it does not make sense > to have a separate in-param for it. > > For these reason, drop it and update the current only call to > pm_genpd_remove_device() from amdgpu_acp. > > Cc: Alex Deucher > Cc: Christian K?nig > Cc: David (ChunMing) Zhou > Signed-off-by: Ulf Hansson > --- > drivers/base/power/domain.c | 8 ++++---- > drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 2 +- > include/linux/pm_domain.h | 5 ++--- > 3 files changed, 7 insertions(+), 8 deletions(-) Reviewed-by: Viresh Kumar -- viresh