aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-19 07:58:04 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-19 08:09:01 -0200
commitef8e4b3ef2e22125735e5a3f37395bcd3c38a85e (patch)
treec3a5d3e7ccd7a28ff8de4147e12967748c7d6fa5
parent2c096b74b3febd3aaf2f9325c870369071e3f745 (diff)
parse_af9035.pl: Fix some hide conditions
hide-rd was not working. Also, hide-wr were also hiding read ops. Fix them. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rwxr-xr-xcontrib/af9035/parse_af9035.pl9
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/af9035/parse_af9035.pl b/contrib/af9035/parse_af9035.pl
index 32ebacb2..1ea7c06a 100755
--- a/contrib/af9035/parse_af9035.pl
+++ b/contrib/af9035/parse_af9035.pl
@@ -192,8 +192,8 @@ sub print_send_recv($$$$$$)
}
}
- return if ($hide_wr);
if ($ctrl_cmd eq "CMD_MEM_WR") {
+ return if ($hide_wr);
my $comment = "\t/* $payload */" if ($payload =~ /ERROR/);
if (scalar(@ctrl_bytes) > 1) {
@@ -203,6 +203,7 @@ sub print_send_recv($$$$$$)
}
return;
} else {
+ return if ($hide_rd);
my $comment = "\t/* read: $payload */";
if (scalar(@ctrl_bytes) > 0) {
printf "ret = af9035_rd_regs(d, 0x%04x, %d, { $ctrl_pay }, $len, rbuf);$comment\n", $reg, scalar(@ctrl_bytes);
@@ -216,13 +217,13 @@ sub print_send_recv($$$$$$)
if ($ctrl_cmd =~ /CMD_FW_(QUERYINFO|DL_BEGIN|DL_END|BOOT)/) {
my $comment = "\t/* read: $payload */" if ($payload);
printf "struct usb_req req = { $ctrl_cmd, $ctrl_mbox, $len, wbuf, sizeof(rbuf), rbuf }; ret = af9035_ctrl_msg(d, &req);$comment\n" if (!$hide_fw);
- next;
+ return;
}
if ($ctrl_cmd eq "CMD_IR_GET") {
my $comment = "\t/* read: $payload */" if ($payload);
printf "struct usb_req req = { $ctrl_cmd, $ctrl_mbox, $len, wbuf, sizeof(rbuf), rbuf }; ret = af9035_ctrl_msg(d, &req);$comment\n" if (!$hide_ir);
- next;
+ return;
}
my $ctrl_pay;
@@ -236,7 +237,7 @@ sub print_send_recv($$$$$$)
if ($ctrl_cmd eq "CMD_FW_DL") {
printf "af9015_wr_fw_block(%d, { $ctrl_pay };\n", scalar(@ctrl_bytes) if (!$hide_fw);
- next;
+ return;
}

Privacy Policy