xr_usb_serial_common: fix kernel 5.10 builds
authorDavid Bauer <mail@david-bauer.net>
Sat, 22 May 2021 08:39:53 +0000 (10:39 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 25 May 2021 20:41:04 +0000 (22:41 +0200)
commit69cf7836df9e226b4d596d057ca6ad846201e0d0
tree7b5ff7d1efbcd29bf454ba918829cd5691ba1fab
parentf2b7dce0a46ed523830d84ede08f6c575545befe
xr_usb_serial_common: fix kernel 5.10 builds

Building the xr_usb_serial module fails for Kenel 5.10 with CONFIG_PM
enabled:

xr_usb_serial_common.c:1574:15: error: 'ASYNCB_INITIALIZED' undeclared
(first use in this function); did you mean 'RCU_INITIALIZER'?

Use tty_port_initialized in order to determine the status of the TTY
port. This is compatible with Kernel 5.10 and at least Kernel 5.4.

Signed-off-by: David Bauer <mail@david-bauer.net>
libs/xr_usb_serial_common/Makefile
libs/xr_usb_serial_common/patches/0001-common.c-fix-kernel-5.10-builds-with-CONFIG_PM-enabl.patch [new file with mode: 0644]