[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Stall due to babble when reading card ATR from CCID device using UHC
From: |
Lenthamre Johan |
Subject: |
RE: Stall due to babble when reading card ATR from CCID device using UHCI |
Date: |
Mon, 7 Nov 2011 13:09:25 +0000 |
Hi Ales,
I'm fairly new to USB at this lower level, and I realized that I used the wrong
read API call. Since the ATR is of variable size I should've use the
grub_usb_bulk_read_extended() call. Reading less resulted in babble and reading
too much in a timeout. Using read_extended() worked fine.
Ales, I also downloaded your EHCI branch; any idea when/if it will support
companion controllers?
Anyhow, thanks for your input!
Regards,
/Johan
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Aleš Nesrsta
Sent: den 4 november 2011 22:21
To: The development of GNU GRUB
Subject: Re: Stall due to babble when reading card ATR from CCID device using
UHCI
Hi,
AFAIK, the babble is fatal bus error which should not normally occur, so if You
get it regularly, there is probably something wrong in protocol data /
parameters / request sent into device.
I expect that only reset of the device or some class-specific reset can help in
recovery. Try see into related CCID class specification or USB
1.1 specification for bubble recovery.
Unfortunately I don't know USB CCID class device protocol (and I have no time
to study it yet...), so I cannot help You more.
BR,
Ales
Lenthamre Johan píše v Čt 03. 11. 2011 v 10:04 +0000:
> Hi,
>
> When reading card ATR from a CCID device (RDR_to_PC_DataBlock), the bulk-in
> endpoint is stalled due to babble. I still get the complete ATR though. I've
> successfully issued other commands, such as PC_to_RDR_GetSlotStatus and read
> back the result ok. The reader is a 2.0 device plugged into a 1.1 controller
> using GRUB's UHCI driver. The TD status is 0x18500009; stall + babble. I am
> not really sure where to go from here or where to start looking. Any hints
> are appreciated.
>
> Clear halt doesn't solve the issue.
>
> BR
>
> /Johan
>
> ---------------------------------------
> Johan Lenthamre
> Software Engineer
> Command and Control Systems Division
> Security and Defence Solutions
> Telephone: +46 8 5808 4818
> Mobile: +46 73 437 4818
> address@hidden
> Saab
> Nettovägen 6
> SE-175 88 Järfälla
> www.saabgroup.com
> ---------------------------------------
> This e-mail is private and confidential between the sender and the addressee.
> In the event of misdirection, the recipient is prohibited from using, copying
> or disseminating it or any information in it. Please notify the above of any
> such misdirection.
>
>
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
_______________________________________________
Grub-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/grub-devel