Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5712970rwb; Wed, 9 Aug 2023 08:11:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEsLQHpDjdVfaHR0QjqAvKZxxb6eILWXcny2cnx0P3+24wsMJ3kyvTrhWWQmUTSN8LQcO/N X-Received: by 2002:a05:6a21:9983:b0:133:dc0a:37e7 with SMTP id ve3-20020a056a21998300b00133dc0a37e7mr3245413pzb.13.1691593918204; Wed, 09 Aug 2023 08:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691593918; cv=none; d=google.com; s=arc-20160816; b=epHbzlwg0CEtHwpTfVMPljZuSnYpDxcm6Vq15qdxgBw9DbQtutAUHu3+OJ2CHm0JqB QoE8Dxq3FgISOAaJr1wzUerJdK9i8YkqNpyBJiKKR32P97tLPr/DjgV/kzDE3NLclomN klKll5VvOTN7TwLQo7sNlK/qOpDtPUUAiPu7E4ZCsujVJ/sNQiS+X71W/CwAeq9OgvN7 WjV7/bEb9ZEtlFdsSaLMmzHeHYARzp7oMmHIpSusgIvJ2YmzBx3PVBJVOcgdt0YETQ0Q pVfww1PSLM/lwOdRvinf5vJ3W7Z6+3nUOn5bxNOPIlKsUvzVR8hjIL+n/bN9cn0KBKRC W8eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=VsQpNZtjoKgsOWGOTa+TCccq2DgrQ3Hi+Jy0cIt7CSE=; fh=Zu/DZgzfXmMXVTJKXpZ7U/fqKirq+lmQm5nqPXqqD6o=; b=H8tii1EfK7VJ8IejaCwDaBbTPDYg8wMYp5nnbvZUPPvK1bQrl5z8HQdvr+9cxsqF6S Ubf7dqiFHL+f6DS1WT2mbOtrt0iiV66Yl8hjKm9l8qo2W9FFS8vBbQW7msTScawsvDAT 9PahtkTkg/xn11iZeeHySIgXZgKTA6K22Ffw9uTFkkm3NLZNz0/l/pvrJDpZi0u9d/TR +PdKj5JxMrSzpw1L+sHWJs9dG3LghEgzpljyCyjzT3DKIRT2QNv0Zow5ai5E/H4r9z+t Zj0Wx9TO2tzc0QMQboIt51byG2LXv3ODM+BpQzikRa/L5QaPukpxKb753jan+6WGH+p8 PSew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=SGt+RXuT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a056a001ad000b0068219eb279bsi9599859pfv.245.2023.08.09.08.11.43; Wed, 09 Aug 2023 08:11:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=SGt+RXuT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233279AbjHIO3e (ORCPT + 99 others); Wed, 9 Aug 2023 10:29:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233302AbjHIO3d (ORCPT ); Wed, 9 Aug 2023 10:29:33 -0400 Received: from pandora.armlinux.org.uk (unknown [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3286B1FD7; Wed, 9 Aug 2023 07:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VsQpNZtjoKgsOWGOTa+TCccq2DgrQ3Hi+Jy0cIt7CSE=; b=SGt+RXuTmpITjw2x/CpmDR5Ai2 33bQyol969D2IgbgufuDyFBYb64UH5HQ6XxX5rIpLrd5ZMo0n38D/sh3PkiWC/GqTYLu6wSec4FIe uDXtiLimd8rYpUkUnVXfcK44XhknFev0WdlMnqcVHtCgtpDO8K5gD2mUziHu9C6lD6ziqMKvYztaY nwJCld1Sl+CqCsXCgDqOfC/art1f+wo2fi1H0wXkgcDA2ekFnOFOFqKjdquZ2F6amdxNLvHacxa2r 0vhZzF3GlzVgbC8ntYJMDi/vPMisbPU9dfGJDoqo1YK1tILToE8GCCFWwFVjqC6mq1KcWaWRMYgaY 3fThzPRg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:60740) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qTkBd-0002dz-3D; Wed, 09 Aug 2023 15:29:22 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qTkBZ-0000ng-LV; Wed, 09 Aug 2023 15:29:17 +0100 Date: Wed, 9 Aug 2023 15:29:17 +0100 From: "Russell King (Oracle)" To: Ioana Ciornei Cc: Florian Fainelli , Jakub Kicinski , Andrew Lunn , Heiner Kallweit , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Ioana Ciornei , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandru Ardelean , Andre Edich , Antoine Tenart , Baruch Siach , Christophe Leroy , Divya Koppera , Hauke Mehrtens , Jerome Brunet , Kavya Sree Kotagiri , Linus Walleij , Marco Felsch , Marek Vasut , Martin Blumenstingl , Mathias Kresin , Maxim Kochetkov , Michael Walle , Neil Armstrong , Nisar Sayed , Oleksij Rempel , Philippe Schenker , Willy Liu , Yuiko Oshino Subject: Re: [PATCH] net: phy: Don't disable irqs on shutdown if WoL is enabled Message-ID: References: <20230804071757.383971-1-u.kleine-koenig@pengutronix.de> <20230808145325.343c5098@kernel.org> <1e438a02-6964-ce65-5584-e8ea57a694bb@gmail.com> <20230809142155.4dtmnmmecaycbtum@LXL00007.wbi.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230809142155.4dtmnmmecaycbtum@LXL00007.wbi.nxp.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RDNS_NONE,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 09, 2023 at 05:21:55PM +0300, Ioana Ciornei wrote: > That's a perfect summary of the problem that I was trying to fix. > > The board in question is a LS1021ATSN which has two AR8031 PHYs that > share an interrupt line. In case only one of the PHYs is probed and > there are pending interrupts on the PHY#2 an IRQ storm will happen > since there is no entity to clear the interrupt from PHY#2's registers. > PHY#1's driver will get stuck in .handle_interrupt() indefinitely. So I have two further questions: 1. Is WoL able to be supported on this hardware? 2. AR8031 has a seperate WOL_INT signal that can be used to wake up the system. Is this used in the hardware design? Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!