forked from pool/xorg-x11-server
Stefan Dirsch
69975cf67c
U_Revert-linux-Fix-platform-device-PCI-detection-for-c.patch, U_Revert-linux-Fix-platform-device-probe-for-DT-based-.patch, U_Revert-linux-Make-platform-device-probe-less-fragile.patch * fix Xserver startup on Raspberry Pi 3 (boo#1176203) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xorg-x11-server?expand=0&rev=778
41 lines
1.4 KiB
Diff
41 lines
1.4 KiB
Diff
From 39cb95e959fab97a7e255dda1a1599b096fb0f7e Mon Sep 17 00:00:00 2001
|
|
From: Olivier Fourdan <ofourdan@redhat.com>
|
|
Date: Tue, 8 Sep 2020 10:03:11 +0200
|
|
Subject: [PATCH] Revert "linux: Fix platform device PCI detection for complex
|
|
bus topologies"
|
|
|
|
This reverts commit 5c96eb5f44e62a4cfe835023cde304eb5795b8fd.
|
|
|
|
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1068
|
|
---
|
|
config/udev.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/config/udev.c b/config/udev.c
|
|
index 14409549b..8c6c4b666 100644
|
|
--- a/config/udev.c
|
|
+++ b/config/udev.c
|
|
@@ -470,7 +470,7 @@ config_udev_odev_setup_attribs(struct udev_device *udev_device, const char *path
|
|
config_odev_probe_proc_ptr probe_callback)
|
|
{
|
|
struct OdevAttributes *attribs = config_odev_allocate_attributes();
|
|
- const char *value, *str;
|
|
+ const char *value;
|
|
|
|
attribs->path = XNFstrdup(path);
|
|
attribs->syspath = XNFstrdup(syspath);
|
|
@@ -478,8 +478,8 @@ config_udev_odev_setup_attribs(struct udev_device *udev_device, const char *path
|
|
attribs->minor = minor;
|
|
|
|
value = udev_device_get_property_value(udev_device, "ID_PATH");
|
|
- if (value && (str = strstr(value, "pci-"))) {
|
|
- attribs->busid = XNFstrdup(str);
|
|
+ if (value && !strncmp(value, "pci-", 4)) {
|
|
+ attribs->busid = XNFstrdup(value);
|
|
attribs->busid[3] = ':';
|
|
}
|
|
|
|
--
|
|
2.16.4
|
|
|