Received: by 10.213.65.68 with SMTP id h4csp705502imn; Fri, 6 Apr 2018 07:34:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+bDpHZLmBVRNTrCV/kRhiwD/A/05AO+Kq8kWzrQsuZMMwxwU8epnPDkEQwU9cAXnceNpz2 X-Received: by 10.98.141.78 with SMTP id z75mr20818127pfd.174.1523025285459; Fri, 06 Apr 2018 07:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523025285; cv=none; d=google.com; s=arc-20160816; b=K2C08rfQn/vtrxobNwYrv1lBALlBOGAfbl7c6sPqfN1OCzaislzzgcjYNFRceS1mCI a+pKEoHAZ5dV2uxRp2enwKfTFWvTUprlHrfWrmGHzLTtKL7JMBjv7UIgNSsXqaHleMOH 44ASDnyc8+KQSi1wzWKj59iH6qZT79Jj6W83A44WdPZti6Q1/gJdni54tub47vTNB4p6 FRS/Bs4eECf0U9PFATWoj1QYtgG7X5BnjMBzi0LBuVENWxESPfQfvU1+VI2LpHcxqIcr d1m0ODKGIuZzxKWjeFMxjKVL6VcU6md11Muf+vobJkhtvfIoL2NuICMzHEnmQm8l+QRi dFDQ== 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=B2282KhlhKmCCumvQPi3G2LoXUW4iqqsHQoXvSqv6Tk=; b=tzgdqRflxKlr0qqm/5pOsg1ZJxXIVMlC5c5HKLyQ8btmpxl3KipZIVSMymEkWy4La2 KShfqKCJbn9Ak8R1vqo7oLlArkHmcG60p15+uufyr1AT0rRJDjws8xqxoiwmT8gOftOX ZE2WAmaF94ITUdJs0bCiTG2a064HWIC7a5cb2HQukYTBk5iGaxB6r83oYZ97zo27kTOi uLnNH8crhXH135lDVieIpU6jCUr0jLJc4Qu31W6Kn8FBzvYi5bW9wxbpw6JqmDCeQgfg SJGoN6GofmZVcDor2SQKDZIoA4coKi6rPJeCyBYJ0Y38nN/IkP1HFimKRqbMu9nthYIc qLhA== 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 c11-v6si8594322plo.582.2018.04.06.07.34.31; Fri, 06 Apr 2018 07:34:45 -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 S932074AbeDFNgN (ORCPT + 99 others); Fri, 6 Apr 2018 09:36:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59122 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756143AbeDFNgM (ORCPT ); Fri, 6 Apr 2018 09:36:12 -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 BE4CBDD2; Fri, 6 Apr 2018 13:36:11 +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.9 085/102] staging: comedi: ni_mio_common: ack ai fifo error interrupts. Date: Fri, 6 Apr 2018 15:24:06 +0200 Message-Id: <20180406084343.386535461@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@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.9-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); }