clk: bcm281xx: warn if ccu_wait_bit() fails
authorAlex Elder <elder@linaro.org>
Mon, 21 Apr 2014 21:11:37 +0000 (16:11 -0500)
committerMike Turquette <mturquette@linaro.org>
Wed, 30 Apr 2014 18:51:29 +0000 (11:51 -0700)
Don't let a failure of ccu_wait_bit() go unnoticed.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/bcm/clk-kona.c

index db11a87449f236c6bc1fcf4e5f6084750a1d4f3a..4b4e35aeb77839f0dc361c969a6d417681fc072e 100644 (file)
@@ -207,6 +207,9 @@ __ccu_wait_bit(struct ccu_data *ccu, u32 reg_offset, u32 bit, bool want)
                        return true;
                udelay(1);
        }
+       pr_warn("%s: %s/0x%04x bit %u was never %s\n", __func__,
+               ccu->name, reg_offset, bit, want ? "set" : "clear");
+
        return false;
 }