]> git.ipfire.org Git - thirdparty/u-boot.git/commit
serial: goldfish: return error when device address is invalid
authorNaveen Kumar Chaudhary <naveen.osdev@gmail.com>
Sun, 7 Jun 2026 15:45:42 +0000 (21:15 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 23 Jun 2026 18:37:21 +0000 (12:37 -0600)
commitd73aed0b0571828c7ee308adcb1bb1145892dfd1
tree6ff13165777bb74f649d2e775e071d48141ed20d
parent0bef438428ca0118da2ebb44493d5d2090cb05a2
serial: goldfish: return error when device address is invalid

goldfish_serial_of_to_plat() returns success even when dev_read_addr()
fails to find a valid address. This leaves plat->reg unset and defers
the failure to probe().

Return -EINVAL immediately when the address is FDT_ADDR_T_NONE so the
failure is reported at the of_to_plat stage where it belongs.

Signed-off-by: Naveen Kumar Chaudhary <naveen.osdev@gmail.com>
Acked-by: Kuan-Wei Chiu <visitorckw@gmail.com>
drivers/serial/serial_goldfish.c