Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752531AbdLGQEy (ORCPT ); Thu, 7 Dec 2017 11:04:54 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:42681 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752468AbdLGQEv (ORCPT ); Thu, 7 Dec 2017 11:04:51 -0500 X-Google-Smtp-Source: AGs4zMZqTPf3j3gHg0Sf/qrHkN3jmmXzKB4+VWjibG6w98yvo4GL3aPUEwF818real/rWiP7RLbDWg== Message-ID: <1512662689.7042.20.camel@baylibre.com> Subject: Re: [PATCH net-next v2 7/8] net: phy: meson-gxl: add interrupt support From: Jerome Brunet To: Andrew Lunn Cc: Florian Fainelli , Kevin Hilman , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Date: Thu, 07 Dec 2017 17:04:49 +0100 In-Reply-To: <20171207155421.GJ24750@lunn.ch> References: <20171207142715.32578-1-jbrunet@baylibre.com> <20171207142715.32578-8-jbrunet@baylibre.com> <20171207155421.GJ24750@lunn.ch> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.2 (3.26.2-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 808 Lines: 26 On Thu, 2017-12-07 at 16:54 +0100, Andrew Lunn wrote: > On Thu, Dec 07, 2017 at 03:27:14PM +0100, Jerome Brunet wrote: > > Enable interrupt support in meson-gxl PHY driver > > Hi Jerome > > Is it possible to implement did_interrupt()? That allows for shared > interrupts. It does however work fine without it, so long as the > interrupt is not shared. Hi Andrew, It is always possible ;). The irq status registers gets reset on read. In such case, ack_interrupt() and did_interrupt() would be more or less the same function, except for the returned value, I guess ? The phy being internal, I think it is unlikely to ever share its interrupt though. If you prefer I implement this callback, I can certainly re-spin with it ? Thanks for the lightning fast review by the way ! > > Thanks > Andrew