From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935958AbcIPQNI (ORCPT ); Fri, 16 Sep 2016 12:13:08 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:36049 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761994AbcIPQNH (ORCPT ); Fri, 16 Sep 2016 12:13:07 -0400 From: Kevin Hilman To: Tomeu Vizoso Cc: linux-kernel@vger.kernel.org, Jon Hunter , Heiko Stuebner , "Rafael J. Wysocki" , Ulf Hansson , Len Brown , Pavel Machek , Greg Kroah-Hartman , linux-pm@vger.kernel.org Subject: Re: [PATCH v2] PM / Domains: Allow holes in genpd_data.domains array Organization: BayLibre References: <5256c34e-5afb-2cfe-9818-8e6a6e1f0fa3@nvidia.com> <1473941123-15090-1-git-send-email-tomeu.vizoso@collabora.com> Date: Fri, 16 Sep 2016 09:13:05 -0700 In-Reply-To: <1473941123-15090-1-git-send-email-tomeu.vizoso@collabora.com> (Tomeu Vizoso's message of "Thu, 15 Sep 2016 14:05:23 +0200") Message-ID: <7hy42rj01a.fsf@baylibre.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tomeu Vizoso writes: > In platforms such as Rockchip's, the array of domains isn't always > filled without holes, as which domains are present depend on the > particular SoC revision. > > By allowing holes to be in the array, such SoCs can still use a single > set of constants to index the array of power domains. > > Fixes: 0159ec670763 ("PM / Domains: Verify the PM domain is present when adding a provider") > Signed-off-by: Tomeu Vizoso > Cc: Jon Hunter > Cc: Heiko Stuebner > > --- > > v2: Also skip holes in the error path. Acked-by: Kevin Hilman