linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Scott Branden <sbranden@broadcom.com>
To: Arnd Bergmann <arnd@arndb.de>, Jon Mason <jonmason@broadcom.com>
Cc: Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@codeaurora.org>,
	Florian Fainelli <f.fainelli@gmail.com>,
	"Hauke Mehrtens" <hauke@hauke-m.de>, Ray Jui <rjui@broadcom.com>,
	<linux-clk@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>,
	<bcm-kernel-feedback-list@broadcom.com>
Subject: Re: [PATCH v2 7/7] clk: ns2: add clock support for Broadcom Northstar 2 SoC
Date: Wed, 14 Oct 2015 12:46:19 -0700	[thread overview]
Message-ID: <561EB10B.40502@broadcom.com> (raw)
In-Reply-To: <6427519.eIBEvCNlle@wuerfel>

On 15-10-13 03:23 PM, Arnd Bergmann wrote:
> On Tuesday 13 October 2015 18:04:50 Jon Mason wrote:
>>
>>> On a related note, I'm seeing problems when CONFIG_CYGNUS is set but
>>> CONFIG_COMMON_CLK_IPROC is disabled, as that currently leads to a link
>>> failure.
>>
>> I can double check, but it should be on by default when Cygnus is
>> enabled.  If you send me the error, I'll be happy to fix it.
>
>
> The problem is not that it's off by default but that it can be
> disabled, so it breaks some 'make randconfig' builds with this
> message:
>
> drivers/built-in.o: In function `cygnus_armpll_init':
> :(.init.text+0x1d290): undefined reference to `iproc_armpll_setup'
> drivers/built-in.o: In function `cygnus_genpll_clk_init':
> :(.init.text+0x1d2c4): undefined reference to `iproc_pll_clk_setup'
> drivers/built-in.o: In function `cygnus_lcpll0_clk_init':
> :(.init.text+0x1d304): undefined reference to `iproc_pll_clk_setup'
> drivers/built-in.o: In function `cygnus_mipipll_clk_init':
> :(.init.text+0x1d344): undefined reference to `iproc_pll_clk_setup'
> drivers/built-in.o: In function `cygnus_asiu_init':
> :(.init.text+0x1d370): undefined reference to `iproc_asiu_setup'
>
> My patch fixes it by always selecting COMMON_CLK_IPROC from
> ARCH_BCM_CYGNUS. I wasn't sure whether you want COMMON_CLK_IPROC
> to still be user-selectable, so I left that in place. Normally
> I'd expect it to be a silent option though, that just gets
> implicitly enabled whenever a platform that needs it is built
> into the kernel.
COMMON_CLK_IPROC can be a silent option and selected as Arnd has done below.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Scott Branden <sbranden@broadcom.com>

>
> diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig
> index 1319c3c14327..35234e563cd8 100644
> --- a/arch/arm/mach-bcm/Kconfig
> +++ b/arch/arm/mach-bcm/Kconfig
> @@ -29,6 +29,7 @@ config ARCH_BCM_IPROC
>   config ARCH_BCM_CYGNUS
>   	bool "Broadcom Cygnus Support" if ARCH_MULTI_V7
>   	select ARCH_BCM_IPROC
> +	select COMMON_CLK_IPROC
>   	help
>   	  Enable support for the Cygnus family,
>   	  which includes the following variants:
>

  reply	other threads:[~2015-10-14 19:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-13 21:07 [PATCH v2 0/10] clk: iproc: add support for BCM NS, NSP, and NS2 Jon Mason
2015-10-13 21:07 ` [PATCH v2 1/7] clk: cygnus: Convert all macros to all caps Jon Mason
2015-10-13 21:08 ` [PATCH v2 2/7] clk: iproc: Add PWRCTRL support Jon Mason
2015-10-13 21:08 ` [PATCH v2 3/7] clk: nsp: add clock support for Broadcom Northstar Plus SoC Jon Mason
2015-10-13 21:08 ` [PATCH v2 4/7] clk: iproc: Add PLL base write function Jon Mason
2015-10-13 21:08 ` [PATCH v2 5/7] clk: iproc: Split off dig_filter Jon Mason
2015-10-13 21:08 ` [PATCH v2 6/7] clk: iproc: Separate status and control variables Jon Mason
2015-10-13 21:08 ` [PATCH v2 7/7] clk: ns2: add clock support for Broadcom Northstar 2 SoC Jon Mason
2015-10-13 21:18   ` Arnd Bergmann
2015-10-13 22:04     ` Jon Mason
2015-10-13 22:23       ` Arnd Bergmann
2015-10-14 19:46         ` Scott Branden [this message]
2015-10-14 20:16           ` Arnd Bergmann
2015-10-15 18:36             ` Scott Branden
2015-10-15 18:43               ` Jon Mason
2015-10-15 18:54                 ` Arnd Bergmann
2015-10-15 19:23                   ` Jon Mason
2015-10-13 21:10 ` [PATCH v2 0/10] clk: iproc: add support for BCM NS, NSP, and NS2 Jon Mason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=561EB10B.40502@broadcom.com \
    --to=sbranden@broadcom.com \
    --cc=arnd@arndb.de \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=devicetree@vger.kernel.org \
    --cc=f.fainelli@gmail.com \
    --cc=hauke@hauke-m.de \
    --cc=jonmason@broadcom.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=rjui@broadcom.com \
    --cc=sboyd@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).