]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: msm-geni: don't rely on parent misc device
authorCaleb Connolly <caleb.connolly@linaro.org>
Tue, 14 Nov 2023 12:51:11 +0000 (12:51 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Tue, 16 Jan 2024 12:26:52 +0000 (12:26 +0000)
commit836b7f447429960fa6ff8b6d25c11e39b8c00b94
tree5b5a6ac4027583ca550a187cc89f92707402b423
parent6156e39e42cde73f7b8bbbad6105a10a4b188541
serial: msm-geni: don't rely on parent misc device

commit 1b15483deb3f ("misc: add Qualcomm GENI SE QUP device driver")
introduced support for platform-specific oversampling values, necessary
to configure the UART clocks on all platforms at runtime. However it
relies in probing a parent device. Despite the DM_FLAG_PRE_RELOC flag,
this is not done consistently during boot.

Instead, take another approach by relying on ofnode_ helpers to read the
serial engine base address and do the read directly. This fixes early
UART on boards with a non-default oversampling rate.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/misc/Kconfig
drivers/misc/Makefile
drivers/misc/qcom-geni-se.c [deleted file]
drivers/serial/Kconfig
drivers/serial/serial_msm_geni.c