Commit 421ebb71 authored by Tom Rini's avatar Tom Rini
Browse files

Merge branch '2020-09-29-assorted-fixes'

- Assorted typo fixes
- Correctly migrate some CONFIG_PREBOOT cases to defconfig
- Coverity issues in squashfs
parents d44d46e9 f644081d
...@@ -266,7 +266,7 @@ board_init_f(): ...@@ -266,7 +266,7 @@ board_init_f():
version as needed. version as needed.
- preloader_console_init() can be called here in extremis - preloader_console_init() can be called here in extremis
- should set up SDRAM, and anything needed to make the UART work - should set up SDRAM, and anything needed to make the UART work
- these is no need to clear BSS, it will be done by crt0.S - there is no need to clear BSS, it will be done by crt0.S
- for specific scenarios on certain architectures an early BSS *can* - for specific scenarios on certain architectures an early BSS *can*
be made available (via CONFIG_SPL_EARLY_BSS by moving the clearing be made available (via CONFIG_SPL_EARLY_BSS by moving the clearing
of BSS prior to entering board_init_f()) but doing so is discouraged. of BSS prior to entering board_init_f()) but doing so is discouraged.
......
...@@ -403,7 +403,6 @@ config BOOTCOMMAND ...@@ -403,7 +403,6 @@ config BOOTCOMMAND
config USE_PREBOOT config USE_PREBOOT
bool "Enable preboot" bool "Enable preboot"
default "usb start" if USB_KEYBOARD
help help
When this option is enabled, the existence of the environment When this option is enabled, the existence of the environment
variable "preboot" will be checked immediately before starting the variable "preboot" will be checked immediately before starting the
...@@ -417,6 +416,7 @@ config USE_PREBOOT ...@@ -417,6 +416,7 @@ config USE_PREBOOT
config PREBOOT config PREBOOT
string "preboot default value" string "preboot default value"
depends on USE_PREBOOT && !USE_DEFAULT_ENV_FILE depends on USE_PREBOOT && !USE_DEFAULT_ENV_FILE
default "usb start" if USB_KEYBOARD || USB_STORAGE
default "" default ""
help help
This is the default of "preboot" environment variable. This is the default of "preboot" environment variable.
......
...@@ -6,8 +6,8 @@ config MTD_PARTITIONS ...@@ -6,8 +6,8 @@ config MTD_PARTITIONS
config MTD config MTD
bool "Enable MTD layer" bool "Enable MTD layer"
help help
Enable the MTD stack, necessary to interract with NAND, NOR, Enable the MTD stack, necessary to interact with NAND, NOR,
SPI-NOR, SPI-NAND, onenand, etc. SPI-NOR, SPI-NAND, OneNAND, etc.
config DM_MTD config DM_MTD
bool "Enable Driver Model for MTD drivers" bool "Enable Driver Model for MTD drivers"
...@@ -95,10 +95,10 @@ config FLASH_PIC32 ...@@ -95,10 +95,10 @@ config FLASH_PIC32
chips through PIC32 Non-Volatile-Memory Controller. chips through PIC32 Non-Volatile-Memory Controller.
config RENESAS_RPC_HF config RENESAS_RPC_HF
bool "Renesas RCar Gen3 RPC Hyperflash driver" bool "Renesas RCar Gen3 RPC HyperFlash driver"
depends on RCAR_GEN3 && DM_MTD depends on RCAR_GEN3 && DM_MTD
help help
This enables access to Hyperflash memory through the Renesas This enables access to HyperFlash memory through the Renesas
RCar Gen3 RPC controller. RCar Gen3 RPC controller.
config HBMC_AM654 config HBMC_AM654
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* Renesas RCar Gen3 RPC Hyperflash driver * Renesas RCar Gen3 RPC HyperFlash driver
* *
* Copyright (C) 2016 Renesas Electronics Corporation * Copyright (C) 2016 Renesas Electronics Corporation
* Copyright (C) 2016 Cogent Embedded, Inc. * Copyright (C) 2016 Cogent Embedded, Inc.
......
...@@ -432,7 +432,7 @@ static int console_truetype_backspace(struct udevice *dev) ...@@ -432,7 +432,7 @@ static int console_truetype_backspace(struct udevice *dev)
pos = &priv->pos[--priv->pos_ptr]; pos = &priv->pos[--priv->pos_ptr];
/* /*
* Figure out the end position for clearing. Normlly it is the current * Figure out the end position for clearing. Normally it is the current
* cursor position, but if we are clearing a character on the previous * cursor position, but if we are clearing a character on the previous
* line, we clear from the end of the line. * line, we clear from the end of the line.
*/ */
......
...@@ -141,9 +141,9 @@ int sqfs_read_metablock(unsigned char *file_mapping, int offset, ...@@ -141,9 +141,9 @@ int sqfs_read_metablock(unsigned char *file_mapping, int offset,
const unsigned char *data; const unsigned char *data;
u16 header; u16 header;
data = file_mapping + offset; if (!file_mapping)
if (!data)
return -EFAULT; return -EFAULT;
data = file_mapping + offset;
header = get_unaligned((u16 *)data); header = get_unaligned((u16 *)data);
if (!header) if (!header)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment