Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965021AbaFRIpN (ORCPT ); Wed, 18 Jun 2014 04:45:13 -0400 Received: from lgeamrelo01.lge.com ([156.147.1.125]:51916 "EHLO lgeamrelo01.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756381AbaFRIpK (ORCPT ); Wed, 18 Jun 2014 04:45:10 -0400 X-Original-SENDERIP: 10.178.37.74 X-Original-MAILFROM: neidhard.kim@lge.com Message-ID: <53A1516F.7010201@lge.com> Date: Wed, 18 Jun 2014 17:44:31 +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: Nicolas Ferre , =?UTF-8?B?U8O2cmVuIEJyaW5rbWE=?= =?UTF-8?B?bm4=?= CC: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Hayun Hwang , Youngkyu Choi , Cyrille Pitchen Subject: Re: [PATCH] net/cadence/macb: clear interrupts simply and correctly References: <1402563054-8546-1-git-send-email-neidhard.kim@lge.com> <7e888b59-d27b-49dc-9ffc-1c7d56f11773@BN1AFFO11FD007.protection.gbl> <539FB874.1040003@lge.com> <539FF43E.2020002@atmel.com> In-Reply-To: <539FF43E.2020002@atmel.com> 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/17/2014 04:54 PM, Nicolas Ferre wrote: Hi Nicolas, > On 17/06/2014 05:39, Jongsung Kim : >> On 06/17/2014 06:28 AM, Sören Brinkmann wrote: >>> Shouldn't it be sufficient to replace 'MACB_BIT(RCOMP) with 'MACB_RX_INT_FLAGS' >>> to clear all the RX IRQ flags. >> >> I'm afraid not. >> >> You know, this driver initially targeted only GEMs configured with "gem_irq_clear_read." >> For this implementation of GEM, the ISR is automatically cleared by reading. The driver >> was designed to operate with the value read from ISR, not with the ISR itself. >> >> However, there are other GEMs configured without "gem_irq_clear_read," people like you >> and I working with. To support them, they insert similar codes conditionally clearing >> the ISR here and there. Now they are found at 6 places. Not enough yet. Do you want to >> insert another at the end of macb_reset_hw..? Maybe not. > > Can't we separate a bit more the implementations of "clear on read" and > "clear on write" so that we do not spread the tests that you are talking > about all over the place and slower the driver's hot paths? I see. I'll revise my patch. Thank you for your advice. Regards, Jongsung -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/