Received: by 10.213.65.68 with SMTP id h4csp682371imn; Fri, 6 Apr 2018 07:14:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4//OWLkRAp7Ks5qcIC7MvUPd1r3JfDO8ggOUsyYmjznv9Z0iOfvVYR+gG0tIxxzqe13do0s X-Received: by 2002:a17:902:5acf:: with SMTP id g15-v6mr26965831plm.138.1523024091702; Fri, 06 Apr 2018 07:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523024091; cv=none; d=google.com; s=arc-20160816; b=cW/POznQCN0dDQg3lOtk+DkmT6ZjiLh3cl7L0ETVWllqxvB3E9V5kTPK1862mDVhCB keE7xhwWlNCVz7Fbq35brNrwRNLn3PlA6CxyyACNpzdYCysyNefiBPkfryECjahfcQyR znyirf5PmpjBYzv5gxm1aVxW8dc2MA8Z7RZd1aHmMwI2Yg7F427GwxHXh1GNarQLYfo3 Y/bFJPvxGN++9zmTYfi6kml3vxeTPW24IwHpdcQo+bAO4z5tsUadOwq1CJiVXMS6OOcf v/Zw8v+C49MxWBgOtnTPwITCOsKxA/9BG5fzgdiKvXjXNpMxvJX0eOxWNWDpzKPWEx6I jW5w== 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=qkLR2N4ebugq+ngMQKSP8N/LTVlqIaPWV2ZZdYr/rzI=; b=gs9VRRUHJ9w6XKnQgH7Xx1ECPUN4u9R6yeIRUzQhY+yUt+CLp+5fJp8tzn0VVlNG6l xfG71Zhk0KYLF1uOH9Qf9CQGLzbz1FbZ+sIxH3iFcznZtKVAVAF1NsN8Aw7uKo0RLvGU b0Sp50DVxl2IiIgwq86yM53Zg+zLPUbGviEzpQcESYonaBOeCi7h2MbP8wUJiUfNDG/m SuEAqV3UtLQOIytrnSE0cK6t/czt6AD/Bj508b5p2z1xg5JDEOQv4rRTpGW/J41a6+me lNfIPo4oX+j7NEencKUCZiDVckVTJp33tsQgDBls6QtV+dxAkRpipos5XIzjhnh/z7l2 JXWw== 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 12-v6si8341254plb.342.2018.04.06.07.14.37; Fri, 06 Apr 2018 07:14:51 -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 S932707AbeDFNjo (ORCPT + 99 others); Fri, 6 Apr 2018 09:39:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34756 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932691AbeDFNjl (ORCPT ); Fri, 6 Apr 2018 09:39:41 -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 9B1EED0A; Fri, 6 Apr 2018 13:39:40 +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.14 55/67] staging: comedi: ni_mio_common: ack ai fifo error interrupts. Date: Fri, 6 Apr 2018 15:24:25 +0200 Message-Id: <20180406084347.978784022@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084341.225558262@linuxfoundation.org> References: <20180406084341.225558262@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.14-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 @@ -1284,6 +1284,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); }