xr_usb_serial_common: fix kernel 5.4 builds 15782/head
authorDavid Bauer <mail@david-bauer.net>
Sat, 22 May 2021 08:39:53 +0000 (10:39 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sat, 5 Jun 2021 14:00:54 +0000 (16:00 +0200)
commitec7d12bd8ec8ce6ae8597bb616004e309400aa4e
tree35b6c5e4a57444f672c194ff8164486c0b5a4419
parente6ac172a4f9ea1725487b20e03f1bea084388886
xr_usb_serial_common: fix kernel 5.4 builds

Building the xr_usb_serial module fails for Kenel 5.4 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.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 69cf7836df9e226b4d596d057ca6ad846201e0d0)
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]