Received: by 10.213.65.68 with SMTP id h4csp655611imn; Fri, 6 Apr 2018 06:52:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx498l4sfB9daL5Opr3ASmk0ZLGWalV6IlYcHxj1++lmjmmzOzuR5oSA7LoLrcaoEPz4WEI/B X-Received: by 10.99.117.20 with SMTP id q20mr3941825pgc.16.1523022723512; Fri, 06 Apr 2018 06:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523022723; cv=none; d=google.com; s=arc-20160816; b=W4I5NbA4EErkFHhZW9yZ5sL9yndL9QnZdBSD9hBaJiP7040N20C5tga+CpA4IjHhmN apxtgURJw0mMeJZru+MHaQIUIYNo3llB9icbsOLXSo8FAT5GQmIW766dv4ZMQXKdPuFc oQv3VQyrPjSHtFnhAKu1dOcGsVJlERoZFhRtCjj/SYkb5PKjkuMMe8Df0XjTDOjvdidi cRQU/uk+EseDnDiUf0odBIbk05dURDYsr5VPejM/aseOfVA9RWAblKdhHBEZ4SmVvOFn O02EfqoyOrEbBFE7dbmTa25K1mxbEFJV2SN6lL5vhbl8lIV4+xXMDnmLgSsWUHDcVjEt 5KIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=nu5qP71RM0oQTiGCA1S6+gcu5DHYa3toFm8q9FdnkJs=; b=DVkMIf0tbY6kB7Vz6rE7frdjM8y+s99d4Z3u/u2iEdIsRADqtzE96IUx4wdBuhQfVP lEplFDg0wmxl4HwGF9hAXfmaMCkHFjd2WMxZOjBmAoKmO4WqbqaZPHEWFNaDBmAz9yp2 7fFhleX6qhE7UGXEjS2TPG5lrWMMxYZ6zuAGswm3tkUyRlTDMJLXn1Rj4zd6RAF1Aso+ grTC3jg713R10tQSoKLkfwv3cVm5he+j07Jec5ET62MtAQRcb1c2hdv/WRXi1t/hY0U0 qrppfdIcmmU/WTxkbMnNTt9heTp/NFd0i8QDP0mpkh28KOf6Y+iGTqQ1u4AE9ts8LruK xinQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o24-v6si8421347pll.697.2018.04.06.06.51.50; Fri, 06 Apr 2018 06:52:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933005AbeDFNpB (ORCPT + 99 others); Fri, 6 Apr 2018 09:45:01 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37950 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932996AbeDFNo7 (ORCPT ); Fri, 6 Apr 2018 09:44:59 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5E7E0E18; Fri, 6 Apr 2018 13:44:58 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Frank Mori Hess , Ian Abbott Subject: [PATCH 4.16 24/31] staging: comedi: ni_mio_common: ack ai fifo error interrupts. Date: Fri, 6 Apr 2018 15:24:49 +0200 Message-Id: <20180406084344.289281094@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084340.999820380@linuxfoundation.org> References: <20180406084340.999820380@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Frank Mori Hess commit e1d9fc04c41840a4688ef6ce90b6dcca157ea4d7 upstream. Ack ai fifo error interrupts in interrupt handler to clear interrupt after fifo overflow. It should prevent lock-ups after the ai fifo overflows. Cc: # v4.2+ Signed-off-by: Frank Mori Hess Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/staging/comedi/drivers/ni_mio_common.c +++ b/drivers/staging/comedi/drivers/ni_mio_common.c @@ -1275,6 +1275,8 @@ static void ack_a_interrupt(struct comed ack |= NISTC_INTA_ACK_AI_START; if (a_status & NISTC_AI_STATUS1_STOP) ack |= NISTC_INTA_ACK_AI_STOP; + if (a_status & NISTC_AI_STATUS1_OVER) + ack |= NISTC_INTA_ACK_AI_ERR; if (ack) ni_stc_writew(dev, ack, NISTC_INTA_ACK_REG); }