]> git.ipfire.org Git - thirdparty/u-boot.git/commit
ARM: stm32: Perform node compatible check for KS8851 early
authorMarek Vasut <marek.vasut@mailbox.org>
Mon, 15 Sep 2025 00:49:05 +0000 (02:49 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 16 Sep 2025 15:36:53 +0000 (17:36 +0200)
commit0f4bfee3cfe7e0786b8bf748c523c8e78eda8423
treee37c454be2d7c467c8e48c7ccef4a720bfba7179
parent483e19b0ad02672482fdf62097f1758719ff52fc
ARM: stm32: Perform node compatible check for KS8851 early

Check the compatible string of ethernet1 node for KS8851 very early on,
before calling uclass_get_device_by_of_path() which might initialize
the device and possibly attempt to configure MAC address into device
which is not KS8851. Doing the compatibility check early prevent this.

Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
board/dhelectronics/dh_stm32mp1/board.c