Skip to content

Commit

Permalink
Merge tag 'v2024.10-rc6' into jookia_main
Browse files Browse the repository at this point in the history
Prepare v2024.10-rc6

Signed-off-by: John Watts <[email protected]>
  • Loading branch information
Jookia committed Oct 2, 2024
2 parents 6da2c41 + 9cfe0ca commit 5aa769e
Show file tree
Hide file tree
Showing 25 changed files with 71 additions and 43 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
VERSION = 2024
PATCHLEVEL = 10
SUBLEVEL =
EXTRAVERSION = -rc5
EXTRAVERSION = -rc6
NAME =

PATCHESVERSION = -jookia20240822
Expand Down
4 changes: 4 additions & 0 deletions arch/arm/dts/k3-j721e-beagleboneai64-u-boot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
bootph-all;
};

&chipid {
bootph-all;
};

&mcu_ringacc {
reg = <0x0 0x2b800000 0x0 0x400000>,
<0x0 0x2b000000 0x0 0x400000>,
Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-stm32mp/stm32mp1/psci.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,7 @@ static int __secure secure_waitbits(u32 reg, u32 mask, u32 val)
asm volatile("mrrc p15, 0, %Q0, %R0, c14" : "=r" (start));
for (;;) {
tmp = readl(reg);
tmp &= mask;
if ((tmp & val) == val)
if ((tmp & mask) == val)
return 0;
asm volatile("mrrc p15, 0, %Q0, %R0, c14" : "=r" (end));
if ((end - start) > delay)
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-stm32mp/stm32mp1/stm32mp15x.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ static void security_init(void)
*/
clrsetbits_le32(TAMP_SMCR,
TAMP_SMCR_BKPRWDPROT | TAMP_SMCR_BKPWDPROT,
FIELD_PREP(TAMP_SMCR_BKPRWDPROT, 0x20) |
FIELD_PREP(TAMP_SMCR_BKPWDPROT, 0x20));
FIELD_PREP(TAMP_SMCR_BKPRWDPROT, 0x0A) |
FIELD_PREP(TAMP_SMCR_BKPWDPROT, 0x0F));

/* GPIOZ: deactivate the security */
writel(BIT(0), RCC_MP_AHB5ENSETR);
Expand Down
3 changes: 3 additions & 0 deletions board/dhelectronics/dh_imx6/dh_imx6.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <fuse.h>
#include <i2c_eeprom.h>
#include <mmc.h>
#include <power/regulator.h>
#include <usb.h>
#include <linux/delay.h>
#include <usb/ehci-ci.h>
Expand Down Expand Up @@ -127,6 +128,8 @@ int board_init(void)

setup_fec_clock();

regulators_enable_boot_on(_DEBUG);

return 0;
}

Expand Down
3 changes: 3 additions & 0 deletions board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <malloc.h>
#include <net.h>
#include <miiphy.h>
#include <power/regulator.h>

#include "lpddr4_timing.h"
#include "../common/dh_common.h"
Expand Down Expand Up @@ -111,6 +112,8 @@ int dh_setup_mac_address(void)

