[PATCH 08/36] xfree86: add platform bus hotplug support (v2)

Dave Airlie airlied at gmail.com
Mon Jul 2 12:01:55 PDT 2012


On Mon, Jul 2, 2012 at 7:37 PM, Keith Packard <keithp at keithp.com> wrote:
> Dave Airlie <airlied at gmail.com> writes:
>
>> +int
>> +xf86platformAddDevice(int index)
>> +{
>> +    int i, old_screens, scr_index;
>> +    DriverPtr drvp = NULL;
>> +    int entity;
>> +    screenLayoutPtr layout;
>> +
>> +    for (i = 0; i < xf86NumDrivers; i++) {
>> +        if (!xf86DriverList[i])
>> +            continue;
>> +
>> +        if (!strcmp(xf86DriverList[i]->driverName, "modesetting")) {
>> +            drvp = xf86DriverList[i];
>> +            break;
>> +        }
>
> Am I right in assuming that this means that only the 'modesetting'
> driver can have hotplugged devices? Would we need changes in the driver
> ABI to make this more general?

No they can all do it, just haven't the code to do the picking yet of
a driver, and since
USB is really the only thing I can hotplug so far.

the udev interface is fine for it to work.

Dave.


More information about the xorg-devel mailing list