public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] New QorIQ p1020 based board support from Arcturus Networks Inc.
Date: Tue, 28 Apr 2015 09:36:05 -0700	[thread overview]
Message-ID: <553FB6F5.2020201@freescale.com> (raw)
In-Reply-To: <1429126621-5689-1-git-send-email-oleks@arcturusnetworks.com>

Oleks,

I suggest to change the subject to "powerpc/mpc85xx: Add board support for ucp1020".

On 04/15/2015 12:37 PM, Oleksandr G Zhadan wrote:
> New QorIQ p1020 based board support from Arcturus Networks Inc.
> http://www.arcturusnetworks.com/products/ucp1020/
> 
> Signed-off-by: Michael Durrant <mdurrant@arcturusnetworks.com>
> Signed-off-by: Oleksandr G Zhadan <oleks@arcturusnetworks.com>
> ---

<snip>

> +int get_arc_info(void)
> +{
> +	int location = 1;
> +
> +	flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS,
> +				CONFIG_ENV_SPI_MAX_HZ, CONFIG_ENV_SPI_MODE);
> +
> +	if (spi_flash_read(flash, (0x200 - sizeof(smac)), sizeof(smac), smac)) {
> +		location++;
> +		if (spi_flash_read(flash, (0x400 - sizeof(smac)), sizeof(smac), smac)) {
> +			location++;
> +			if (spi_flash_read(flash, (CONFIG_ENV_SECT_SIZE + 0x200 - sizeof(smac)), sizeof(smac), smac)) {
> +				location++;
> +				if (spi_flash_read(flash, (CONFIG_ENV_SECT_SIZE + 0x400 - sizeof(smac)), sizeof(smac), smac)) {
> +					printf("%s: ERROR: Failed to read all %d factory info spi locations\n", __func__, location);

These lines are way too long. Please wrap them back at or before 80 characters.
You can keep printf string in one line, but the arguments should be in next.

There are many lines over 80 characters. Please try to fix all.

York

      reply	other threads:[~2015-04-28 16:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-15 19:37 [U-Boot] [PATCH] New QorIQ p1020 based board support from Arcturus Networks Inc Oleksandr G Zhadan
2015-04-28 16:36 ` York Sun [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=553FB6F5.2020201@freescale.com \
    --to=yorksun@freescale.com \
    --cc=u-boot@lists.denx.de \
    /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