Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2670972ybv; Sun, 9 Feb 2020 04:49:24 -0800 (PST) X-Google-Smtp-Source: APXvYqzBCcyoIRYze6vkGGOJczmbpNvyN3AyB/VWr6XkhaiYVeh5TCezjXA1iJlJhFqWygrKlNzW X-Received: by 2002:a05:6830:139a:: with SMTP id d26mr6852383otq.75.1581252564336; Sun, 09 Feb 2020 04:49:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581252564; cv=none; d=google.com; s=arc-20160816; b=c2EJxKX7Nyi4cf4MGwKsTXIArn0S919nz5mr5WgoVKzUxUSd3kzelOp+VYpGRUaE+7 w5Teo2cM5Si3WVUftg2RmErBCPcU4PsXGmq2CBSit5V52TeLeJsjOFh2qyo9U6e225Ti TXgcQDe6XedIiZPCc1+Aq88SYYKenE7EYEBy6dbocOu07UbhnQnon30dUo3U5Dw1r58y kpqL31pVI4Yndt8XFO5DOFp1pnm+07RcjYbbhjedgqeawK8//U4N6qQMxXxtIzvM3A5B 98j11onfzwNqFg/VFOyailj6DYe5+DSUC/elFP3Xs5ds7m0K+JQJrv4W1RV4EGeWAd6n rkKA== 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=/HDQIjj7/RoJLWTQe7Qn8xLRJWwhFZyZPFpixKZQtWc=; b=Mm+iXgiUMWpsblg+Rs/BfYTfX2XEJM6wkUTYpRdL3JVsTZV7C5iCLdA8YHMACLrl+b XbByAshQwoUOoUwnejeMLLk53oB4R0MphV1b+RV+vwRo1v+VzZuKTQzPj1M5LZ3BV+eV iQ78uNYv593nm8HoKYZbRz8d2oZ4gE0aMNR/gxDQbkrrWda2nzWNhqVfebyJQH5zsUCc l+FaAziJ7Fom4hlslL4QPz88pknXGNv2YDYNZiNUZjUIDqqjUsD3Tglh2UDPgAOIKyt2 +wqBaI5Y1EGpm3IITWSF9MrDZrvyHwpBz1XgzFh8zEHXgrKe8qZcAmtSpEfW+MHi+LWG g1LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BslnAMPT; 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 f4si3006819oto.169.2020.02.09.04.48.46; Sun, 09 Feb 2020 04:49:24 -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=BslnAMPT; 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 S1727678AbgBIMne (ORCPT + 99 others); Sun, 9 Feb 2020 07:43:34 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:39924 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727340AbgBIMne (ORCPT ); Sun, 9 Feb 2020 07:43:34 -0500 Received: by mail-qk1-f195.google.com with SMTP id w15so3856444qkf.6 for ; Sun, 09 Feb 2020 04:43:33 -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=/HDQIjj7/RoJLWTQe7Qn8xLRJWwhFZyZPFpixKZQtWc=; b=BslnAMPTFediwpaZFlp2heXASRgX8v8aUXs4aofs/vN0jqnkG+BxIvOnq4/ykzx/Eg OdYffEnc4QvF6RVCf74NmtRvLiqEzhYLuHxnSt160Yttiji8URM9DSLodTvmsws37OyT MzdF80b/1Gayu2vTVYQisVu6xLheXWBHCKEf0= 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=/HDQIjj7/RoJLWTQe7Qn8xLRJWwhFZyZPFpixKZQtWc=; b=mvr9wvkPaIciz2vlNTCBMbK/0CLVg7YSjJJ54jDAXkBkAtIAtvsoHIX/jS0TpQsnd0 SHnXPVmKo6a/vJuRiWuGkfyBGcrSt14ZCDRmRtn/Mb/JX8fhww4j78mXhuI7z1kdVYcx BzPLOUgQvLThZM2paL5R43y1rXUvKfK+zfm0LSX1lFY9P4m3MNOGtY97L3O/kxAfOvKh aRfvRc9bK9l/MiW+Ur44pw8XAzUNCUZjrP0Ve2Zj0j5IO2JfQFfpcjFnyGfObqymN3sT FXX+JYO4ToJm9gfg526LByOd/107rjS3e+m4Q1N3oLfJsjsGlAVct4cc3YA5YUrnMJFq H6YQ== X-Gm-Message-State: APjAAAWho9dUDAOYzMsXDDlSGlDapTZvBC4X6HETItoe02oeJWh0JICC ZNvf64BGA5yWgWEZwIKf5ny0/DrLy6//GSftkgUTbA== X-Received: by 2002:a05:620a:1656:: with SMTP id c22mr6969362qko.144.1581252213254; Sun, 09 Feb 2020 04:43:33 -0800 (PST) MIME-Version: 1.0 References: <20200207052627.130118-1-drinkcat@chromium.org> <20200207052627.130118-6-drinkcat@chromium.org> <20200207135251.GA2952@kevin> In-Reply-To: <20200207135251.GA2952@kevin> From: Nicolas Boichat Date: Sun, 9 Feb 2020 20:43:35 +0800 Message-ID: Subject: Re: [PATCH v4 5/7] drm/panfrost: Add support for multiple power domains To: Alyssa Rosenzweig Cc: Rob Herring , David Airlie , Daniel Vetter , Mark Rutland , Matthias Brugger , Tomeu Vizoso , Steven Price , Liam Girdwood , Mark Brown , dri-devel , Devicetree List , lkml , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Hsin-Yi Wang , Ulf Hansson 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 Fri, Feb 7, 2020 at 9:52 PM Alyssa Rosenzweig wrote: > > > + for (i = 0; i < ARRAY_SIZE(pfdev->pm_domain_devs); i++) { > > + if (!pfdev->pm_domain_devs[i]) > > + break; (next time, please provide a tiny bit more context when quoting, I had to look up to see where this comes from) So this comes from panfrost_pm_domain_fini. > I'm not totally familiar with this code, but should this be a break or > just a continue? Check how the domains are initialized in panfrost_pm_domain_init, they are guaranteed to be "packed" at the beginning of the array, so there can't be any holes, so break is safe.