From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754652AbaFQCis (ORCPT ); Mon, 16 Jun 2014 22:38:48 -0400 Received: from lgeamrelo04.lge.com ([156.147.1.127]:48293 "EHLO lgeamrelo04.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753920AbaFQCiq (ORCPT ); Mon, 16 Jun 2014 22:38:46 -0400 X-Original-SENDERIP: 10.178.37.74 X-Original-MAILFROM: neidhard.kim@lge.com Message-ID: <539FAA34.9030002@lge.com> Date: Tue, 17 Jun 2014 11:38:44 +0900 From: Jongsung Kim Organization: LG Electronics User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: =?UTF-8?B?U8O2cmVuIEJyaW5rbWFubg==?= CC: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Ferre , "David S. Miller" , Hayun Hwang , Youngkyu Choi Subject: Re: [PATCH] net/cadence/macb: clear interrupts simply and correctly References: <1402563054-8546-1-git-send-email-neidhard.kim@lge.com> <9f5be687-d127-49a4-90ea-c1033505452d@BN1BFFO11FD019.protection.gbl> <539E79F1.1090006@lge.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/16/2014 11:56 PM, Sören Brinkmann wrote: > On Mon, 2014-06-16 at 02:00PM +0900, Jongsung Kim wrote: >> On 06/13/2014 12:44 AM, Sören Brinkmann wrote: >>> This is now clearing all IRQ flags which is probably not what we want >>> here. This is handling RX only. We still want the non-RX interrupts to go to >>> the actual interrupt service routing. >> >> The ISR(Interrupt Status Register) is read only in the interrupt service >> routine, macb_interrupt. But is partially cleared here and there. Further >> handler-functions decide jobs to be done by reading/checking other status >> registers. (e.g., TSR, RSR) So, clearing the ISR after reading looks not >> a bad idea. > > But you are clearing _all_ interrupt flags in the RX NAPI handler. > Doesn't that mean we might miss certain events? Please inspect my patch again. What I did in the macb_poll is removing statements clearing the Rx-complete interrupt, not clearing all the interrupts.