From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752933AbdENLce (ORCPT ); Sun, 14 May 2017 07:32:34 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:40138 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbdENLcb (ORCPT ); Sun, 14 May 2017 07:32:31 -0400 Date: Sun, 14 May 2017 13:32:22 +0200 From: Greg Kroah-Hartman To: Jan Kiszka Cc: Andy Shevchenko , Linux Kernel Mailing List , linux-serial@vger.kernel.org, Sudip Mukherjee Subject: Re: [PATCH v2] serial: exar: Fix stuck MSIs Message-ID: <20170514113222.GA10578@kroah.com> References: <39750541-c6a9-0e49-59fa-9f0a2e202850@web.de> <1493024379.24567.154.camel@linux.intel.com> <1493027143.24567.155.camel@linux.intel.com> <1493035647.24567.165.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 13, 2017 at 09:09:17AM +0200, Jan Kiszka wrote: > On 2017-04-24 14:07, Andy Shevchenko wrote: > > On Mon, 2017-04-24 at 12:30 +0200, Jan Kiszka wrote: > >> After migrating 8250_exar to MSI in 172c33cb61da, we can get stuck > >> without further interrupts because of the special wake-up event these > >> chips send. They are only cleared by reading INT0. As we fail to do so > >> during startup and shutdown, we can leave the interrupt line asserted, > >> which is fatal with edge-triggered MSIs. > >> > >> Add the required reading of INT0 to startup and shutdown. Also account > >> for the fact that a pending wake-up interrupt means we have to return > >> 1 > >> from exar_handle_irq. Drop the unneeded reading of INT1..3 along with > >> this - those never reset anything. > >> > >> An alternative approach would have been disabling the wake-up > >> interrupt. > >> Unfortunately, this feature (REGB[17] = 1) is not available on the > >> XR17D15X. > > > > FWIW: > > Reviewed-by: Andy Shevchenko > > > > Ping. Needs to go into stable 4.11 now as well. Relax, I'll get to it after 4.12-rc1 is out...