Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2521770yba; Mon, 15 Apr 2019 13:29:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHer/6W1yUgG4uNL3x/boiaGIBT+XQ3ir8bc+G83qCY0qqVjtTONIUKEdXrIYdUlLQ7ewN X-Received: by 2002:a63:cc0c:: with SMTP id x12mr72248600pgf.336.1555360189246; Mon, 15 Apr 2019 13:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555360189; cv=none; d=google.com; s=arc-20160816; b=pC/dWVAJujTnO9/dcMOSLbxMObsvNB/Df2ThogKiAKCWxztkSLs5faObVl+LN6mpf0 IrUCyYRZuuX8SKnrXs0PTsRH3MGJzJjSuBE2zwMnTNon3gj8xQewsHnzJmhbPTnckxJa 42TezXkP7wg0C7nI8OfqtHWpNZU7Xbdks/leaYXo8fc+fru9mig1PqtNNKuNBWorsVXe kmxUP4OEo3i3Iw5YyqaBVxhSfiN+W1rYMnZ+LSAreEs1H1a15UAYqjTJFk6kn0EKVBCI f/HLQU/vZ/8AmG8+j+Wd7qvpRvcKPZrEnyqqbMQsP8BO5bK85NmX8GMRGzoeWh9BbQVH jRpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nvAmnjOmYHffhgjldBLau+KjYl4FGy2s6Jka856zJqA=; b=DXM6f5u4D6KwnSp+G2SzTZAf5P9uduO96C9gWXjQ1vSXJnHvxJChg+DblqWu2dZNJb puOFx2ns+JVyzKWvh2PLfrSPUqOWxi2cUOfj0A2knUSM/5E7sq1EOvr5ow+X12SkLho7 Yb9S8A2scnOYGmzltYeIdB1LP3obAZD1KyZ7bt87IGfMEucvrcwM0VmyOThjaTwnpqhv AFO/fkXm0Z2BzDAJzyxw3b6HThWQmVIuDjy2qN5ka8VsxPZA8u6PwYi4EH2jTy4e7fng E3PMfR3oWSFtpxm7wEY0/2Wnsu49mC5nUfz/3F9D411wP4904sViQwMNHLrRNiFxYJ6c q+Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sfXHWYKt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s79si31057048pfa.69.2019.04.15.13.29.33; Mon, 15 Apr 2019 13:29:49 -0700 (PDT) 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=@kernel.org header.s=default header.b=sfXHWYKt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729877AbfDOTGV (ORCPT + 99 others); Mon, 15 Apr 2019 15:06:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:40564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729871AbfDOTGP (ORCPT ); Mon, 15 Apr 2019 15:06:15 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 31579218A1; Mon, 15 Apr 2019 19:06:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555355174; bh=7DsOpPYvtwZ9Mu5MY6ncdl1osHiPlEXpm3yAOMdh16U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sfXHWYKtCMFtobGQ2iWxXJL9OXT4rSLquaS7ATNFReHcuteTEBQ4ukr82n7a2XrHh fEPl/7sTEl9TpASi7BLOtG0gADMvH7xkcOc8+Nj/aVVUgtVkFPpz5snPXHhCsEbjZM KIms5jiiMH7fAQ962pKxanEA/+EVywnsGQNCfFZA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Neil Armstrong , Sasha Levin Subject: [PATCH 4.19 041/101] Revert "clk: meson: clean-up clock registration" Date: Mon, 15 Apr 2019 20:58:39 +0200 Message-Id: <20190415183742.628462437@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183740.341577907@linuxfoundation.org> References: <20190415183740.341577907@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit c8e4f8406842332fb55cd792016e5dac266f6354. This patch was not initially a fix and is dependent on other changes which are not fixes eithers. With this change, multiple Amlogic based boards fails to boot, as reported by kernelci. Cc: stable@vger.kernel.org # 4.19.34 Signed-off-by: Neil Armstrong Signed-off-by: Sasha Levin --- drivers/clk/meson/meson-aoclk.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/clk/meson/meson-aoclk.c b/drivers/clk/meson/meson-aoclk.c index 258c8d259ea1..f965845917e3 100644 --- a/drivers/clk/meson/meson-aoclk.c +++ b/drivers/clk/meson/meson-aoclk.c @@ -65,20 +65,15 @@ int meson_aoclkc_probe(struct platform_device *pdev) return ret; } - /* Populate regmap */ - for (clkid = 0; clkid < data->num_clks; clkid++) + /* + * Populate regmap and register all clks + */ + for (clkid = 0; clkid < data->num_clks; clkid++) { data->clks[clkid]->map = regmap; - /* Register all clks */ - for (clkid = 0; clkid < data->hw_data->num; clkid++) { - if (!data->hw_data->hws[clkid]) - continue; - ret = devm_clk_hw_register(dev, data->hw_data->hws[clkid]); - if (ret) { - dev_err(dev, "Clock registration failed\n"); + if (ret) return ret; - } } return devm_of_clk_add_hw_provider(dev, of_clk_hw_onecell_get, -- 2.19.1