Hi, first of all I'd like to thank you for your detailed responses. I was able to implement my driver now as I wished (using a hacked version of pcscd). That's great. Nevertheless I'll need to provide clean solution (at least on Ubuntu 12.04 LTS) and before delivering a patched version of pcscd I'd like to make sure that this patch will be accepted upstream.
Am 22.09.2014 um 10:07 schrieb Ludovic Rousseau: >> Is there a simple way to trigger the existing hotplug rescan using >> hotplug_libudev? > No. Code is missing for _serial_ hotplug in hotplug_libudev.c I digged through that code in hotplug_libusb.c. There detection of new serial readers is essentially handled by call to RFReCheckReaderConf(). As of my understanding of this code it checks all configured serial readers and removes unresponsive readers and adds new readers that are responsive now. This is what I would expect from pcscd -H, regardless of the used hotplug flavour. My current solution simply call RFReCheckReaderConf() from signal_reload(). Did I miss anything important here? Why would you want the checking of serial readers to be forwarded to the hotplug library if the initial setup is handled by pcscdaemon.c itself (calling RFStartSerialReaders())? >> Shouldn't the solution than be changing the code for pcscd -H to use >> this mechanism? As described above would you accept a patch that removes the RFReCheckReaderConf() from hotplug_libusb.c and instead moves it to pcscdaemon.c where it can be used by all hotplug-flavours? Regards, Alexander -- BSc Alexander May, Senior Software Engineer HJP Consulting GmbH, Hauptstraße 35, 33178 Borchen, Germany Handelsregister HRB 7553, Amtsgericht Paderborn Geschäftsführer: Markus Hartmann fon +49-5251 4177634, fax +49-5251 4177666 www.hjp-consulting.com www.globaltester.org _______________________________________________ Pcsclite-muscle mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
