summaryrefslogtreecommitdiffstats
path: root/cf-fsi-test.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-07-02 14:04:26 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-07-02 14:04:26 +1000
commit55d8672de0b729acbf5377464cd2dfe2c76412cd (patch)
tree957ddc286e4e8f8af9f88a1d36bcdc9e5ae7e697 /cf-fsi-test.c
parentb56eb303f4a4b0396d254efae579fe1c525f8d22 (diff)
downloadcf-fsi-55d8672de0b729acbf5377464cd2dfe2c76412cd.tar.gz
cf-fsi-55d8672de0b729acbf5377464cd2dfe2c76412cd.zip
Re-enable same/relative addresses checking in test code
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'cf-fsi-test.c')
-rw-r--r--cf-fsi-test.c4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud