Skip to contentSkip to conversation

Console not work with CONFIG_CONSOLE_ACTIVATE_FIRST

DISCUSSION Alexander Shiyan 2 participants 2 messages May 20, 2016

lore
Share & tools
lore
#0 lore raw

Hello.

Patch 05261801e9cde103b3c4df843472027c007531da changes input subsystem.
If the CONFIG_CONSOLE_ACTIVATE_FIRST is set and barebox config contain
one serial console and one input device (GPIO buttons, for example), the console stops working. Currently I haven't found a solution for this, but the CONFIG_CONSOLE_ACTIVATE_ALL solve the problem.

Thanks.

---
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw

Hi Alexander,

Quoted 7 lines · Alexander Shiyan

Hello.

Patch 05261801e9cde103b3c4df843472027c007531da changes input subsystem.
If the CONFIG_CONSOLE_ACTIVATE_FIRST is set and barebox config contain
one serial console and one input device (GPIO buttons, for example), the console stops working. Currently I haven't found a solution for this, but the CONFIG_CONSOLE_ACTIVATE_ALL solve the problem.

The GPIO buttons is registered at device_initcall time whereas the UART console devices are normally registered at console_initcall time. I assume either your UART driver or the corresponding device is registered from a device_initcall when it should be from console_initcall.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox