Re: [PATCH] serial: uartps: Fix uartps_major handling

2019-10-04 Thread Michal Simek
On 04. 10. 19 14:52, Greg Kroah-Hartman wrote: > On Fri, Sep 13, 2019 at 09:28:29AM +0200, Michal Simek wrote: >> There are two parts which should be fixed. The first one is to assigned >> uartps_major at the end of probe() to avoid complicated logic when >> something fails. >> The second part is

Re: [PATCH] serial: uartps: Fix uartps_major handling

2019-10-04 Thread Greg Kroah-Hartman
On Fri, Sep 13, 2019 at 09:28:29AM +0200, Michal Simek wrote: > There are two parts which should be fixed. The first one is to assigned > uartps_major at the end of probe() to avoid complicated logic when > something fails. > The second part is initialized uartps_major number to 0 when last device

[PATCH] serial: uartps: Fix uartps_major handling

2019-09-13 Thread Michal Simek
There are two parts which should be fixed. The first one is to assigned uartps_major at the end of probe() to avoid complicated logic when something fails. The second part is initialized uartps_major number to 0 when last device is removed. This will ensure that on next probe driver will ask for