[PATCH 1/2] platform: support non-pci platform devices

Thierry Reding thierry.reding at gmail.com
Mon Jun 23 07:54:11 PDT 2014


On Mon, Jun 16, 2014 at 02:13:16PM -0400, Rob Clark wrote:
[...]
> diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c
[...]
> +static int
> +find_non_pci_driver(const char *busid, char *returnList[], int returnListMax)
> +{
> +    /* Add more entries here if we ever return more than 4 drivers for
> +       any device */
> +    const char *driverList[5] = { NULL, NULL, NULL, NULL, NULL };
> +    int i = 0;
> +    char *p, *s;
> +
> +    s = xstrdup(busid);
> +    p = strtok(s, ":");
> +
> +    if (strcmp(p, "platform"))
> +        goto out;

This isn't going to work on Tegra since we don't have a platform device
there. drmGetBusid() returns "drm" on Tegra.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140623/a198ad13/attachment.sig>


More information about the xorg-devel mailing list