Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751219AbeAAKKi (ORCPT + 1 other); Mon, 1 Jan 2018 05:10:38 -0500 Received: from mail-it0-f67.google.com ([209.85.214.67]:44611 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750937AbeAAKKf (ORCPT ); Mon, 1 Jan 2018 05:10:35 -0500 X-Google-Smtp-Source: ACJfBou6HTxXON0Mi4dE3s3698JSkhyg+kZkNRppp0y2RFdkcu70uEvsTU2HClM0rpyxhFRE0jZXrO3ViI9fFypYbSI= MIME-Version: 1.0 In-Reply-To: <20171231192354.GB20455@lunn.ch> References: <1514721520-18964-1-git-send-email-mw@semihalf.com> <1514721520-18964-6-git-send-email-mw@semihalf.com> <20171231192354.GB20455@lunn.ch> From: Marcin Wojtas Date: Mon, 1 Jan 2018 11:10:33 +0100 Message-ID: Subject: Re: [net-next: PATCH v2 5/5] net: mvpp2: enable ACPI support in the driver To: Andrew Lunn Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev , linux-acpi@vger.kernel.org, Graeme Gregory , "David S. Miller" , Russell King - ARM Linux , "Rafael J. Wysocki" , Florian Fainelli , =?UTF-8?Q?Antoine_T=C3=A9nart?= , Thomas Petazzoni , =?UTF-8?Q?Gregory_Cl=C3=A9ment?= , Ezequiel Garcia , nadavh@marvell.com, Neta Zur Hershkovits , Ard Biesheuvel , Grzegorz Jaszczyk , Tomasz Nowicki Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: HI Andrew, 2017-12-31 20:23 GMT+01:00 Andrew Lunn : >> * Modify way of obtaining interrupts - with ACPI they are resources >> bound to struct platform_device and it's not possible to obtain >> them directly from the child node. Hence a formula is used, depending >> on the port_id and number of possible CPUs. > > Hi Marcin > > I know nothing about ACPI. Is this limitation with respect to > interrupts fundamental to ACPI, or just that nobody has implemented > flexible interrupt support yet? I think it's a limitation, however it would be great, if some real ACPI expert was able to give an opinion here. I'd really prefer to declare IRQ's in the child nodes, but it seems not possible. > >> * Until proper MDIO bus and PHY handling with ACPI is established in the >> kernel, use only link interrupts feature in the driver. > > I think interrupts might be interesting with PHY devices, since they > are child nodes of the MDIO device.... > Apart from the phylink's SFP support that may require in-band management, it's an alternative to the normal PHY handling. Once MDIO bus + PHYs are supported for ACPI, phylib support will be used instead of the IRQs, so there should be no problem here. Best regards, Marcin