Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1817712ybl; Thu, 15 Aug 2019 01:35:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzMAOW2s9JWZRh65EHr0YOhNRvEB5Ldc1MWQ8AE43/WVDp1crAyHCwlg2lopWtGtC5pr6g X-Received: by 2002:a63:4a0d:: with SMTP id x13mr2579821pga.75.1565858156222; Thu, 15 Aug 2019 01:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565858156; cv=none; d=google.com; s=arc-20160816; b=S6vbWFQMeNvOfrYXeE2/+xUKTh9AW24EfGIXZm4J9TnlcDEjPf9uBX73lOQYO2ROLl suOQAvKCSLs0RdUk0cpCn95Nc0zvCydYfLNCIzA7oR887HbUFps4wryVBX3PrmiE078b kREytFh+luXAQelOiohQD0gZlAb+LWSP1CtCCKTmpD/L4P3uq6KBO+BE3wNvVnr3tuIO LALNkaZjo4rj1cmV9LlfFvmoGArvxYpjDx4M/axJUKHjrp1QK00adUOQax41TTNqg8q7 0XJY6fqmX3Kkp/P2qCNCZ0nLUOdzqr6lMeIny+MQc2VJKaV110xh7b5RoLodigNtM32x Sqow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=iBfBbCnz3k9WCcl1p7SCHw3q2GcP8A9EaLlKumG5y+U=; b=AV9mEYEOLFuNWw/rFgauD9s9h4SqHlXOMJD023X/D3WgOefdsnactWZcURH+ETLtLq DMEhqXObvBSYDmwnxb/cg1NBoindC2m0uFdEyun7KiO9lBBN2lvK1TThJwKGRSI7dcU/ zXv5BW0Gf1S4RFax4UW0B+KRrrZg5QtVi/dvStsC/Y3tG3k1R45z1Fl0f1Xk+iimCXuG AqUMRBbAMm6LQAL9LBE+w1dC115lQ32qd2Y0uhgAWn7ML2n8ZBNWXqdekJURD0434E4e Ws9QSiShL2atdWh6gMtY6P/Z970JQs2QQU+lXpRHueurv/kRL3zTVzbiI/jduIabDO5k jc7w== ARC-Authentication-Results: i=1; mx.google.com; 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 h19si1638905pfq.118.2019.08.15.01.35.40; Thu, 15 Aug 2019 01:35:55 -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; 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 S1730815AbfHOIBu (ORCPT + 99 others); Thu, 15 Aug 2019 04:01:50 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:46883 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725961AbfHOIBu (ORCPT ); Thu, 15 Aug 2019 04:01:50 -0400 X-Originating-IP: 90.89.68.76 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (Authenticated sender: maxime.ripard@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id C482E40004; Thu, 15 Aug 2019 08:01:47 +0000 (UTC) Date: Thu, 15 Aug 2019 10:01:46 +0200 From: Maxime Ripard To: Stephen Boyd Cc: Michael Turquette , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Chen-Yu Tsai Subject: Re: [PATCH] clk: sunxi: Don't call clk_hw_get_name() on a hw that isn't registered Message-ID: <20190815080146.4tkudfzus7uryoe6@flea> References: <20190815041037.3470-1-sboyd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190815041037.3470-1-sboyd@kernel.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 14, 2019 at 09:10:37PM -0700, Stephen Boyd wrote: > The implementation of clk_hw_get_name() relies on the clk_core > associated with the clk_hw pointer existing. If of_clk_hw_register() > fails, there isn't a clk_core created yet, so calling clk_hw_get_name() > here fails. Extract the name first so we can print it later. > > Fixes: 1d80c14248d6 ("clk: sunxi-ng: Add common infrastructure") > Cc: Maxime Ripard > Cc: Chen-Yu Tsai > Signed-off-by: Stephen Boyd Acked-by: Maxime Ripard Do you want to apply it yourself, or should I merge this and send you a PR later? Thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com