Re: [PATCH v2] serial_core: fix uart PORT_UNKNOWN handling

2014-04-23 Thread One Thousand Gnomes
On Wed, 23 Apr 2014 12:33:22 +0200 Thomas Pfaff wrote: > From: "Thomas Pfaff" > > While porting a RS485 driver from 2.6.29 to 3.14, i noticed that the serial > tty > driver could break it by using uart ports that it does not own : > > 1. uart_change_pm ist called during uart_open and calls t

[PATCH v2] serial_core: fix uart PORT_UNKNOWN handling

2014-04-23 Thread Thomas Pfaff
From: "Thomas Pfaff" While porting a RS485 driver from 2.6.29 to 3.14, i noticed that the serial tty driver could break it by using uart ports that it does not own : 1. uart_change_pm ist called during uart_open and calls the uart pm function without checking for PORT_UNKNOWN. The fix is