summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-07-27 14:04:34 +0100
committerMark Brown <broonie@kernel.org>2026-07-27 14:04:34 +0100
commitbc02fb733f2db295b00a8aad95c308e1c61c670e (patch)
tree3327f5c31e412fd95f90c5202d08a3b9c57eae35 /arch
parent3eded33495da0d14fe3fef7405860289f2354148 (diff)
parenta7c958e8721eb2724ee2e2ef13129bc67e1c8a75 (diff)
downloadlinux-next-bc02fb733f2db295b00a8aad95c308e1c61c670e.tar.gz
linux-next-bc02fb733f2db295b00a8aad95c308e1c61c670e.zip
Merge branch 'xtensa-for-next' of https://github.com/jcmvbkbc/linux-xtensa.git
Diffstat (limited to 'arch')
-rw-r--r--arch/xtensa/include/asm/platform.h2
-rw-r--r--arch/xtensa/platforms/iss/console.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/arch/xtensa/include/asm/platform.h b/arch/xtensa/include/asm/platform.h
index 94f13fabf7cd..f2e50fc12b4d 100644
--- a/arch/xtensa/include/asm/platform.h
+++ b/arch/xtensa/include/asm/platform.h
@@ -33,7 +33,7 @@ extern void platform_setup (char **);
extern void platform_idle (void);
/*
- * platform_calibrate_ccount calibrates cpu clock freq (CONFIG_XTENSA_CALIBRATE)
+ * platform_calibrate_ccount calibrates cpu clock freq (CONFIG_XTENSA_CALIBRATE_CCOUNT)
*/
extern void platform_calibrate_ccount (void);
diff --git a/arch/xtensa/platforms/iss/console.c b/arch/xtensa/platforms/iss/console.c
index 8b95221375a8..8e54625cb2ba 100644
--- a/arch/xtensa/platforms/iss/console.c
+++ b/arch/xtensa/platforms/iss/console.c
@@ -166,8 +166,9 @@ late_initcall(rs_init);
static void iss_console_write(struct console *co, const char *s, unsigned count)
{
- if (s && *s != 0)
- simc_write(1, s, min(count, strlen(s)));
+ count = s ? strnlen(s, count) : 0;
+ if (count)
+ simc_write(1, s, count);
}
static struct tty_driver* iss_console_device(struct console *c, int *index)