linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] LPC32xx gpio driver broken by commit 762c2e46 in 4.9-rc1
@ 2016-10-18 16:23 Sylvain Lemieux
  2016-10-18 18:06 ` Vladimir Zapolskiy
  2016-10-24  0:46 ` Linus Walleij
  0 siblings, 2 replies; 5+ messages in thread
From: Sylvain Lemieux @ 2016-10-18 16:23 UTC (permalink / raw)
  To: Vladimir Zapolskiy, Linus Walleij, Alexandre Courbot
  Cc: linux-arm-kernel, linux-gpio, Masahiro Yamada, slemieux

Vladimir, Linus, Alexandre,

the current LPC32xx GPIO driver is broken by commit 762c2e46
(gpio: of: remove of_gpiochip_and_xlate() and struct gg_data).

A call to "of_get_named_gpio" to retrieve the GPIO will
always return -EINVAL, except for the first GPIO bank.

Prior to this commit, the driver was working properly
because of the side-effect of the match function called by
"gpiochip_find" inside "of_get_named_gpiod_flags" function.

I think, the proper long-term solution is to replace the
LPC32xx GPIO driver; an initial version was previously
submitted, by Vladimir Zapolskiy, to the mailing list:
http://www.spinics.net/lists/linux-gpio/msg09746.html

Is there any short-term solution that can be done with
the existing driver to keep the LPC32xx platform working
properly in the 4.9 mainline kernel?


Regards,
Sylvain Lemieux


 




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

end of thread, other threads:[~2016-10-24  7:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 16:23 [BUG] LPC32xx gpio driver broken by commit 762c2e46 in 4.9-rc1 Sylvain Lemieux
2016-10-18 18:06 ` Vladimir Zapolskiy
2016-10-18 18:19   ` Sylvain Lemieux
2016-10-24  0:46 ` Linus Walleij
2016-10-24  7:51   ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).