OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: [Muscle] [PATCH] Quirk for BCM5880/5881 GetSlotStatus

From: Ludovic Rousseau (ludovic.rousseaugmail.com)
Date: Mon Feb 01 2010 - 07:06:58 CST


2010/2/1 Max Vozeler <max.vozelerlsexperts.de>:
> This patch adds a workaround for unusual behaviour of Broadcom
> BCM5880/5881 readers. They misreport an absent card as "Hardware
> Error" in GetSlotStatus.
>
> To work around it, we turn the HW_ERROR answer to GetSlotStatus
> into "No error, no card inserted".
>
> Since we need some way to look up the required quirk based on
> USB vendor/product ID, this patch adds some simple quirk lookup
> functions which can also be used for future quirks.

I don't like the quirks lookup functions idea.
In the code I detect bogus readers using:
if (SPR532 == ccid_descriptor->readerID)

Bye

--
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle