[libdrm,2/2] drm: Attempt to parse SPI devices as platform bus devices.
diff mbox series

Message ID 20181116051843.13569-2-eric@anholt.net
State New
Headers show
Series
  • [libdrm,1/2] Avoid hardcoded strlens in drmParseSubsystemType().
Related show

Commit Message

Eric Anholt Nov. 16, 2018, 5:18 a.m. UTC
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.
---
 xf86drm.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Eric Engestrom Nov. 16, 2018, 7:43 a.m. UTC | #1
On Thursday, 2018-11-15 21:18:43 -0800, Eric Anholt wrote:
> 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 | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/xf86drm.c b/xf86drm.c
> index 60fbc49b3d35..71ad54baa5c8 100644
> --- 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 },
>      };
> -- 
> 2.19.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

Patch
diff mbox series

diff --git a/xf86drm.c b/xf86drm.c
index 60fbc49b3d35..71ad54baa5c8 100644
--- 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 },
     };