linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* mtk-pmic-keys: Ignore power button if pressed before driver loads
@ 2023-01-30 13:36 Arınç ÜNAL
  2023-01-30 17:21 ` Mattijs Korpershoek
  0 siblings, 1 reply; 3+ messages in thread
From: Arınç ÜNAL @ 2023-01-30 13:36 UTC (permalink / raw)
  To: Dmitry Torokhov, Matthias Brugger, Mattijs Korpershoek,
	AngeloGioacchino Del Regno, Jonathan Cameron
  Cc: linux-input, Linux ARM, moderated list:ARM/Mediatek SoC support,
	linux-kernel, Frank Wunderlich, erkin.bozoglu

Hi all,

The power button on my Bananapi BPI-R2 (MT7623NI SoC, mt6323-keys) is 
shorted, so the device automatically boots when there's power. This 
causes the device to reboot when KEYBOARD_MTK_PMIC is loaded because the 
driver sees the power button being pressed.

I was wondering if it's possible to change the driver in a way that 
doesn't break in this situation. Maybe don't do anything if the first 
state of the the power button the driver sees is being pressed, and if 
the state doesn't change.

To address an edge case, if the power button was being pressed before 
the driver loads, look for if it's ever released. Only after then start 
working as usual.

Looking forward to hearing your thoughts.
Arınç

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2023-02-12 11:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-30 13:36 mtk-pmic-keys: Ignore power button if pressed before driver loads Arınç ÜNAL
2023-01-30 17:21 ` Mattijs Korpershoek
2023-02-12 11:29   ` Arınç ÜNAL

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).