Skip to content

Commit

Permalink
m1n1.fw.asc: Support split ep map init
Browse files Browse the repository at this point in the history
Signed-off-by: Eileen Yoon <[email protected]>
  • Loading branch information
eiln committed Jan 19, 2024
1 parent f7ffcc1 commit f6f3f3f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions proxyclient/m1n1/fw/asc/mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6f3f3f

Please sign in to comment.