samsung: common: do not reset if cros-ec uclass is missing
authorHenrik Grimler <henrik@grimler.se>
Tue, 9 May 2023 19:05:47 +0000 (21:05 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 15 May 2023 21:14:46 +0000 (17:14 -0400)
commitc9901bd2adad104adb132bdcc92fe2e86b4bcaa0
treecad0bb2f6f0fb7ee96f761f57135019b179fdcc3
parent7d01ee9d19db9670486ffc427c67855420ed8c94
samsung: common: do not reset if cros-ec uclass is missing

Otherwise non-ChromeOS samsung devices, like the odroid boards, are
stuck in a bootloop if CONFIG_CROS_EC is not enabled:

    <...>
    MMC: SAMSUNG SDHCI: 2, EXYNOS DWMMC: 0
    Loading Environment from MMC... *** Warning - bad CRC, using default environment

    cros-ec communications failure -96

    Please reset with Power+Refresh

    Cannot init cros-ec device
    resetting ...

Issue started after commit e44d7e73fe0d ("dm: core: Switch
uclass_*_device_err to use uclass_*_device_check").

Signed-off-by: Henrik Grimler <henrik@grimler.se>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/common/board.c