When I use the newest XhciDxe driver in Phytium Platform( ARM) ,  I found if 
clearing “Input Context” in XhcEvaluateContext64(), the usb KB doesn't work, 
and mark the  code   ZeroMem (InputContext, sizeof (INPUT_CONTEXT_64));  it 
works.
I viewed the code again, maybe change the ZeroMem (InputContext, sizeof 
(INPUT_CONTEXT_64)); to ZeroMem (InputContext, sizeof 
(INPUT_CONTRL_CONTEXT_64)); is more resonable.  Because when clearing the 
INPUT_CONTEXT_64, the Slot context and the endpoint context are cleared too. 
But according the xHCI Spec section 6.2.2
Note:Unless otherwise stated: As Input, all fields of the Slot Context shall be 
initialized to the appropriate value by software before issuing a command.
And I test again, just clear INPUT_CONTRL_CONTEXT_64 is OK.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93741): https://edk2.groups.io/g/devel/message/93741
Mute This Topic: https://groups.io/mt/93673303/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to