jhand2 / surface-camera

Attempt at Linux support for SB2 Cameras
GNU General Public License v2.0
2 stars 0 forks source link

suface_camera driver is not probed automatically #1

Open jhand2 opened 4 years ago

jhand2 commented 4 years ago

Currently the surface_camera module must be loaded manually.

I have tried to get it to probe automatically by making it a platform_driver or an acpi_driver and associating it with the ACPI ID INT343E which is the CIO2 device. For some reason this doesn't work, so the driver needs to be inserted manually.

kitakar5525 commented 4 years ago

Copying comments from linux-surface repo.

Comment from kitakar5525 https://github.com/linux-surface/linux-surface/issues/91#issuecomment-683799308

[...] So, the cause of surface_camera driver won't be probed automatically is that, as mentioned above, the HID INT343E actually doesn't exist (at least on on SB1).

Comment from djrscally https://github.com/linux-surface/linux-surface/issues/91#issuecomment-683907009

On the topic of adding autoprobe support to the surface camera driver, given this is really a function of the cio2 infrastructure, I think the best thing to do is probably attach it to that driver somehow, either by converting that to an MFD or some other method. But that can wait till it's in a more useable state.