Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp110808ybv; Thu, 6 Feb 2020 19:07:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwoj7g3ujZCKd1Agshz/WUn5j9eN32StdM2h+9ACGLcL6DO3Abn1KyRT3cPFU7ffl592Is+ X-Received: by 2002:aca:318f:: with SMTP id x137mr712165oix.100.1581044877080; Thu, 06 Feb 2020 19:07:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581044877; cv=none; d=google.com; s=arc-20160816; b=vtpAXiw7tyC/UzgkFlKtY1p1VUWbD656qQ1eZXt9QMhCvzsdfEeYrMF2ST1zpzefyN 3+bYwzsZlN6zC4KZO9f6yRq2vXMB6WumJEn1k2QNdO3eqObzUj7oiGRaEaLPfi6RfE9a IpVJDogUEhzreW077E8O5rye0voiOrt0Mqc+0/f1mgkZ7QA93CdTJ73d5pA4maSmcmfW hn6mjqBETmeAUWwHTnMYuPOkn5usYlXMa8/1Dj4D8/dAQZ7zLAxP7u+9ntwwIdNcIAmo HlQivfk7RagQypW0yfbq4va4vzehC5gZWoVCmSbcdskjjjsEMJSFwbL4hwdNpWXHPZzt AQEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=s3TxFkwUBzoZxEqhHCb5Dpa2HZc5hJhUkqC/KNrkDQc=; b=S9GTx9ZiFwwfZqKxb7rjZAKkgkMfXxY1vWFfRJ/UD6GHe9E38XscS1k9wLloI+k51z 57GFWFJp6WnGP4gtJosnYAdzNZirzjpxqDE1eT4+XAV8Y2n78ss6ynItThgfw0XeKtc8 +f7Txr37dunndDAWUFX9U8tJ4sjawPpoCSS0l2BaAu0bsBJP+9p4ZmNq3L3CZ/XMEdyn r6YwG855lJs5r6YBq/1zo6KyFr7a/mFrxEcFVBdkrQRWsPHJEoLKmudUj/ZZGNvDWrbS qoW9BZvQXjnVdqfNARBfcYPvyaAJ66Xf2Wwa7xCMPKUDGto+ko0OlJsA7Cyes5tczhwx VXxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="oPPLUfN/"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si808492otm.168.2020.02.06.19.07.36; Thu, 06 Feb 2020 19:07:57 -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=@chromium.org header.s=google header.b="oPPLUfN/"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726755AbgBGDGd (ORCPT + 99 others); Thu, 6 Feb 2020 22:06:33 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:35232 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726509AbgBGDGc (ORCPT ); Thu, 6 Feb 2020 22:06:32 -0500 Received: by mail-qk1-f194.google.com with SMTP id q15so891158qki.2 for ; Thu, 06 Feb 2020 19:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s3TxFkwUBzoZxEqhHCb5Dpa2HZc5hJhUkqC/KNrkDQc=; b=oPPLUfN/w8TsNQT5FmZWFRbcL2X+OQPCnFdi3CoAh86Vc1akO5DDdEuhA4jXAT8Tgy +D48c/EPGWfn/tkt+76tePp/JgvcAiokBGkYgxFjqw/N5OST8Z+xEkNgfLWT5N+Mpp7E 8jzLtZ/IP75iaFWsIKlT18p0KVqhZqOaK+zxc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s3TxFkwUBzoZxEqhHCb5Dpa2HZc5hJhUkqC/KNrkDQc=; b=SRjTmWg5y9Qg1e1nYfyS/XohvLJAJa3kNGzMXwhUuLUdrQ1Kjcy9ephfGz0o0ttSmn QDBMGHQ3oSBvbaN1SW7t0KeRymZltt7oSKRlfHpV/km/q+aT3Jg64ABbh2Ab2U3DYRt5 R3Jodt/d0WR8DUKcDAHgJeTz7Pi8jhkTEAdzsjt61S7wnXkW0VApp6R+m+KizTMAM0GT VCD3Ywx4WVWu4bA3fQi40ivcKhkYapDVQZqM8w80hlhz606sAzEwz/yGQazGy+kFVPo8 b5oNR3b2bW6eh9DTJK5hA71UHcYa+UKsBQGwFEiMS9xucAUiINJJhWWRGtOMNQ+wq7QV mMvA== X-Gm-Message-State: APjAAAWX94//cx9TJCVkjvLRDH/l/uB2jGoFNAUz/P9sANIJ2eEksULm XPE93KTTfyQCC/Ez6MxJzEH4sJhkKG4OdGUKppHz4A== X-Received: by 2002:ae9:f003:: with SMTP id l3mr5455012qkg.457.1581044792080; Thu, 06 Feb 2020 19:06:32 -0800 (PST) MIME-Version: 1.0 References: <20200114071602.47627-1-drinkcat@chromium.org> <20200114071602.47627-6-drinkcat@chromium.org> <8b300f30-aa6d-89ee-77e3-271e3fa013f8@arm.com> In-Reply-To: <8b300f30-aa6d-89ee-77e3-271e3fa013f8@arm.com> From: Nicolas Boichat Date: Fri, 7 Feb 2020 11:06:21 +0800 Message-ID: Subject: Re: [PATCH v3 5/7] drm/panfrost: Add support for multiple power domains To: Steven Price Cc: Rob Herring , Mark Rutland , Devicetree List , Tomeu Vizoso , David Airlie , lkml , Liam Girdwood , dri-devel , Mark Brown , "moderated list:ARM/Mediatek SoC support" , Alyssa Rosenzweig , Hsin-Yi Wang , Matthias Brugger , linux-arm Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 20, 2020 at 10:53 PM Steven Price wrote: > > On 14/01/2020 07:16, Nicolas Boichat wrote: > [snip] > > > > + err = panfrost_pm_domain_init(pfdev); > > + if (err) { > > + dev_err(pfdev->dev, "pm_domain init failed %d\n", err); > > No need for this print - panfrost_pm_domain_init() will output a (more > appropriate) error message on failure. Dropped. > > + goto err_out2; > > + } > > + > [snip] > > @@ -196,6 +274,7 @@ void panfrost_device_fini(struct panfrost_device *pfdev) > > panfrost_mmu_fini(pfdev); > > panfrost_gpu_fini(pfdev); > > panfrost_reset_fini(pfdev); > > + panfrost_pm_domain_fini(pfdev); > > NIT: The reverse of the construction order would be to do this before > panfrost_reset_fini(). Oh right, fixed. Thanks. > [snip]