Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp282905pxx; Wed, 28 Oct 2020 04:59:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwW9GP+tNSx4sRTko4nMRQClfRUr7xq6NTcPTDGYqAUv8c4WlADpNs0GahjzsV170vTHUJa X-Received: by 2002:aa7:df0c:: with SMTP id c12mr7466958edy.234.1603886366790; Wed, 28 Oct 2020 04:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603886366; cv=none; d=google.com; s=arc-20160816; b=B69JIBT4G/+UXDodWZpAWBOmg2BkTHsL+7d/tt/guCAn0Qw9brD3b/ZEnvCHbjmIPS uEokN82R/9B6vw7pykfWFtWq460J1+Yf9K/grdKi2LTYpyf64F7mVW7TLRlnUKNX9ECO eBvnmyenSR6QteHAnh+49HxSKREvMUn10EkTHx6v5EymS3GKYSqY+e7NVBc/S10UzdSA df5+fC+z1ONcRZ8qEWPfZdZAltNh18VT6e3JHO1oCTfStWlqvp3SQzXbjuGWu5knWFTl SaO4RJyElxCcOIBHHe90YfkX3TvOnqJw5eV4TVslCc2idW3o+RQaifkyjwnMnIAQc35H NLLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Gd07wA+cRidmy5L6AbZKENox8TSLsdUnfA4IxgHHlyM=; b=DApMg1VYpPuvHCF3jiB5dJ95fH3lbSB7HWKdmVbc7nA0D94S0fhMIMxMwU/7CPPppR uvKuUKpsIX+Zu+jvJC6rDO+yvaqJgDzyye7cJ2IbmrManYOT37UsnfvSI8GTOabAjcox 7VPvrGCuB8R/PbZR93w/uiOsUllgTEuNWPDylRRb5SwHhZXP+AZBlda8BhwJY48Hyic6 QGVT+nFBEVFyDvmkyuOUjjEkIu2YtY7W0dTzxan7WYUvt9jkohobHkMx3ym9dmmgPIIW RxcggK6XZ5/NNhvrL9ZZglJqbAFx2XCJZkOb3nY4zkW3NbOj1V9e0rzRW2dQgJpQAApn eDqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Jan6Ss/U"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si2868715ejb.712.2020.10.28.04.59.04; Wed, 28 Oct 2020 04:59:26 -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=@kernel.org header.s=default header.b="Jan6Ss/U"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1794909AbgJ0POU (ORCPT + 99 others); Tue, 27 Oct 2020 11:14:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:43480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1793787AbgJ0PIS (ORCPT ); Tue, 27 Oct 2020 11:08:18 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1893E206E5; Tue, 27 Oct 2020 15:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811297; bh=L37jF1pQXJyx4qM5+JP2pFqFz3sAMDilyqYOXV7D4E4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jan6Ss/UAzOzD8B2CMfr0r8u/+5IEw8WbEBHqEoYjdZcnroUO9WJ9x3qxsV4+dGgP +/NjZe1M/vAfX6F7dUXg1MJIfViDsYqCEcn1TZ5u8kNxxMlJS6Q9h8ZnSTUfTarx4a Wl60ukJKHLzRr80gW/ntn0AMPKUGoWJaPSr9HjZw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Ujfalusi , Tero Kristo , Santosh Shilimkar , Stephen Boyd , Sasha Levin Subject: [PATCH 5.8 442/633] clk: keystone: sci-clk: fix parsing assigned-clock data during probe Date: Tue, 27 Oct 2020 14:53:05 +0100 Message-Id: <20201027135543.455349461@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tero Kristo [ Upstream commit 2f05cced7307489faab873367fb20cd212e1d890 ] The DT clock probe loop incorrectly terminates after processing "clocks" only, fix this by re-starting the loop when all entries for current DT property have been parsed. Fixes: 8e48b33f9def ("clk: keystone: sci-clk: probe clocks from DT instead of firmware") Reported-by: Peter Ujfalusi Signed-off-by: Tero Kristo Link: https://lore.kernel.org/r/20200907085740.1083-2-t-kristo@ti.com Acked-by: Santosh Shilimkar Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/keystone/sci-clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/keystone/sci-clk.c b/drivers/clk/keystone/sci-clk.c index 7edf8c8432b67..64ea895f1a7df 100644 --- a/drivers/clk/keystone/sci-clk.c +++ b/drivers/clk/keystone/sci-clk.c @@ -522,7 +522,7 @@ static int ti_sci_scan_clocks_from_dt(struct sci_clk_provider *provider) np = of_find_node_with_property(np, *clk_name); if (!np) { clk_name++; - break; + continue; } if (!of_device_is_available(np)) -- 2.25.1