Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 396365

Summary: app-crypt/ccid-1.4.5-r1: ebuild and patch with support for Broadcom BCM5880 Unified Security Hub
Product: Gentoo Linux Reporter: Martin Samek <mr>
Component: Current packagesAssignee: Crypto team [DISABLED] <crypto+disabled>
Status: RESOLVED UPSTREAM    
Severity: normal Keywords: EBUILD, PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch adds support for BCM5800
Ebuild with patch and composite-dev use flag
Output of lsusb -v -d 0a5c:5801
Output of pcscd

Description Martin Samek 2011-12-28 22:12:15 UTC
I have updated patch for ccid driver. This patch add support for Broadcom BCM5880 Unified Security Hub. This composite SmartCard contact/contactless reader can be found at some Dell Latitude laptops etc. There is also update ebuild for ccid with use flag composite-dev which enables support for multi readers (BCM5880 has SM contact slot, RFID contactless reader and fingerprint reader].

Reproducible: Always

Actual Results:  
BCM5880 is not supported

Expected Results:  
Support for BCM5880
Comment 1 Martin Samek 2011-12-28 22:13:36 UTC
Created attachment 297253 [details, diff]
Patch adds support for BCM5800
Comment 2 Martin Samek 2011-12-28 22:14:32 UTC
Created attachment 297255 [details]
Ebuild with patch and composite-dev use flag
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-12-29 16:30:56 UTC
Is this really needed? I have a BCM5880 myself and it seems to work properly out of the box nowadays (it didn't work, I had to fix it a long time ago). I also really don't want to enable the composite-as-multislot support, which I discussed with Ludovic before.

Can you provide a bit more detail on why do you recon the BCM5880 is not supported?
Comment 4 Martin Samek 2011-12-29 18:11:57 UTC
I'm sorry, but on my Sandy Bridge based Latitude E6420 laptop the contactless reader is not recognized by the ccid driver 1.4.5 from Portage tree. The contactless reader works for me with this patch applied and composite-as-multislot option enabled.

Output of my lsusb -v -d 0a5c:5801 is in the attached file.
Comment 5 Martin Samek 2011-12-29 18:13:30 UTC
Created attachment 297323 [details]
Output of lsusb -v -d 0a5c:5801
Comment 6 Martin Samek 2011-12-29 18:19:50 UTC
Created attachment 297325 [details]
Output of pcscd
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-12-29 20:50:16 UTC
emerge -pv pcscd please

I'm afraid that you're using the old libusb compatibility code that upstream basically does not support, try with udev.

Are you also sure it does not work? It might just find a single device, but have you tried with an RFID card at all?
Comment 8 Martin Samek 2011-12-29 21:41:44 UTC
Yes, that is the point. I recompiled pcsc-lite with udev -libusb. Now two devices are recognized and contactless reader is able to get data from RFID card. ccid 1.4.5 from portage.

Sorry for false bug.
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-12-29 22:53:22 UTC
I'd suggest sending the patch upstream so that Ludovic can integrate it, but I really would like not to add a patch for this or another USE flag.

I'll write down to enable the composite option when libusb is enabled in the next version bump, as both features are not suggested.