diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-10-17 17:55:55 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-10-19 11:22:38 +0100 |
commit | 9d111d49106b61f5a652d5418e85d8741b1a0427 (patch) | |
tree | a094c133a7f1d0d453791e950ec10e0b6b2ec805 /drivers/irqchip/irq-gic-common.h | |
parent | fa1500191958660952a3a8466aad54003701a7b6 (diff) |
irqchip/gic: Make quirks matching conditional on init return value
As it turns out, the IIDR is not sufficient to distinguish between GICv3
implementations when it comes to enabling quirks. So update the prototype
of the init() hook to return a bool, and interpret a 'false' return value
as no match, in which case the 'enabling workaround' log message should
not be printed.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/irqchip/irq-gic-common.h')
-rw-r--r-- | drivers/irqchip/irq-gic-common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic-common.h b/drivers/irqchip/irq-gic-common.h index 205e5fddf6da..3919cd7c5285 100644 --- a/drivers/irqchip/irq-gic-common.h +++ b/drivers/irqchip/irq-gic-common.h @@ -23,7 +23,7 @@ struct gic_quirk { const char *desc; - void (*init)(void *data); + bool (*init)(void *data); u32 iidr; u32 mask; }; |