Re: Probe function question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 17 June 2014 09:31:07 CEST, Vlad Ungureanu <vvu@xxxxxxx> wrote:

>The driver matches the VID/PID of a LG Nexus5 and tries in the probe
>function
>to switch it to ADK Mode *Accessory Development Kit Mode*. 

This sounds like something you'd normally do from userspace.


>The problem is that my probe callback is called twice for each mode of
>the
>device, normal mode and ADK mode. 

Maybe the device has more than one interface? As long as you match only on device id, the driver will be probed for every interface.

If that is not your intention, then you need to be more specific in the match table.


Bjørn

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux