Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3715671pxt; Tue, 10 Aug 2021 09:40:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu+LWr4u1ClzM7+O8dNt5qfwybZP+9Mgtj2snmDU1zxLiCpm0A8rEjoCDeg+TDU60q7Si1 X-Received: by 2002:a05:6638:1251:: with SMTP id o17mr28404287jas.15.1628613625857; Tue, 10 Aug 2021 09:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628613625; cv=none; d=google.com; s=arc-20160816; b=H705L+iU9VHsLBsdEGlSVW6P6nVKI+unRveI2F+fiGfRtUNYHFcJwwRfmM72UWZGu9 l88Aes58kXxKr78KUJaUVaJTwXADh4LWb6b5V2FxNo3SQJURj7AdTE2Mi2y0PFc5YeQ5 4nN8+rSwuvnRfX0gUeGKqIclSK0bq7XOcn1o0YtLo+1W1EZBqhWECHHGIk48dXVlLRt0 jV8ADuiGQSvUBApFlzZqJ4vdG9cNUpAngKRG5eaRE0sT8FUANsrQSM+/PSvJDuSVuOOY g+B5Q35Md7y7FTpVkXGXkNCggoIQzEusowArZHw7O6pVjUVKFHPJzPAjcZ61vH4lTIWx 7r4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3FxL/4S4YmrQ+IWKQjnrpQVFunMNvpe9IajSsBJ9+jM=; b=rOmh+J3ybrP00/dkITmNaYnkZnPN+6RIs3nkwSLjjEpFJnsUexBr9z4ziP3jMp5oi/ UGmam/9pXNZKk6CO8iH6ZaOvPLZg1yNut4JMKDh4B7PN0Sv9cE3BW1+i6RP7dO9MNeJ8 Mtem/ofshNqhzKkBgshp6kH0++UW1NQ2o6wveNuuyY91WApX4y7DBvadhRHZorh4/xGI 9Btqj5cTlImxfinOX6Y+XNzR0dTEHJtkuXOiq6fqlcV7cL7j1lCX1N4YbLLnlu9usFtJ 6XwtB7ekr3+XwFJhMZdOyQwWf2caX5Gokn8ivWA58gPelkka4GWrXp/REbJrxcaUSuMU 1WcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=xmpRAlZq; 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 i41si11364690jav.70.2021.08.10.09.40.14; Tue, 10 Aug 2021 09:40:25 -0700 (PDT) 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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=xmpRAlZq; 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 S239951AbhHJOdf (ORCPT + 99 others); Tue, 10 Aug 2021 10:33:35 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:42928 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240212AbhHJOdb (ORCPT ); Tue, 10 Aug 2021 10:33:31 -0400 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=3FxL/4S4YmrQ+IWKQjnrpQVFunMNvpe9IajSsBJ9+jM=; b=xmpRAlZqaHdbLxX7ChgXsuhmse zrIYeTvO9v6JolQjUytMTEX+UmMI1Jedhxl2nz6zjt2z1DCEGQM1xkwSCJLQGieLeZVKpE5t418DV rVVBRsXnuhng9//M+3v6h7BEvl9Z6nrPeln1nAmwSV5ENgjSD7gv4a43zGbzLqTAyfVM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mDSoM-00Gv7f-0A; Tue, 10 Aug 2021 16:32:58 +0200 Date: Tue, 10 Aug 2021 16:32:57 +0200 From: Andrew Lunn To: Joakim Zhang Cc: Florian Fainelli , "davem@davemloft.net" , "kuba@kernel.org" , "robh+dt@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "festevam@gmail.com" , "kernel@pengutronix.de" , dl-linux-imx , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH net-next 1/3] dt-bindings: net: fsl, fec: add "fsl, wakeup-irq" property Message-ID: References: <20210805074615.29096-1-qiangqing.zhang@nxp.com> <20210805074615.29096-2-qiangqing.zhang@nxp.com> <2e1a14bf-2fa8-ed39-d133-807c4e14859c@gmail.com> <498f3cee-8f37-2ab1-93c4-5472572ecc37@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > 1) FEC controller has up to 4 interrupt lines and all of these are routed to GIC > > interrupt controller. > > > 2) FEC has a wakeup interrupt signal and always are mixed with other > > interrupt signals, and then output to one interrupt line. > > > 3) For legacy SoCs, wakeup interrupt are mixed to int0 line, but for i.MX8M > > serials, are mixed to int2 line. So you need to know which of the interrupts listed is the wake up interrupt. I can see a few ways to do this: The FEC driver already has quirks. Add a quirk to fec_imx8mq_info and fec_imx8qm_info to indicate these should use int2. or Documentation/devicetree/bindings/interrupt-controller/interrupts.txt b) two cells ------------ The #interrupt-cells property is set to 2 and the first cell defines the index of the interrupt within the controller, while the second cell is used to specify any of the following flags: - bits[3:0] trigger type and level flags 1 = low-to-high edge triggered 2 = high-to-low edge triggered 4 = active high level-sensitive 8 = active low level-sensitive You could add 18 = wakeup source and extend to core to either do all the work for you, or tell you this interrupt is flagged as being a wakeup source. This solution has the advantage of it should be usable in other drivers. Andrew