int board_init(void)
{
regulators_enable_boot_on(_DEBUG);

return 0;
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/efidebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ enum efi_lo_dp_part {
};

/**
* create_lo_dp() - create a special device path for our Boot### option
* create_lo_dp_part() - create a special device path for our Boot### option
*
* @dev: device
* @part: disk partition
Expand Down Expand Up @@ -1127,7 +1127,7 @@ static void show_efi_boot_opt(u16 *varname16)
}

/**
* show_efi_boot_dump() - dump all UEFI load options
* do_efi_boot_dump() - dump all UEFI load options
*
* @cmdtp: Command table
* @flag: Command flag
Expand Down
4 changes: 2 additions & 2 deletions doc/develop/release_cycle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ For the next scheduled release, release candidates were made on::

* U-Boot v2024.10-rc4 was released on Mon 02 September 2024.

.. * U-Boot v2024.10-rc5 was released on Mon 16 September 2024.
* U-Boot v2024.10-rc5 was released on Mon 16 September 2024.

.. * U-Boot v2024.10-rc6 was released on Mon 30 September 2024.
* U-Boot v2024.10-rc6 was released on Mon 30 September 2024.

Please note that the following dates are planned only and may be deviated from
as needed.
Expand Down
2 changes: 1 addition & 1 deletion doc/usage/cmd/ums.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Configuration
-------------

The ums command is only available if CONFIG_CMD_USB_MASS_STORAGE=y
and depends on CONFIG_USB_USB_GADGET and CONFIG_BLK.
which depends on CONFIG_USB_GADGET_DOWNLOAD and CONFIG_BLK.

Return value
------------
Expand Down
2 changes: 1 addition & 1 deletion drivers/dfu/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ config DFU
config DFU_OVER_USB
bool
select HASH
depends on USB_GADGET
depends on USB_GADGET_DOWNLOAD

config DFU_OVER_TFTP
bool
Expand Down
7 changes: 6 additions & 1 deletion drivers/mux/mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ static const struct mux_control_ops mux_mmio_ops = {

static const struct udevice_id mmio_mux_of_match[] = {
{ .compatible = "mmio-mux" },
{ .compatible = "reg-mux" },
{ /* sentinel */ },
};

Expand All @@ -45,7 +46,11 @@ static int mmio_mux_probe(struct udevice *dev)
int ret;
int i;

regmap = syscon_node_to_regmap(dev_ofnode(dev->parent));
if (ofnode_device_is_compatible(dev_ofnode(dev), "mmio-mux"))
regmap = syscon_node_to_regmap(dev_ofnode(dev->parent));
else
regmap_init_mem(dev_ofnode(dev), &regmap);

if (IS_ERR(regmap)) {
ret = PTR_ERR(regmap);
dev_err(dev, "failed to get regmap: %d\n", ret);
Expand Down
2 changes: 1 addition & 1 deletion drivers/phy/cadence/phy-cadence-sierra.c
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ static int cdns_sierra_phy_probe(struct udevice *dev)

sp->autoconf = dev_read_bool(dev, "cdns,autoconf");

dev_info(dev, "sierra probed\n");
dev_dbg(dev, "sierra probed\n");
return 0;

clk_disable:
Expand Down
22 changes: 12 additions & 10 deletions drivers/power/regulator/rk8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ static int _buck_set_value(struct udevice *pmic, int buck, int uvolt)
val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel;

debug("%s: volt=%d, buck=%d, reg=0x%x, mask=0x%x, val=0x%x\n",
__func__, uvolt, buck + 1, info->vsel_reg, mask, val);
__func__, uvolt, buck, info->vsel_reg, mask, val);

if (priv->variant == RK816_ID) {
pmic_clrsetbits(pmic, info->vsel_reg, mask, val);
Expand Down Expand Up @@ -415,7 +415,7 @@ static int _buck_set_enable(struct udevice *pmic, int buck, bool enable)
break;
case RK806_ID:
value = RK806_POWER_EN_CLRSETBITS(buck % 4, enable);
en_reg = RK806_POWER_EN((buck + 1) / 4);
en_reg = RK806_POWER_EN(buck / 4);
ret = pmic_reg_write(pmic, en_reg, value);
break;
case RK808_ID:
Expand Down Expand Up @@ -470,7 +470,7 @@ static int _buck_set_suspend_value(struct udevice *pmic, int buck, int uvolt)
val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel;

debug("%s: volt=%d, buck=%d, reg=0x%x, mask=0x%x, val=0x%x\n",
__func__, uvolt, buck + 1, info->vsel_sleep_reg, mask, val);
__func__, uvolt, buck, info->vsel_sleep_reg, mask, val);

