From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754521AbdCNA5O (ORCPT ); Mon, 13 Mar 2017 20:57:14 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34960 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752595AbdCNA5M (ORCPT ); Mon, 13 Mar 2017 20:57:12 -0400 Subject: Re: [PATCH net-next 07/12] net: bcmgenet: clear status to reduce spurious interrupts To: Doug Berger References: <20170314004142.4746-1-opendmb@gmail.com> <20170314004142.4746-8-opendmb@gmail.com> Cc: robh+dt@kernel.org, mark.rutland@arm.com, davem@davemloft.net, rafal@milecki.pl, xow@google.com, joel@jms.id.au, jon.mason@broadcom.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, pgynther@google.com, jaedon.shin@gmail.com From: Florian Fainelli Message-ID: <72c62daf-24f3-de13-e81b-4742993e1de5@gmail.com> Date: Mon, 13 Mar 2017 17:56:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170314004142.4746-8-opendmb@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/13/2017 05:41 PM, Doug Berger wrote: > Since the DMA interrupt status is latched and the DMA servicing can be > polled, it is a good idea to clear the latched status of a DMA interrupt > before performing the service that would be invoked by the interrupt. > > This prevents old status from causing spurious interrupts when the > interrupt is unmasked at a later time. > > Signed-off-by: Doug Berger Reviewed-by: Florian Fainelli -- Florian