Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1308050pxu; Fri, 27 Nov 2020 04:39:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkVR80gk6DpdUStqKI+DgmMgP+GM/9mCJDW9wH1ej+/tuQa3etCTrvYpbXyL1rr0YTajHd X-Received: by 2002:a17:906:9816:: with SMTP id lm22mr7284470ejb.313.1606480794209; Fri, 27 Nov 2020 04:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606480794; cv=none; d=google.com; s=arc-20160816; b=Vs/qhlzpU4l00AykdHfUPe2jfzHc0FLPmWaH5+t/G2v+VrqVRnx4UuwZrgHWqO6i4G CVaIybbO5dU5lP5WoqtVR5xNZnZYMYKTS0T+odT+DqSDvxesZmakqn5okIoPhJiewT1/ hHGu3wG18e8ibp8HE7/TppufmojxyUNFEhfBOuvHryM2hlY8gBulpE6XxfcpGtN4tDwi g5h3if1CrxjB27cea5OqinIF4nR7gznF7Q1PIZZ3W9EfiSShxstTDPqsxybS8jpwZSiQ pun0CNm3BE7F/AH/bXvpUCSkIa96b/RXMwaAfZDKL0Rwtk4pbFKOSqaADwcDIhl9PeRA F3BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cYuAZuqe0nUpz5DKWbKaY9RXCwIBuG4ej00cbms+6Io=; b=oB5x5Xk48QLTEi5716EvZnfxBtcU1MBVmrARXag6STymxg2kYnSA3kGryN9RnRolfT kgQxDO7b2f3juNX7fVotvR6YYV4Gaxw+s8dVZ3oGXv8gqaHgPFbAop0dGWAEnaeePVIF nGO+UXhVJeIMyS3lZYWS+gw0CoVF7JA8KhOD50hSxc1NuWigDq6g3+jtnM/I06WyYBOn Zm+cER52ghCZbdyT0Erf5Rz7uB4eSNxlIxSNuUupQDxMrPrLHmdwCuVr661Npx2ycg95 nwUB9Cke+Mp5j59n6dzFXPQQayZbEkEMiOXiktVen2UwxGKllnMn1Xk2U4JXpdCZzAyk mlTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r10si4876514ejg.233.2020.11.27.04.39.31; Fri, 27 Nov 2020 04:39:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729090AbgK0Mgb (ORCPT + 99 others); Fri, 27 Nov 2020 07:36:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728661AbgK0Mga (ORCPT ); Fri, 27 Nov 2020 07:36:30 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3138BC0613D1 for ; Fri, 27 Nov 2020 04:36:30 -0800 (PST) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kiczD-0000GK-IO; Fri, 27 Nov 2020 13:36:27 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1kiczA-00088f-Hn; Fri, 27 Nov 2020 13:36:24 +0100 From: Oleksij Rempel To: Andrew Lunn , Florian Fainelli , Heiner Kallweit Cc: Oleksij Rempel , "David S. Miller" , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Philippe Schenker , Ioana Ciornei Subject: [PATCH v1] net: phy: micrel: fix interrupt handling Date: Fri, 27 Nov 2020 13:36:21 +0100 Message-Id: <20201127123621.31234-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After migration to the shared interrupt support, the KSZ8031 PHY with enabled interrupt support was not able to notify about link status change. Fixes: 59ca4e58b917 ("net: phy: micrel: implement generic .handle_interrupt() callback") Signed-off-by: Oleksij Rempel --- drivers/net/phy/micrel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 97f08f20630b..54e0d75203da 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -207,7 +207,7 @@ static irqreturn_t kszphy_handle_interrupt(struct phy_device *phydev) return IRQ_NONE; } - if ((irq_status & KSZPHY_INTCS_STATUS)) + if (!(irq_status & KSZPHY_INTCS_STATUS)) return IRQ_NONE; phy_trigger_machine(phydev); -- 2.29.2