mirror of
https://github.com/AsahiLinux/m1n1
synced 2025-02-16 13:48:29 +00:00
hv/trace_dcp: Support commands with retcode only replies
Seen with the SetProperty command of DCP's system EP. Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
parent
ea5c9be657
commit
fb6e035950
1 changed files with 7 additions and 0 deletions
|
@ -380,6 +380,13 @@ class EPICEp(AFKEp):
|
|||
self.log("Inline payload:")
|
||||
chexdump(payload, print_fn=self.log)
|
||||
else:
|
||||
off = fd.tell()
|
||||
data = fd.read()
|
||||
if len(data) == 4:
|
||||
retcode = struct.unpack("<I", data)[0]
|
||||
self.log(f"EPIC: retcode only reply retcode={retcode:#x}")
|
||||
return
|
||||
fd.seek(off)
|
||||
cmd = EPICCmd.parse_stream(fd)
|
||||
if not cmd.rxbuf:
|
||||
self.log(f"Response {sub.type:#x}: {cmd.retcode:#x}")
|
||||
|
|
Loading…
Add table
Reference in a new issue