New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FS#2152 - ar933x_uart.c: Build failure when serial console is disabled #7045
Comments
ynezz: I can't confirm this behavior with following setup:
$ git log -1
commit 30921fc1e5fcf904f9afddeece1288f5b16ba017
Author: Greg Kroah-Hartman
Date: Wed Feb 27 10:08:09 2019 +0100
It builds fine here without |
abatyiev: It seems that |
ynezz: Thanks, I was able to reproduce it. Can you please test [[https://github.com/ynezz/linux-2.6/commit/753aeed4f9889cd27f7a8802c05998413f3cdc60|this patch]] and give me your email I can include instead of the current email@missing.fixme in the commit message? |
abatyiev: Hi I've successfully tested your patch on GL.iNet AR150M device. Just as planned, UART is now functions as pure serial port, without kernel's console interference. Thanks! |
ynezz: Thanks for testing, I've sent fix upstream https://marc.info/?l=linux-serial&m=155189162432223 and once accepted I'll prepare patch for OpenWrt. |
ynezz: Fix was accepted https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/commit/?h=tty-linus&id=72ff51d8dd262d1fef25baedc2ac35116435be47 and I've prepared patch for OpenWrt ynezz@af73b02 |
abatyiev:
Hello everyone,
If serial console is disabled (but not the serial device) on ath79 target (i.e. CONFIG_SERIAL_AR933X_CONSOLE in undefined), there is a compilation error:
drivers/tty/serial/ar933x_uart.c: In function 'ar933x_uart_console_write':
drivers/tty/serial/ar933x_uart.c:550:14: error: 'struct uart_port' has no member named 'sysrq'
Member variable
sysrq
instruct uart_port
(in include/linux/serial_core.h) is #ifdef-ed bydefined(CONFIG_SERIAL_CORE_CONSOLE) || defined(SUPPORT_SYSRQ)
condition.It seems like access to that variable should be #ifdef-ed too.
The text was updated successfully, but these errors were encountered: