From patchwork Thu Nov 8 23:26:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 10675147 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AE62A14D6 for ; Thu, 8 Nov 2018 23:26:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B5292E839 for ; Thu, 8 Nov 2018 23:26:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B9CA2A41F; Thu, 8 Nov 2018 23:26:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 378AD2A41F for ; Thu, 8 Nov 2018 23:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:To:Subject :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/XZ1SZkmxQzMe+fl5PdrYBUZ03biiibtnp0rHbK2/2Q=; b=UIFqee3M/JMIcc PVJF+PQwjuRfMuOEYeiuF5CqGunK4WVRz8eyDXPbk+3epEWpsWSrB9bVlw4QyCGYt9gnjLjiDNZ3u AKJEAeX6JCwXW7muRKYLGwcIsUjv39cW331QrEaJlyu7eizRGoEuFcfVkbg6RuFgYZJbWSdESa3wc M01lW/EMwFskNCvApYG86uf/0bGCNg1WHLJoFuEdwWdae9jlZck7ftYz8zaKr5+01HDe8WBF1quQH uyQbhI4umtrkebBO+fkvbGb41JYgFEqTIEXobFpHXu8zFQ4UkyAYH6rFwhLnHyJbwxyHG6mZDpOAL p2c5ZO29qSEzR2+NZgdw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKth1-0000Li-D5; Thu, 08 Nov 2018 23:26:31 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKtgy-0000Kq-V7; Thu, 08 Nov 2018 23:26:30 +0000 Received: by mail-wm1-x32c.google.com with SMTP id w7-v6so367534wmc.1; Thu, 08 Nov 2018 15:26:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=+2RU69FRWDk3CMxLfKt+YRapJT+KDR1KMxQ8WMUUXQ0=; b=qWgtXra+EyraCFxig7QdPHySEQfSFrlx4jAPDO2CR7MZCKf838sZE2bnQWeFmfteP6 By6UCsEtsAPcvdwDwfqABOGCWajBoTPq8aya6xXv/4IFG2XFJV2o0VCTYdAMRqjWMqdQ HC3SAz2HvTgTuWy1z4nMPl6nSsQdIMSjNzxGJsOXQB/X+TkbAMHy0bIVeBBonv9uzCVW XX8aAOn1mcUCdfn5aeAPfEe/pNGxGq1fkhPf3cl1hVaKn4plN1o/5DMNRRrfUq3bmHy3 ka9j6byYqDVvz0/usUJslQ6hdc5IUcKnesZLMcWH/eOsC2WaHRL4+/r8HpPk5sbB1t5q ppwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=+2RU69FRWDk3CMxLfKt+YRapJT+KDR1KMxQ8WMUUXQ0=; b=t3odoenr9adPs3R5ej8V3xohLVv308/xeWj6VpQlpttY8ko4byUpLHxZ2vTYx47J5X C1IqgioRsbPCKDo6ojj6wp6PdjULAVSG+Hnso6v1LEL+M4MbOdvPhemoZLaqUjjSiz42 s6kAqmIU1tv/dsTdOxqd3uLd/TKq11TbQ4Yru6ATjXdF21/w0Gd3VtdUWbWvgoizwLtF C6+8OYp80T8CAREiv6I+6zqiNOQcRdxYO7sp7joN2pC8AJvc3mwW2nJhsRviUZKJyC76 PANSVEbNkVeCtmSvvqSX8nKTejf3ZrhkPchM3QqlENWsiYuw+f0rUGsOzxn1Mf4JBKe3 FYkg== X-Gm-Message-State: AGRZ1gI8YwLNh3FEwzcAgGyzzoFOorzZ9Sj78tuvTNL9i1ZU5DpvzIme RCHnXkVTnrM92ODj9+lrMoW58tEf X-Google-Smtp-Source: AJdET5fJ+OMqtKg0R0Ocelx9I94U+anSplJ69PlkTlMLLBWJXVq3ZNYfjRepCB29ldstGOF6n3gXJA== X-Received: by 2002:a1c:da51:: with SMTP id r78-v6mr2929322wmg.39.1541719576207; Thu, 08 Nov 2018 15:26:16 -0800 (PST) Received: from ?IPv6:2003:ea:8bcf:e300:3cbc:a9ea:9ab8:4b19? (p200300EA8BCFE3003CBCA9EA9AB84B19.dip0.t-ipconnect.de. [2003:ea:8bcf:e300:3cbc:a9ea:9ab8:4b19]) by smtp.googlemail.com with ESMTPSA id g1-v6sm5792095wmg.2.2018.11.08.15.26.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 15:26:15 -0800 (PST) From: Heiner Kallweit Subject: [PATCH net-next v2 0/2] net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt To: Andrew Lunn , Florian Fainelli , David Miller Message-ID: Date: Fri, 9 Nov 2018 00:26:08 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181108_152628_999430_346B8E03 X-CRM114-Status: GOOD ( 12.12 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "netdev@vger.kernel.org" , Richard Cochran , open list , "maintainer:BROADCOM BCM63XX ARM ARCHITECTURE" , Kevin Hilman , Carlo Caione , "open list:ARM/Amlogic Meson SoC support" , "moderated list:BROADCOM BCM63XX ARM ARCHITECTURE" Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 all driver configs. v2: - add helper for check in patch 1 - remove PHY_HAS_INTERRUPT from all drivers, not only Realtek - remove flag PHY_HAS_INTERRUPT completely 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/amd.c | 1 - drivers/net/phy/aquantia.c | 6 ------ drivers/net/phy/at803x.c | 3 --- drivers/net/phy/bcm63xx.c | 4 ++-- drivers/net/phy/bcm87xx.c | 2 -- drivers/net/phy/broadcom.c | 16 ---------------- drivers/net/phy/cicada.c | 2 -- drivers/net/phy/davicom.c | 4 ---- drivers/net/phy/dp83640.c | 1 - drivers/net/phy/dp83822.c | 1 - drivers/net/phy/dp83848.c | 1 - drivers/net/phy/dp83867.c | 1 - drivers/net/phy/dp83tc811.c | 1 - drivers/net/phy/icplus.c | 1 - drivers/net/phy/intel-xway.c | 10 ---------- drivers/net/phy/lxt.c | 2 -- drivers/net/phy/marvell.c | 15 --------------- drivers/net/phy/meson-gxl.c | 2 +- drivers/net/phy/micrel.c | 14 -------------- drivers/net/phy/microchip.c | 1 - drivers/net/phy/microchip_t1.c | 1 - drivers/net/phy/mscc.c | 6 ------ drivers/net/phy/national.c | 1 - drivers/net/phy/phy_device.c | 8 ++++++-- drivers/net/phy/qsemi.c | 1 - drivers/net/phy/realtek.c | 7 ------- drivers/net/phy/smsc.c | 7 +------ drivers/net/phy/ste10Xp.c | 2 -- drivers/net/phy/vitesse.c | 9 --------- include/linux/phy.h | 5 ++--- 30 files changed, 12 insertions(+), 123 deletions(-)