irqchip/gic: Skip DT quirks when evaluating IIDR-based quirks
When evaluating potential quirks matched by reads of the IIDR register, skip the quirk entries that use a "compatible" property attached to them, as these are DT based. Signed-off-by: Marc Zyngier <maz@kernel.org>
This commit is contained in:
parent
ad5a78d3da
commit
25edaed6c7
|
@ -41,6 +41,8 @@ void gic_enable_quirks(u32 iidr, const struct gic_quirk *quirks,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
for (; quirks->desc; quirks++) {
|
for (; quirks->desc; quirks++) {
|
||||||
|
if (quirks->compatible)
|
||||||
|
continue;
|
||||||
if (quirks->iidr != (quirks->mask & iidr))
|
if (quirks->iidr != (quirks->mask & iidr))
|
||||||
continue;
|
continue;
|
||||||
if (quirks->init(data))
|
if (quirks->init(data))
|
||||||
|
|
Loading…
Reference in New Issue