return pmic_clrsetbits(pmic, info->vsel_sleep_reg, mask, val);
}
Expand All @@ -494,7 +494,7 @@ static int _buck_get_enable(struct udevice *pmic, int buck)
break;
case RK806_ID:
mask = BIT(buck % 4);
ret = pmic_reg_read(pmic, RK806_POWER_EN((buck + 1) / 4));
ret = pmic_reg_read(pmic, RK806_POWER_EN(buck / 4));
break;
case RK808_ID:
case RK818_ID:
Expand Down Expand Up @@ -539,12 +539,13 @@ static int _buck_set_suspend_enable(struct udevice *pmic, int buck, bool enable)
{
u8 reg;

if (buck + 1 >= 9) {
if (buck >= 8) {
/* BUCK9 and BUCK10 */
reg = RK806_POWER_SLP_EN1;
mask = BIT(buck + 1 - 3);
mask = BIT(buck - 2);
} else {
reg = RK806_POWER_SLP_EN0;
mask = BIT(buck + 1);
mask = BIT(buck);
}
ret = pmic_clrsetbits(pmic, reg, mask, enable ? mask : 0);
}
Expand Down Expand Up @@ -590,12 +591,13 @@ static int _buck_get_suspend_enable(struct udevice *pmic, int buck)
{
u8 reg;

if (buck + 1 >= 9) {
if (buck >= 8) {
/* BUCK9 and BUCK10 */
reg = RK806_POWER_SLP_EN1;
mask = BIT(buck + 1 - 3);
mask = BIT(buck - 2);
} else {
reg = RK806_POWER_SLP_EN0;
mask = BIT(buck + 1);
mask = BIT(buck);
}
val = pmic_reg_read(pmic, reg);
}
Expand Down
5 changes: 3 additions & 2 deletions drivers/ram/k3-ddrss/lpddr4.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,11 @@ u32 lpddr4_start(const lpddr4_privatedata *pd)
u32 result = 0U;

result = lpddr4_startsf(pd);
if (result == (u32)0) {
if (result == (u32)0)
result = lpddr4_enablepiinitiator(pd);
if (result == (u32)0)
result = lpddr4_startsequencecontroller(pd);
}

return result;
}

Expand Down
13 changes: 13 additions & 0 deletions drivers/usb/cdns3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,12 @@ int cdns3_ep_run_transfer(struct cdns3_endpoint *priv_ep,
if (priv_dev->dev_ver <= DEV_VER_V2)
cdns3_wa1_tray_restore_cycle_bit(priv_dev, priv_ep);

/* Flush TRBs */
flush_dcache_range((unsigned long)priv_ep->trb_pool,
(unsigned long)priv_ep->trb_pool +
ROUND(sizeof(struct cdns3_trb) * priv_ep->num_trbs,
CONFIG_SYS_CACHELINE_SIZE));

trace_cdns3_prepare_trb(priv_ep, priv_req->trb);

/*
Expand Down Expand Up @@ -1153,6 +1159,13 @@ static void cdns3_transfer_completed(struct cdns3_device *priv_dev,
priv_ep->endpoint.desc->bEndpointAddress);
#endif

/* Invalidate TRBs */
invalidate_dcache_range((unsigned long)priv_ep->trb_pool,
(unsigned long)priv_ep->trb_pool +
ROUND(sizeof(struct cdns3_trb) *
priv_ep->num_trbs,
CONFIG_SYS_CACHELINE_SIZE));

if (!cdns3_request_handled(priv_ep, priv_req))
goto prepare_next_td;

Expand Down
1 change: 1 addition & 0 deletions drivers/usb/gadget/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ config SPL_DFU
bool "Support DFU (Device Firmware Upgrade) in SPL"
select SPL_HASH
select SPL_DFU_NO_RESET
depends on DFU_OVER_USB
depends on SPL_RAM_SUPPORT
help
This feature enables the DFU (Device Firmware Upgrade) in SPL with
Expand Down
2 changes: 1 addition & 1 deletion include/efi_variable.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ efi_status_t efi_get_variable_int(const u16 *variable_name,
void *data, u64 *timep);

/**
* efi_set_variable() - set value of a UEFI variable
* efi_set_variable_int() - set value of a UEFI variable
*
* @variable_name: name of the variable
* @vendor: vendor GUID
Expand Down
2 changes: 1 addition & 1 deletion include/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ static inline int event_notify_null(enum event_t type)
int event_uninit(void);

/**
* event_uninit() - Set up dynamic events
* event_init() - Set up dynamic events
*
* Init a list of dynamic event handlers, so that these can be added as
* needed
Expand Down
2 changes: 1 addition & 1 deletion include/expo.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ enum expoact_type {
*
* @type: Action type (EXPOACT_NONE if there is no action)
* @select: Used for EXPOACT_POINT_ITEM and EXPOACT_SELECT
* @id: ID number of the object affected.
* @select.id: ID number of the object affected.
*/
struct expo_action {
enum expoact_type type;
Expand Down
3 changes: 0 additions & 3 deletions include/getopt.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ struct getopt_state {
* parsed all of @argv, then @index will equal @argc.
*/
int index;
/* private: */
/** @arg_index: Index within the current argument */
int arg_index;
union {
/* public: */
/**
* @opt: Option being parsed when an error occurs. @opt is only
* valid when getopt() returns ``?`` or ``:``.
Expand All @@ -35,7 +33,6 @@ struct getopt_state {
* is only valid when getopt() returns an option character.
*/
char *arg;
/* private: */
};
};

Expand Down
16 changes: 8 additions & 8 deletions include/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct sandbox_state;
int os_printf(const char *format, ...);

/**
* Access to the OS read() system call
* os_read() - access the OS read() system call
*
* @fd: File descriptor as returned by os_open()
* @buf: Buffer to place data
Expand All @@ -34,7 +34,7 @@ int os_printf(const char *format, ...);
ssize_t os_read(int fd, void *buf, size_t count);

/**
* Access to the OS write() system call
* os_write() - access the OS write() system call
*
* @fd: File descriptor as returned by os_open()
* @buf: Buffer containing data to write
Expand All @@ -44,7 +44,7 @@ ssize_t os_read(int fd, void *buf, size_t count);
ssize_t os_write(int fd, const void *buf, size_t count);

/**
* Access to the OS lseek() system call
* os_lseek() - access the OS lseek() system call
*
* @fd: File descriptor as returned by os_open()
* @offset: File offset (based on whence)
Expand All @@ -67,7 +67,7 @@ off_t os_lseek(int fd, off_t offset, int whence);
off_t os_filesize(int fd);

/**
* Access to the OS open() system call
* os_open() - access the OS open() system call
*
* @pathname: Pathname of file to open
* @flags: Flags, like OS_O_RDONLY, OS_O_RDWR
Expand Down Expand Up @@ -162,7 +162,7 @@ void os_raise_sigalrm(void);
void os_tty_raw(int fd, bool allow_sigs);

/**
* os_fs_restore() - restore the tty to its original mode
* os_fd_restore() - restore the tty to its original mode
*
* Call this to restore the original terminal mode, after it has been changed
* by os_tty_raw(). This is an internal function.
Expand Down Expand Up @@ -207,14 +207,14 @@ void *os_realloc(void *ptr, size_t length);
void os_usleep(unsigned long usec);

/**
* Gets a monotonic increasing number of nano seconds from the OS
* os_get_nsec() - get monotonically increasing number of nano seconds from OS
*
* Return: a monotonic increasing time scaled in nano seconds
* Return: a monotoniccally increasing time scaled in nano seconds
*/
uint64_t os_get_nsec(void);

/**
* Parse arguments and update sandbox state.
* os_parse_args() - parse arguments and update sandbox state.
*
* @state: sandbox state to update
* @argc: argument count
Expand Down
2 changes: 1 addition & 1 deletion lib/efi_loader/efi_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static int term_get_char(s32 *c)
}

/**
* Receive and parse a reply from the terminal.
* term_read_reply() - receive and parse a reply from the terminal
*
* @n: array of return values
* @num: number of return values expected
Expand Down
2 changes: 1 addition & 1 deletion lib/efi_loader/efi_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ efi_status_t efi_file_open_int(struct efi_file_handle *this,
}

/**
* efi_file_open_()
* efi_file_open() - open file synchronously
*
* This function implements the Open service of the File Protocol.
* See the UEFI spec for details.
Expand Down
Loading

0 comments on commit 5aa769e

Please sign in to comment.