Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6240416ybe; Tue, 17 Sep 2019 23:37:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMrZf/+i1k1t/LbVv5hXrIbHkqmhAcP0BWwDt4QGZJ0CeB4uclo56S82DLr8PEvsR84g8+ X-Received: by 2002:a05:6402:1590:: with SMTP id c16mr8721451edv.104.1568788661084; Tue, 17 Sep 2019 23:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568788661; cv=none; d=google.com; s=arc-20160816; b=o0OyQ3HeMM1RGjbkrJjlnrKm4tPd+bZJ8xBwW2uvHA/DO1g51kxvIWHIy9gGVXB3v9 XE4vDjzDK7OaiL2NgC/k/Hqq4zzCnOtru0l1k8fe8uF1g1EgZMxnmlbEUmR4WBKUihgA ZRF9EPAX8cuKN4cNer2cMGE64SPPyXZ3q4SyIHapJedJiWwX7S8no7NpYr4k4GVz0CSP l+eEPVGXqZHGE9txGO/ZV29sYOZaOC0YkuLm7+etmAJ2eWk0l93Pxw6SqRbUMrWEW5am nzP18GYcvgq7E6f55B4zyJo4mwaCfI8xvvnQHoiULvkep3qz6jh9jQ5WILrrm4MIPGOR 7qIQ== 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=IHczB+KVR8a+HdupKzZx2yUGoVpBh2Ktm0WVgr/rMqA=; b=UwAERWw0h/yAk2KN7L4lz3jVuB5egEBUdWLFmIOIkG5qd1k1R0Boc30oAjtAYTpfXJ AeDsfm/qLQpFxxo8JEJ6ovgzs7EGGCg6Z/xfyP2wxVUVddA7Ql2WgvXlhp7C+Tzkj/Ps 4Ia+FyBtFsREY9eHYfo50wWZKFQWk3mcytOWl0euGzYdxNzbIsPKKqMI2mOz70cKb+BO rs/hsemfUvK/S55mcDck96R96uCb0cW2CRwmrK4kPb3hMo7PeLN9DwTTYuhE29/TGh5k Qug0V0XgsUe6QHpm2aVFdDBpx5Kcn3pacIW6xU2bDzu3OuudlwzslqpYf+DXZVSVkhXY +HTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2VkkYh53; 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 k16si2357866ejc.134.2019.09.17.23.37.18; Tue, 17 Sep 2019 23:37:41 -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=2VkkYh53; 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 S1728871AbfIRGU6 (ORCPT + 99 others); Wed, 18 Sep 2019 02:20:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:40040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728847AbfIRGUy (ORCPT ); Wed, 18 Sep 2019 02:20:54 -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 C2C19222BD; Wed, 18 Sep 2019 06:20:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568787654; bh=8Oga840qT7mNdbKHWlniyreRrb6tdK+loARl/EV5NNI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2VkkYh535KMCMpb2uQ5ZXIMmnX9rDNiV/KCbXkKtuq0Ck8KstmsbZ2uDDZAi2lWRT lFLQRXr8syQm96i13Vwy4mf8HM2yn2S8Bx83LkhVTimGmI8/zA5GUppBTfF+FZxFHY iCr9n6w0dQT9qV/WEuaOv7iHWHA9Ii+bSUdEZVcI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Douglas Anderson , Heiko Stuebner Subject: [PATCH 4.14 29/45] clk: rockchip: Dont yell about bad mmc phases when getting Date: Wed, 18 Sep 2019 08:19:07 +0200 Message-Id: <20190918061226.298005862@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190918061222.854132812@linuxfoundation.org> References: <20190918061222.854132812@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 From: Douglas Anderson commit 6943b839721ad4a31ad2bacf6e71b21f2dfe3134 upstream. At boot time, my rk3288-veyron devices yell with 8 lines that look like this: [ 0.000000] rockchip_mmc_get_phase: invalid clk rate This is because the clock framework at clk_register() time tries to get the phase but we don't have a parent yet. While the errors appear to be harmless they are still ugly and, in general, we don't want yells like this in the log unless they are important. There's no real reason to be yelling here. We can still return -EINVAL to indicate that the phase makes no sense without a parent. If someone really tries to do tuning and the clock is reported as 0 then we'll see the yells in rockchip_mmc_set_phase(). Fixes: 4bf59902b500 ("clk: rockchip: Prevent calculating mmc phase if clock rate is zero") Signed-off-by: Douglas Anderson Signed-off-by: Heiko Stuebner Signed-off-by: Greg Kroah-Hartman --- drivers/clk/rockchip/clk-mmc-phase.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/clk/rockchip/clk-mmc-phase.c +++ b/drivers/clk/rockchip/clk-mmc-phase.c @@ -59,10 +59,8 @@ static int rockchip_mmc_get_phase(struct u32 delay_num = 0; /* See the comment for rockchip_mmc_set_phase below */ - if (!rate) { - pr_err("%s: invalid clk rate\n", __func__); + if (!rate) return -EINVAL; - } raw_value = readl(mmc_clock->reg) >> (mmc_clock->shift);