Skip to content

Commit a428667

Browse files
author
苇子
authored
A control name added for Rasp Pi 4B and fix a bug in dev/mass_storage.py (#29)
* A control filename added for Raspberry Pi 4B * fix a bug in dev/mass_storage.py: ScsiDevice sends two scsi_status response for a WRITE_10 request.
1 parent 0178737 commit a428667

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

umap2/dev/mass_storage.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ def handle_data(self, data):
207207
resp = self.handlers[opcode](cbw)
208208
if resp is not None:
209209
self.tx.put(resp)
210-
self.tx.put(scsi_status(cbw, ScsiCmdStatus.COMMAND_PASSED))
210+
if opcode != ScsiCmds.WRITE_10:
211+
self.tx.put(scsi_status(cbw, ScsiCmdStatus.COMMAND_PASSED))
211212
except Exception as ex:
212213
self.warning('exception while processing opcode %#x' % (opcode))
213214
self.warning(ex)

umap2/phy/gadgetfs/gadgetfs_phy.py

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class GadgetFsPhy(PhyInterface):
100100
'lh740x_udc',
101101
'atmel_usba_udc',
102102
'20980000.usb',
103+
'fe980000.usb',
103104
]
104105

105106
def __init__(self, app, gadgetfs_dir='/dev/gadget'):

0 commit comments

Comments
 (0)