Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp52512pxx; Wed, 28 Oct 2020 17:55:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa86uXhm2HnORR/IducJQqbsq6ejpNp+u2JzSMDxGAx4mnTxcUH5hVyg+nzCycGF5mzx0L X-Received: by 2002:a17:906:c114:: with SMTP id do20mr1674949ejc.169.1603932929480; Wed, 28 Oct 2020 17:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603932929; cv=none; d=google.com; s=arc-20160816; b=psBvHsSPm0V6esNWsQLHYpWPigV3nZtT5Gmn9804ij67hoWRtUvuT2jLu0zGvtDRad +7QqEEQzw3EsiUwKjdyVVAl8D0at1dt2anC2eAZ4pZ5bHIFqkMp0T62LR6l7ixqVz9sr cxsS50/l+MU5pIi/Yff2P3WhIMWt7sBOa1UjURup7qdjwVDjSYTRFp++w/STZFg/0NPW hfdRRR4Zl1DBJvB76RsrTRjJVmwI88dJ5klN7xOG71XkTl3Rhx8q9FpRLcfiYVOdar2c 032ZXthVmurI7M3VUIB8wFumQ5PeOrIuNxpbjvokoo9eU1tL+g7GHilUAmoosrI2DlKs 0KOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=rKwBi6lLjjepnpsz5X/9dYoEl9YGuELhyvzjY0sjk3A=; b=FYL3XVuQm+nvaz+pGe1BtIZ3q/EVrcPH8BJN7J3Q2aYnP5UxtNugawoQC7ZNUHaN/V xK0N1icm0tQsNBplQfavP/4OnMlnCyB29kiwaOls9uvNx9AQZnAKAmo6q94MrhLeD+z4 DiYmc/84PKWA/+pC00Ei0nBhzjwS4uLUQvXNzkJ6CjNkTJ6mZc/+Dy485sWR/rA5fDwD QG6b+elYSKD7McKGhP9Pjn3gFCblgerFKX9YmVXY5p23ZBpfXP7H1XOnTLbCEv26fLjd 5FV9lu32ncjSjBkaVjwdKHlg6eHuDHRSmgzEWamoqg8AiwLe+4XOcTg+n7ZFChwEK1IX la5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JWaTF6lb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co4si743156edb.461.2020.10.28.17.55.07; Wed, 28 Oct 2020 17:55:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JWaTF6lb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727316AbgJ1Vpv (ORCPT + 99 others); Wed, 28 Oct 2020 17:45:51 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:43410 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbgJ1Vns (ORCPT ); Wed, 28 Oct 2020 17:43:48 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 09SLhaTJ058741; Wed, 28 Oct 2020 16:43:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1603921416; bh=rKwBi6lLjjepnpsz5X/9dYoEl9YGuELhyvzjY0sjk3A=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=JWaTF6lbh5Hbhj2kf+cJjx+NqhzDgW+wiExZ4GuLHyty737HA+E8aV8S8F1YJ3ys+ L50g/rUn1E1RKmq8tNSsM0Wxt3yNWYLV+TYXCcfZXz3TP2qEF8n3GY616NGFoYRqf7 bH+qsLjiB82/mXnO6+UgMvsHUXWaQuslSGn962C8= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 09SLhaO8122339 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Oct 2020 16:43:36 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 28 Oct 2020 16:43:36 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 28 Oct 2020 16:43:36 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 09SLha4b108673; Wed, 28 Oct 2020 16:43:36 -0500 Date: Wed, 28 Oct 2020 16:43:36 -0500 From: Nishanth Menon To: Tero Kristo CC: , , Subject: Re: [PATCH] soc: ti: ti_sci_pm_domains: check for proper args count in xlate Message-ID: <20201028214336.qfwbs46j5x6cpjhr@award> References: <20201028141700.10510-1-t-kristo@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20201028141700.10510-1-t-kristo@ti.com> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16:17-20201028, Tero Kristo wrote: > K2G devices still only use single parameter for power-domains property, > so check for this properly in the driver. Without this, every peripheral > fails to probe resulting in boot failure. > > Fixes: efa5c01cd7ee ("soc: ti: ti_sci_pm_domains: switch to use multiple genpds instead of one") > Reported-by: Nishanth Menon > Signed-off-by: Tero Kristo > --- > drivers/soc/ti/ti_sci_pm_domains.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/soc/ti/ti_sci_pm_domains.c b/drivers/soc/ti/ti_sci_pm_domains.c > index af2126d2b2ff..8afb3f45d263 100644 > --- a/drivers/soc/ti/ti_sci_pm_domains.c > +++ b/drivers/soc/ti/ti_sci_pm_domains.c > @@ -91,7 +91,7 @@ static struct generic_pm_domain *ti_sci_pd_xlate( > struct genpd_onecell_data *genpd_data = data; > unsigned int idx = genpdspec->args[0]; > > - if (genpdspec->args_count < 2) > + if (genpdspec->args_count != 1 && genpdspec->args_count != 2) > return ERR_PTR(-EINVAL); > > if (idx >= genpd_data->num_domains) { Thanks Tero. Acked-by: Nishanth Menon Santosh: can we queue this one for 5.10? - I am trying to track and get all platforms booting and functional in 5.10 -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D