public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH] cmd: mvebu/bubt: Drop unused SPI_FLASH_PROTECTION
Date: Sun, 12 Jul 2020 20:20:06 -0400	[thread overview]
Message-ID: <20200713002006.GS6246@bill-the-cat> (raw)
In-Reply-To: <20200712175901.127788-1-jagan@amarulasolutions.com>

On Sun, Jul 12, 2020 at 11:29:01PM +0530, Jagan Teki wrote:

> SPI_FLASH_PROTECTION config item is never used in anywhere
> in the U-Boot tree.
> 
> Drop it.
> 
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> ---
>  cmd/mvebu/bubt.c | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c
> index a27b0df8ae..b3b5844267 100644
> --- a/cmd/mvebu/bubt.c
> +++ b/cmd/mvebu/bubt.c
> @@ -299,9 +299,6 @@ static int spi_burn_image(size_t image_size)
>  		return -ENOMEDIUM;
>  	}
>  
> -#ifdef CONFIG_SPI_FLASH_PROTECTION
> -	spi_flash_protect(flash, 0);
> -#endif
>  	erase_bytes = image_size +
>  		(flash->erase_size - image_size % flash->erase_size);
>  	printf("Erasing %d bytes (%d blocks) at offset 0 ...",
> @@ -320,10 +317,6 @@ static int spi_burn_image(size_t image_size)
>  	else
>  		printf("Done!\n");
>  
> -#ifdef CONFIG_SPI_FLASH_PROTECTION
> -	spi_flash_protect(flash, 1);
> -#endif
> -
>  	return ret;
>  }

Add maintainers.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200712/3480d5cb/attachment.sig>

  reply	other threads:[~2020-07-13  0:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-12 17:59 [PATCH] cmd: mvebu/bubt: Drop unused SPI_FLASH_PROTECTION Jagan Teki
2020-07-13  0:20 ` Tom Rini [this message]
2020-08-06 12:10 ` Stefan Roese
2020-08-06 14:27   ` Stefan Roese

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=20200713002006.GS6246@bill-the-cat \
    --to=trini@konsulko.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