All of lore.kernel.org
 help / color / mirror / Atom feed
* gpio-altera OF binding discrepancy
@ 2016-02-27  2:10 Marek Vasut
  2016-02-29 15:15 ` Tien Hock Loh
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2016-02-27  2:10 UTC (permalink / raw)
  To: linux-gpio; +Cc: Tien Hock Loh, Linus Walleij

Hi!

I've just checked linux-4.4 and linux-next and discovered the following
issue.

The Documentation/devicetree/bindings/gpio/gpio-altera.txt lists OF
property altr,interrupt-trigger , which is not used anywhere in the
kernel tree.

The drivers/gpio/gpio-altera.c on the other hand checks for a mandatory
OF property altr,interrupt-type and assigns it into variable
altera_gc->interrupt_trigger . Note that if this property is not in the
DT, the driver will fail to probe.

Clearly, there is a typo between altr,interrupt-trigger and
altr,interrupt-type . Since the driver fails to probe if altr,...-type
property is not present, there must be users of this variant in the
wild. I believe the Documentation/devicetree is a part of DT ABI, so the
bindings there should not be randomly changed.

In this case, I would propose to change the Documentation though, since
any users who try to use altr,...-trigger will have probe failures and
fix their DT anyway.

Does this make sense ? If so, I will submit a patch .

Thanks!

-- 
Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-29 19:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-27  2:10 gpio-altera OF binding discrepancy Marek Vasut
2016-02-29 15:15 ` Tien Hock Loh
2016-02-29 16:22   ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.