Update source to Armbian-dev-202610.A311Y3

This commit is contained in:
2026-11-11 08:50:43 +08:00
parent 3428a94f6b
commit f459ef6a9e
12514 changed files with 2264376 additions and 468481 deletions
@@ -204,7 +204,7 @@ static u32 parse_reason(const char *cmd)
static noinline int __invoke_psci_fn_smc(u64 function_id, u64 arg0, u64 arg1,
u64 arg2)
{
struct arm_smccc_res res;
struct arm_smccc_res res = { 0 };
arm_smccc_smc((unsigned long)function_id,
(unsigned long)arg0,
@@ -287,7 +287,7 @@ ssize_t reboot_reason_show(struct device *dev,
reboot_reason_reg = get_reboot_reason_val();
reboot_reason = get_reboot_reason();
len = sprintf(buf, "reg val: 0x%x\nreboot reason = %d, %s\n",
len = snprintf(buf, PAGE_SIZE, "reg val: 0x%x\nreboot reason = %d, %s\n",
reboot_reason_reg, reboot_reason,
reboot_reason_name[reboot_reason].name);
@@ -333,7 +333,7 @@ static int reboot_release(struct inode *inode, struct file *filp)
static long reboot_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{
struct arm_smccc_res smc_res;
struct arm_smccc_res smc_res = {0};
int val, ret = 0;
switch (cmd) {
@@ -405,10 +405,12 @@ static void disable_non_bootcpu_shutdown(void)
if (cpu == primary)
continue;
error = cpu_subsys.offline(get_cpu_device(cpu));
if (error) {
pr_err("Error taking CPU%d down: %d\n", cpu, error);
break;
if (cpu_subsys.offline) {
error = cpu_subsys.offline(get_cpu_device(cpu));
if (error) {
pr_err("Error taking CPU%d down: %d\n", cpu, error);
break;
}
}
}