fastboot/recovery: wait for display

With GKI we find in certain situations the timing of the drivers
loading is delayed as compared to a monolithic kernel.  This
introduces a race where during second stage init, the attributes
inside /sys/bus/platform/drivers/drm_dsi_ctrl might not be set by
the time the menu is painted on the screen.

To address this, we wait for /sys/class/drm/card0 to instantiate.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 151950334
Test: make sure user space fastbootd comes up reliably for a GKI kernel
Change-Id: I64c21529c21cdd8c8ad9908c8a57e933549986a5
1 file changed