drm: Attempt to parse SPI devices as platform bus devices.

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>
main
Eric Anholt 2018-11-15 17:52:19 -08:00
parent 9b28c5aea3
commit 89700ab0aa
1 changed files with 1 additions and 0 deletions

View File

@ -2993,6 +2993,7 @@ static int drmParseSubsystemType(int maj, int min)
{ "/pci", DRM_BUS_PCI }, { "/pci", DRM_BUS_PCI },
{ "/usb", DRM_BUS_USB }, { "/usb", DRM_BUS_USB },
{ "/platform", DRM_BUS_PLATFORM }, { "/platform", DRM_BUS_PLATFORM },
{ "/spi", DRM_BUS_PLATFORM },
{ "/host1x", DRM_BUS_HOST1X }, { "/host1x", DRM_BUS_HOST1X },
{ "/virtio", DRM_BUS_VIRTIO }, { "/virtio", DRM_BUS_VIRTIO },
}; };