Tony Lindgren 6f699743ae serial: core: Fix runtime PM handling for pending tx
Richard reported that a serial port may end up sometimes with tx data
pending in the buffer for long periods of time.

Turns out we bail out early on any errors from pm_runtime_get(),
including -EINPROGRESS. To fix the issue, we need to ignore -EINPROGRESS
as we only care about the runtime PM usage count at this point. We check
for an active runtime PM state later on for tx.

Fixes: 84a9582fd203 ("serial: core: Start managing serial controllers to enable runtime PM")
Cc: stable <stable@kernel.org>
Reported-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Cc: Mikko Rapeli <mikko.rapeli@linaro.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Randy MacLeod <randy.macleod@windriver.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Tested-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Link: https://lore.kernel.org/r/20231023074856.61896-1-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-24 11:35:29 +02:00
..
2023-08-11 21:12:45 +02:00
2023-08-22 15:50:57 +02:00
2023-08-30 13:34:34 -07:00
2023-10-03 11:57:37 -07:00
2023-10-06 15:43:19 -07:00
Hi,
2023-09-13 11:44:20 -07:00
2023-08-31 12:43:10 -07:00
2023-08-24 16:20:30 -07:00
2023-10-13 08:52:57 -07:00
2023-08-30 19:23:00 -07:00
2023-08-28 16:35:01 -07:00
2023-10-13 23:19:16 -07:00
2023-08-31 12:43:10 -07:00
2023-10-05 11:03:20 -07:00
2023-09-01 09:38:00 -07:00
2023-08-30 18:32:24 -07:00
2023-09-14 16:20:31 -06:00
2023-08-18 10:55:49 +05:30
2023-10-06 09:11:13 -07:00
2023-10-13 09:17:48 -07:00
2023-09-07 18:05:58 -07:00
2023-09-04 15:12:26 -07:00
2023-09-04 15:08:52 -07:00
2023-09-07 16:07:35 -07:00
2023-10-12 11:52:23 -07:00
2023-10-12 11:52:23 -07:00
2023-09-04 10:43:44 -07:00
2023-08-24 16:20:18 -07:00
2023-09-06 09:19:12 -07:00
2023-08-21 13:27:44 +02:00