All of lore.kernel.org
 help / color / mirror / Atom feed
* mtk-pmic-keys: Ignore power button if pressed before driver loads
@ 2023-01-30 13:36 ` Arınç ÜNAL
  0 siblings, 0 replies; 9+ 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ç

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

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

Thread overview: 9+ 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 13:36 ` Arınç ÜNAL
2023-01-30 13:36 ` Arınç ÜNAL
2023-01-30 17:21 ` Mattijs Korpershoek
2023-01-30 17:21   ` Mattijs Korpershoek
2023-01-30 17:21   ` Mattijs Korpershoek
2023-02-12 11:29   ` Arınç ÜNAL
2023-02-12 11:29     ` Arınç ÜNAL
2023-02-12 11:29     ` Arınç ÜNAL

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.