drm: Attempt to parse SPI devices as platform bus devices.
authorEric Anholt <eric@anholt.net>
Fri, 16 Nov 2018 01:52:19 +0000 (17:52 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 20 Nov 2018 04:36:13 +0000 (20:36 -0800)
For ARM systems with tinydrm displays attached to SPI, the bus name is
/spi but we have platform device info for the rest.  Fixes
eglInitialize() failures on hx8357d since the EGL_EXT_device_drm
changes.

Acked-by: Eric Engestrom <eric.engestrom@intel.com>
xf86drm.c

index 60fbc49..71ad54b 100644 (file)
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -2993,6 +2993,7 @@ static int drmParseSubsystemType(int maj, int min)
         { "/pci", DRM_BUS_PCI },
         { "/usb", DRM_BUS_USB },
         { "/platform", DRM_BUS_PLATFORM },
+        { "/spi", DRM_BUS_PLATFORM },
         { "/host1x", DRM_BUS_HOST1X },
         { "/virtio", DRM_BUS_VIRTIO },
     };