Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6232474ybe; Tue, 17 Sep 2019 23:27:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjMU1ucs/6rGnhSggtMEghx0zgDY7Nm1ZxV4Uxpip8roEwuvsiaiJguquDg/ykpyQ7jDMV X-Received: by 2002:a17:906:f204:: with SMTP id gt4mr5789161ejb.299.1568788057841; Tue, 17 Sep 2019 23:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568788057; cv=none; d=google.com; s=arc-20160816; b=cGBiKjzBknLAZAo4y2e4hmOCYsNe8bzxRcHkzqp0yqsR67oPV5t6Ekr+WxHayFHvUo FBjE5JWC7Z7zDrjmaKmvyfD/3mk30lT31zWQlSIqvVe6Rl+5ZqM1C9lLCOvc8AhdAnd5 NZHrblyun7fXx3hRWjpZeEYNuILuOU81/fGRSvbqd2BXkJ8z8Qvr6Gy+a/zigkz2wF6c /MyRDQ54Zt34+ETZyO9Rk95TsRPok3w43dycutgYFnb5wKwe6LQRiyvkGFQTBKBa4+i1 ZWEIYAK3JnvP4Acjh6TukigCNwwJsNF6AuvZEX+rSa/oGyK/GtxkAHm61fkjyK7bwz8O amlA== 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=gdVGNpHiEoMHR9TraMWa4UTTocq2vwGHWdPMZlKZ9mI=; b=W4KAzrABHnV1x5lBAZ57RQ+MlGZkFKLFXw7XgE6+VIe9OUTrD4WNUK3knk88iELR88 RkwmwrjGN1EnWsEFTfbc7BHCXm8xsdChYiqEWSjvUihzLHP4bstcuWAoQPyXzHfMWiIn oCAfs5Osx4EI9PMypO97sOQEpvdMV1WernBIvKD2ab45wEC4qqLm+uBiR0bLH6lQo/o9 1JG/9UtgANDRiQgVkFEgdc1efxzpYYnsaB0d8imrjpTKP+QdSL6jWO4PFD6Yl7Ut6VK6 Qj/ag8xl/+mCGo0XBL9SklPBoES6JXvpt0+GDpEQbK6JOGUk6nlQEuxbSXKTsBDlqhtc ShCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UC8sJ8bJ; 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 q1si2911053edj.354.2019.09.17.23.27.15; Tue, 17 Sep 2019 23:27:37 -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=UC8sJ8bJ; 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 S1727591AbfIRGX6 (ORCPT + 99 others); Wed, 18 Sep 2019 02:23:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:44260 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729732AbfIRGXz (ORCPT ); Wed, 18 Sep 2019 02:23:55 -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 54FB721929; Wed, 18 Sep 2019 06:23:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568787834; bh=acqf8iWr/flWMhoJlMX9Rq4SnUZG25hjg5RNHePwK0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UC8sJ8bJvHlHHR32gRnpXyWtX+sU4uaUVDZn3t55TrWxpHgb1mX7AoMsGKZxBcLnE g2HK5SeYvmeRlDU/WAeqmEfARsd+R7XPgw/FsI3nGUcfP+IITHwiM0BZtxJF7sabas Diuc49wT5VP6TG0few1Hil+IahxyyauwtaGuhRlc= 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.19 28/50] clk: rockchip: Dont yell about bad mmc phases when getting Date: Wed, 18 Sep 2019 08:19:11 +0200 Message-Id: <20190918061226.403676340@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190918061223.116178343@linuxfoundation.org> References: <20190918061223.116178343@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 @@ -61,10 +61,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);