From 55d8672de0b729acbf5377464cd2dfe2c76412cd Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Mon, 2 Jul 2018 14:04:26 +1000 Subject: Re-enable same/relative addresses checking in test code Signed-off-by: Benjamin Herrenschmidt --- cf-fsi-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cf-fsi-test.c') diff --git a/cf-fsi-test.c b/cf-fsi-test.c index b800ff2..ad6efd7 100644 --- a/cf-fsi-test.c +++ b/cf-fsi-test.c @@ -695,13 +695,13 @@ static void build_ar_command(struct fsi_gpio_msg *cmd, uint8_t id, /* cmd opcodes are variable length - SAME_AR is only two bits */ opcode_bits = 3; - if (0 && check_same_address(id, addr)) { + if (check_same_address(id, addr)) { /* we still address the byte offset within the word */ addr_bits = 2; opcode_bits = 2; opcode = FSI_GPIO_CMD_SAME_AR; - } else if (0 && check_relative_address(id, addr, &rel_addr)) { + } else if (check_relative_address(id, addr, &rel_addr)) { /* 8 bits plus sign */ addr_bits = 9; addr = rel_addr; -- cgit v1.2.1