Re: [PATCH] USB: serial: mos7720: defer state restore to a workqueue

2020-11-17 Thread Johan Hovold
On Mon, Nov 16, 2020 at 02:31:02PM -0800, Davidlohr Bueso wrote: > On Mon, 16 Nov 2020, Johan Hovold wrote: > > >On Fri, Nov 13, 2020 at 08:27:25PM -0800, Davidlohr Bueso wrote: > >> @@ -1883,21 +1724,17 @@ static void mos7720_release(struct usb_serial > >> *serial) > >>if

Re: [PATCH] USB: serial: mos7720: defer state restore to a workqueue

2020-11-16 Thread Davidlohr Bueso
On Mon, 16 Nov 2020, Johan Hovold wrote: On Fri, Nov 13, 2020 at 08:27:25PM -0800, Davidlohr Bueso wrote: @@ -1883,21 +1724,17 @@ static void mos7720_release(struct usb_serial *serial) if (mos_parport->msg_pending)

Re: [PATCH] USB: serial: mos7720: defer state restore to a workqueue

2020-11-16 Thread Johan Hovold
On Fri, Nov 13, 2020 at 08:27:25PM -0800, Davidlohr Bueso wrote: > The parallel port restore operation currently defers writes > to a tasklet, if it sees a locked disconnect mutex. The > driver goes to a lot of trouble to ensure writes happen > in a non-blocking context, but things can be greatly

[PATCH] USB: serial: mos7720: defer state restore to a workqueue

2020-11-13 Thread Davidlohr Bueso
The parallel port restore operation currently defers writes to a tasklet, if it sees a locked disconnect mutex. The driver goes to a lot of trouble to ensure writes happen in a non-blocking context, but things can be greatly simplified if it's done in regular process context and this is not a