From 57455cfb9f4aff02621fee376e682577f71362e0 Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Mon, 27 Mar 2023 13:19:07 +0200 Subject: [PATCH] uniwill_wmi: Tweak debug cycle view threshold --- src/uniwill_wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uniwill_wmi.c b/src/uniwill_wmi.c index aa26a93..009e199 100644 --- a/src/uniwill_wmi.c +++ b/src/uniwill_wmi.c @@ -177,7 +177,7 @@ static int uw_ec_read_addr_direct(u8 addr_low, u8 addr_high, union uw_ec_read_re if (bflag) pr_debug("addr: 0x%02x%02x value: %0#4x result: %d\n", addr_high, addr_low, output->bytes.data_low, result); - if ((UW_EC_BUSY_WAIT_CYCLES - count) >= 1) + if ((UW_EC_BUSY_WAIT_CYCLES - count) > 1) pr_debug("read wait count: %i", (UW_EC_BUSY_WAIT_CYCLES - count)); // pr_debug("addr: 0x%02x%02x value: %0#4x result: %d\n", addr_high, addr_low, output->bytes.data_low, result); @@ -241,7 +241,7 @@ static int uw_ec_write_addr_direct(u8 addr_low, u8 addr_high, u8 data_low, u8 da if (bflag) pr_debug("addr: 0x%02x%02x value: %0#4x result: %d\n", addr_high, addr_low, data_low, result); - if ((UW_EC_BUSY_WAIT_CYCLES - count) >= 1) + if ((UW_EC_BUSY_WAIT_CYCLES - count) > 1) pr_debug("write wait count: %i", (UW_EC_BUSY_WAIT_CYCLES - count)); mutex_unlock(&uniwill_ec_lock);