From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795990794; b=k/U1oajd4g4o1u8ERCvkGSf4bCwp5PBPhFOuK3U1LVMQKij8clyo7rnxjmQHMv0HyKhk sl3IfpvH+3ASDKalVCumXiAcGzDq4Rl8gs5SJVx5vzCeH7WaGgliNYI9vybl1MZhVPB6V u5jEH1ewy1pXxhmU/PZryI7/mu5QgK3wnBvm8OubKxi8S2sqZR7xGxmMbmEAaNCqkP3i4 MEABARnFjsTH4YoMcvJHNIBjSVrbjZhBA3wYUU/BB5wQlVGXKSCrlxatpmlLQebRodhAS N1Ab3U1GV/2NGbut7xi518nSsETPrNTCD8wKtW87j/3QSr9UJoHoZOvE27tQerlRl4A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795990794; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=kqWUQJ1p6dGCw/zNRiTqI9El8Si5rADr5HBXoZg+W0Y=; b=j3uWqf0ccKrD63mdkfjisQ0SK/ltJRlJx2EQWu9tuo8HPBMvhPL9/eTIOFMmNGkfVk0L KneJYzk1zJqj3T9O4tYHJwDF++IBr1rTqOGzkRPlaE/GTYVd4VfLfikiDlwNu3geXFJ8Z qsWG0r8VjNMD3LxwXM6vyWipUjx+0DFNfnpBBQAb47U1EenFWJi+tCiig92yP4bMjrjKM 3YaZvyk0xdEBbgaPP5wC0ReqYe9UA5QZzdaiXzx1090GSvp3TT/FnRFx8OBSmwZPE6t5+ Iy7VmP6u+/+3utWyF7Jrpz3zXKW7hjAA7+CWC3axZctBlCOfgCPe3Mqw/SnJge4WEQA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b="Nx/VAv7F"; arc=none smtp.remote-ip=156.67.10.101 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4286606A325; Sun, 29 Nov 2026 22:19:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B4286606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Nx/VAv7F DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=kqWUQJ1p6dGCw/zNRiTqI9El8Si5rADr5HBXoZg+W0Y=; b=Nx/VAv7FbxjZ9ongnff8z0QoUm fSwZTyas+87gqz0UxY+oy+8uDyUrrddxHE9epTlAQZjLa0ZZMrlaPGZ6U032qzxwpB+/WB9+cCcNM JCgXYNv2UEHIHZBKVwYtkeDPSTeohqi0A0XDG+pW7z8/H8cXwnwBERKX2otqEHjR6RMU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1xXnFF-002DCY-F2; Sun, 29 Nov 2026 23:19:41 +0100 Date: Sun, 29 Nov 2026 23:19:41 +0100 From: Andrew Lunn To: "Wiholm Willie, Tritech Solutions AB" Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Haemmerle , "netdev@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [PATCH RFC net 1/2] net: phy: dp83867: set INT_OE when enabling Wake-on-LAN Message-ID: References: <20261127-wol-net-v1-0-769a2aff91df@tritechsolutions.se> <20261127-wol-net-v1-1-769a2aff91df@tritechsolutions.se> <8abecae4-8a6d-4608-bf97-45423d69541c@lunn.ch> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sun, Nov 29, 2026 at 10:03:37PM +0000, Wiholm Willie, Tritech Solutions AB wrote: > On Fri, Nov 27, 2026 at 07:56:51PM +0100, Andrew Lunn wrote: > > Can this pin on the MAC actually generate interrupts? It would be > > better to turn it into an interrupt controller, so all the usual > > mechanisms just work, like PHY interrupts, not just WoL wake up. > > Yes, by setting the PHYIE bit in the MAC_INTERRUPT_ENABLE > register I can generate interrupts. It also requires > PHY2MAC_INTR_POL in the GCR register which was not set > by the firmware on my board. > > I tested it by manually setting PHY2MAC_INTR_POL, PHYIE > and INT_OE (DP83867 CFG3). Magic packet then triggers > an interrupt in eno1:mac. Great. So you need a Linux interrupt controller, so you can then ideally reference it in DT, in the PHY node, in the normal way. There are a couple of DSA drivers which embed an interrupt controller in them, which you can use as an example. They support more than one interrupt, so are a bit more complex than what you need. Andrew