Received: by 10.213.65.68 with SMTP id h4csp1231813imn; Sun, 18 Mar 2018 20:46:43 -0700 (PDT) X-Google-Smtp-Source: AG47ELsikcivbXkUPEMC8DglK+EwhI0nolR7u5FRRGkyTMoPwxj84GRy26Hm3GTfujMK+cem4pWg X-Received: by 10.99.149.68 with SMTP id t4mr8021259pgn.144.1521431203130; Sun, 18 Mar 2018 20:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521431203; cv=none; d=google.com; s=arc-20160816; b=1LTTIMp3OPOqVO2leSXSnTJ3oKVrV1N4vv0tu0tw1xkAaDUni0ngCe2wRpV48BEwE4 KXX9ynpWInkpM/T7+FVQhZk50yzsgmo3GNt+B5QHjOZV28ybvWwuznf5saU+prH4dcuS zhb50fBQgOMg4zJwVW4jjcmgO/DZznH6DHNgiE6+QuMWIpcKClOzch3uBkI+16NJ5/Ic dsdUFcn8sY0cPVW1WDQP+Vo7y+bgT3g4F4JP3IeCA0PUkKqGnJbqVS2pgxglyZKxst2s MNrkyiZqSkyuhFjSXPM4vK2ezq7YcwnVwTbPPOprjjRXe4fuEha19wVELSPbDqmyNyOy v/hw== 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-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=SQv4AUsacCCDPtwg4D8FNLigeY1D19PbzGZbIZ3xhq0=; b=KC3LkntFaFUdCaiNpGtWT8Cw6+HO3dzwNCuJKCmQof89qRVP1Lhd2f4HCnM0YjGXiz OdFnWODVq0YLrMhAYBbSR8nBjCz6eCuxEGzNxpp4e7nurc30ataECwK+xnlADAQvEnlB MwySdHtwp5NbNgW4jwY1gg/77kn3PjLhFC/yRIcgTEpPovWTcAykYIykjQpI5YjLOEKE 9sZzGp+hpGuHOeSwQp/n3oUMJUp4GB3E+AdYPA08QZ1WtAihfjhpehPdQNv+NTQ5eY7j He340i/vuix5zcSwIXxkWWPneGTheiCkyhv25TvTH9DHeCgagQ09joJonsMh6BFvIPUD lElw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L2ikv7lb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1-v6si12508361pll.57.2018.03.18.20.46.29; Sun, 18 Mar 2018 20:46:43 -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=@linaro.org header.s=google header.b=L2ikv7lb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754892AbeCSDoN (ORCPT + 99 others); Sun, 18 Mar 2018 23:44:13 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:34684 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754375AbeCSDoL (ORCPT ); Sun, 18 Mar 2018 23:44:11 -0400 Received: by mail-pl0-f65.google.com with SMTP id u11-v6so5807016plq.1 for ; Sun, 18 Mar 2018 20:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=SQv4AUsacCCDPtwg4D8FNLigeY1D19PbzGZbIZ3xhq0=; b=L2ikv7lbSJkPikwZx/0AKQgGb1ABROx2r0AZ9nP+c2/YffOGccRRXrjQGBH850ng1t kUi7IWr2nTE8xvjw8+v9NNNQeUSXbfcxvkoog2ADswvLPfTtdZdHzsxAW73XATwENOV4 0AlZSadIKMINTqKTG+pTqL2rV7MDmJ5Y9oOTY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=SQv4AUsacCCDPtwg4D8FNLigeY1D19PbzGZbIZ3xhq0=; b=W2AT9g+Ptyv9S3qLn9kd+dzH0Fz1Lh3AV8MQxI/xGUD5VfhXaoWmkT9xiYYrysjA3t MIB3gyysE9C62XC/Yvq+NaW/4kUuQ9XySDnwmSUcBJ5/b+M7zG/EyXsqt5ryyPQS6v8c t0esNfyijgr1Jrvv0GXjgDdqwLldduqyNG+FBDtZW+hhjX6t1j5vSR8XQ7nUYuoynyAX 4v6MZW6sjId8v3P6LRyJvjQ9FvwEWlPXS0KY48AsQ7fwLR5zJ506e6oThCZ7eYPzhq97 NG4v2N3IscRR8unRWt9pXbS8DwpP/ogEh9qa/Kpp2Ve7SbIZbvUyXPZZH0EQP6T0FND1 KpDQ== X-Gm-Message-State: AElRT7E+rIJ60hB7NNZRbXJguE6szbq9sl1lap4Lkm3Hbzja4WkMTlrA EoV3REg+WFKTVEuYsbx7e6cCKx/lZPQ= X-Received: by 2002:a17:902:4201:: with SMTP id g1-v6mr11018911pld.62.1521431050286; Sun, 18 Mar 2018 20:44:10 -0700 (PDT) Received: from localhost ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id p6sm25669111pfg.183.2018.03.18.20.44.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 20:44:09 -0700 (PDT) Date: Mon, 19 Mar 2018 11:44:08 +0800 From: Dan Rue To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Tero Kristo , Stephen Boyd , Sasha Levin Subject: Re: [PATCH 4.14 056/109] clk: ti: clkctrl: add support for retrying failed init Message-ID: <20180319034408.wi6wfosbcckw22j6@xps> Mail-Followup-To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Tero Kristo , Stephen Boyd , Sasha Levin References: <20180316152329.844663293@linuxfoundation.org> <20180316152333.001660820@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180316152333.001660820@linuxfoundation.org> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 16, 2018 at 04:23:25PM +0100, Greg Kroah-Hartman wrote: > 4.14-stable review patch. If anyone has any objections, please let me know. > > ------------------ > > From: Tero Kristo > > > [ Upstream commit 729e13bf58e643b9accd2a14c55b555958702fb0 ] > > In case the clkctrl node contains assigned-clock-* entries, registering > the provider can fail with -EPROBE_DEFER. In this case, add the > provider to the retry_init clock list so it will be cleaned up later. > > Signed-off-by: Tero Kristo > Acked-by: Stephen Boyd > Signed-off-by: Sasha Levin > Signed-off-by: Greg Kroah-Hartman This fails to build for me on arm32: $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=build-arm multi_v7_defconfig $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=build-arm ... ../drivers/clk/ti/clkctrl.c: In function ‘_ti_omap4_clkctrl_setup’: ../drivers/clk/ti/clkctrl.c:497:27: error: passing argument 2 of ‘ti_clk_retry_init’ from incompatible pointer type [-Werror=incompatible-pointer-types] ti_clk_retry_init(node, provider, _clkctrl_add_provider); ^~~~~~~~ In file included from ../drivers/clk/ti/clkctrl.c:24:0: ../drivers/clk/ti/clock.h:265:5: note: expected ‘struct clk_hw *’ but argument is of type ‘struct omap_clkctrl_prov ider *’ int ti_clk_retry_init(struct device_node *node, struct clk_hw *hw, ^~~~~~~~~~~~~~~~~ ../drivers/clk/ti/clkctrl.c:497:37: error: passing argument 3 of ‘ti_clk_retry_init’ from incompatible pointer type [-Werror=incompatible-pointer-types] ti_clk_retry_init(node, provider, _clkctrl_add_provider); ^~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/clk/ti/clkctrl.c:24:0: ../drivers/clk/ti/clock.h:265:5: note: expected ‘ti_of_clk_init_cb_t {aka void (*)(struct clk_hw *, struct device_n ode *)}’ but argument is of type ‘void (*)(void *, struct device_node *)’ int ti_clk_retry_init(struct device_node *node, struct clk_hw *hw, ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[4]: *** [../scripts/Makefile.build:329: drivers/clk/ti/clkctrl.o] Error 1 make[3]: *** [../scripts/Makefile.build:587: drivers/clk/ti] Error 2 make[2]: *** [../scripts/Makefile.build:587: drivers/clk] Error 2 make[1]: *** [/home/drue/src/linux/4.14-rc/Makefile:1031: drivers] Error 2 make[1]: Leaving directory '/home/drue/src/linux/4.14-rc/build-arm' make: *** [Makefile:146: sub-make] Error 2 > --- > drivers/clk/ti/clkctrl.c | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > --- a/drivers/clk/ti/clkctrl.c > +++ b/drivers/clk/ti/clkctrl.c > @@ -400,6 +400,12 @@ _ti_clkctrl_setup_subclks(struct omap_cl > } > } > > +static void __init _clkctrl_add_provider(void *data, > + struct device_node *np) > +{ > + of_clk_add_hw_provider(np, _ti_omap4_clkctrl_xlate, data); > +} > + > static void __init _ti_omap4_clkctrl_setup(struct device_node *node) > { > struct omap_clkctrl_provider *provider; > @@ -411,6 +417,7 @@ static void __init _ti_omap4_clkctrl_set > struct omap_clkctrl_clk *clkctrl_clk; > const __be32 *addrp; > u32 addr; > + int ret; > > addrp = of_get_address(node, 0, NULL, NULL); > addr = (u32)of_translate_address(node, addrp); > @@ -485,7 +492,10 @@ static void __init _ti_omap4_clkctrl_set > reg_data++; > } > > - of_clk_add_hw_provider(node, _ti_omap4_clkctrl_xlate, provider); > + ret = of_clk_add_hw_provider(node, _ti_omap4_clkctrl_xlate, provider); > + if (ret == -EPROBE_DEFER) > + ti_clk_retry_init(node, provider, _clkctrl_add_provider); > + > return; > > cleanup: > >