From f6f3f3f9ab615bc5093f95e10c82c00a4e705812 Mon Sep 17 00:00:00 2001 From: Eileen Yoon Date: Fri, 19 Jan 2024 18:15:49 +0900 Subject: [PATCH] m1n1.fw.asc: Support split ep map init Signed-off-by: Eileen Yoon --- proxyclient/m1n1/fw/asc/mgmt.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/proxyclient/m1n1/fw/asc/mgmt.py b/proxyclient/m1n1/fw/asc/mgmt.py index 162fcd251..c7a2d8dfd 100644 --- a/proxyclient/m1n1/fw/asc/mgmt.py +++ b/proxyclient/m1n1/fw/asc/mgmt.py @@ -82,11 +82,15 @@ def EPMap(self, msg): self.send(Mgmt_EPMap_Ack(BASE=msg.BASE, LAST=msg.LAST, MORE=0 if msg.LAST else 1)) - if msg.LAST: - for ep in self.asc.eps: - if ep == 0: continue - if ep < 0x10: - self.asc.start_ep(ep) + # For AOP: + # < 00:0x80000000000117 (TYPE=0x8, LAST=0, BASE=0, BITMAP=0x117) + # < 00:0x880001000001f7 (TYPE=0x8, LAST=1, BASE=1, BITMAP=0x1f7) # adds ep 0x20 & up + for ep in self.asc.eps: + if ep == 0: continue + self.asc.start_ep(ep) + + # oddly, boot_done() is called after the first map only + if msg.BASE == 0: self.boot_done() return True