Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp520207pxx; Wed, 28 Oct 2020 10:11:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHurj8PVCGGCXhBCKHzSWnvt77r8c9in9t5TlpDPK6tMuNDjvqJPiQUMfL1U7MAGwA7zDZ X-Received: by 2002:aa7:c490:: with SMTP id m16mr8731451edq.298.1603905068752; Wed, 28 Oct 2020 10:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603905068; cv=none; d=google.com; s=arc-20160816; b=HqRb74egGw3hiHJale05SAZoevBRP9xFjBN8/0Az9lVEhhcJTkdksbai+sgeDSEGIt 7aGe0Qmqy319Iq6OL7TtlfJAcxWhpv7V4V4XqwssUe0+oMjrDszGsw+cwT5CFgDhnkIU AQuM+iOcf/X1CN88wm/R+qkSNEDTnsVC/to87olH3/wuL/yE3GlZQDQSr5JvgJIhi8Jq GHFw8CCPRTR+bPbzPKD2bkZHE2pxKT464l7r8DyqmUVpAeRkoVdKHKoVlA9MIDOy2sg1 v0QtTVEYO2GyFanFmUyXtSNu5ryMnwRQDzgmz5O+gsxYQX7Mm5HeWBwP+30MT8/BOGXI Q1Qg== 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=jmK+2s5FacnxPXNWcwoq0IIUM8OWJlyAL2RLiC7o55SqH7ONB5+1mQSjC9qNmOjJiI l3LzXbpGe5rAkrQMiMJ3pyPAtGL3oeX7oS4Sqt/mY+caofod6PtFZ54Ub2Ojp+wkYHhN +K972z67gnyDkpxKCo+mTt3R6SgsbNgjMCVdAnx6ZUHqc2am4GqIIBIM+fsasbo4B1Nk Ov8JpBf+jupKJ3EyKBv2UiFGaaw0As5sIRS1gxHafSRoM/VfnCoXz3xGvJfdDiLXB/Fy WqcwbshxkQ65jre1PVGK2bNEWnpZx2hqqUXq2SHNc/EbxDJqHJe1QB4nZ/Y6FdtWIlOI 9KvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OgLr1xUm; 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 w23si165eds.571.2020.10.28.10.10.39; Wed, 28 Oct 2020 10:11:08 -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=OgLr1xUm; 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 S1820217AbgJ0Rdy (ORCPT + 99 others); Tue, 27 Oct 2020 13:33:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:39730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1749895AbgJ0Okn (ORCPT ); Tue, 27 Oct 2020 10:40:43 -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 31703207BB; Tue, 27 Oct 2020 14:40:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809642; bh=L37jF1pQXJyx4qM5+JP2pFqFz3sAMDilyqYOXV7D4E4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OgLr1xUmfUswpUXfSihBBRWxrm50OxsMuxf9BrAtB8WVMOu7EgyyFQhaVySnnxkuO 7wLqPlItUYUdAfV6cfuuabokP4DQ8WbZn9SfizBATz++CFNPyyly6QE/EhaXv7aJK4 hfY24BRusXIk5+xAwsEuZaHoDXKcAT5Gyu4Fk+n8= 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.4 268/408] clk: keystone: sci-clk: fix parsing assigned-clock data during probe Date: Tue, 27 Oct 2020 14:53:26 +0100 Message-Id: <20201027135507.478883148@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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