From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiner Kallweit Subject: [PATCH net-next 0/2] net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt Date: Thu, 8 Nov 2018 22:54:50 +0100 Message-ID: <193e3970-8ce2-1221-357a-7b7f9f6aea76@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "netdev@vger.kernel.org" To: Andrew Lunn , Florian Fainelli , David Miller Return-path: Received: from mail-wm1-f52.google.com ([209.85.128.52]:39269 "EHLO mail-wm1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbeKIHcY (ORCPT ); Fri, 9 Nov 2018 02:32:24 -0500 Received: by mail-wm1-f52.google.com with SMTP id u13-v6so176151wmc.4 for ; Thu, 08 Nov 2018 13:54:57 -0800 (PST) Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: Flag PHY_HAS_INTERRUPT is used only here for this small check. I think using interrupts isn't possible if a driver defines neither config_intr nor ack_interrupts callback. So we can replace checking flag PHY_HAS_INTERRUPT with checking for these callbacks. This allows to remove this flag from a lot of driver configs, let's start with the Realtek driver. Heiner Kallweit (2): net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt net: phy: realtek: remove flag PHY_HAS_INTERRUPT from driver configs drivers/net/phy/phy_device.c | 5 +++-- drivers/net/phy/realtek.c | 7 ------- 2 files changed, 3 insertions(+), 9 deletions(-) -- 2.19.1