Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: John Crispin <blogic@openwrt.org>, Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH 4/4] arch: mips: lantiq: disable xbar fpi burst mode
Date: Wed, 4 Nov 2015 23:06:29 +0300	[thread overview]
Message-ID: <563A6545.6000704@cogentembedded.com> (raw)
In-Reply-To: <1446639256-22526-4-git-send-email-blogic@openwrt.org>

Hello.

On 11/4/2015 3:14 PM, John Crispin wrote:

> Signed-off-by: John Crispin <blogic@openwrt.org>
> ---
>   arch/mips/lantiq/xway/sysctrl.c |   41 +++++++++++++++++++++++++++++++++++++++
>   1 file changed, 41 insertions(+)
>
> diff --git a/arch/mips/lantiq/xway/sysctrl.c b/arch/mips/lantiq/xway/sysctrl.c
> index 2b15491..9147c4b 100644
> --- a/arch/mips/lantiq/xway/sysctrl.c
> +++ b/arch/mips/lantiq/xway/sysctrl.c
[...]
> @@ -179,6 +187,16 @@ static void pci_ext_disable(struct clk *clk)
>   	ltq_cgu_w32((1 << 31) | (1 << 30), pcicr);
>   }
>
> +static void xbar_fpi_burst_disable(void)
> +{
> +	u32 reg;
> +
> +	/* bit 1 as 1 --burst; bit 1 as 0 -- single */
> +	reg = xbar_r32(XBAR_ALWAYS_LAST);
> +	reg &= ~XBAR_FPI_BURST_EN;
> +	xbar_w32(reg, XBAR_ALWAYS_LAST);
> +}
> +
>   /* enable a clockout source */
>   static int clkout_enable(struct clk *clk)
>   {
> @@ -328,6 +346,26 @@ void __init ltq_soc_init(void)
>   	if (!pmu_membase || !ltq_cgu_membase || !ltq_ebu_membase)
>   		panic("Failed to remap core resources");
>
> +

    Why two empty lines?

> +	if (of_machine_is_compatible("lantiq,vr9")) {
> +		struct resource res_xbar;
> +		struct device_node *np_xbar =
> +		of_find_compatible_node(NULL, NULL,
> +			"lantiq,xbar-xway");

    This needs to be indented more to the right and empty line needs to be 
added afterwards.

> +		if (!np_xbar)
> +			panic("Failed to load xbar nodes from devicetree");
> +		if (of_address_to_resource(np_pmu, 0, &res_xbar))
> +			panic("Failed to get xbar resources");
> +		if (request_mem_region(res_xbar.start, resource_size(&res_xbar),
> +			res_xbar.name) < 0)
> +			panic("Failed to get xbar resources");
> +
> +		ltq_xbar_membase = ioremap_nocache(res_xbar.start,
> +		resource_size(&res_xbar));

    This line needs to be indented more to the right.

[...]

MBR, Sergei

      reply	other threads:[~2015-11-04 20:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-04 12:14 [PATCH 1/4] arch: mips: lantiq: return correct value for fpi clock on ar9 John Crispin
2015-11-04 12:14 ` [PATCH 2/4] arch: mips: lantiq: initialize the USB core on boot John Crispin
2015-11-04 12:14 ` [PATCH 3/4] arch: mips: lantiq: force the crossbar to big endian John Crispin
2015-11-04 12:14 ` [PATCH 4/4] arch: mips: lantiq: disable xbar fpi burst mode John Crispin
2015-11-04 20:06   ` Sergei Shtylyov [this message]

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=563A6545.6000704@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=blogic@openwrt.org \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.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