Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933430AbbGVINw (ORCPT ); Wed, 22 Jul 2015 04:13:52 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:34996 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756131AbbGVINs (ORCPT ); Wed, 22 Jul 2015 04:13:48 -0400 Message-ID: <55AF50B3.5090804@linaro.org> Date: Wed, 22 Jul 2015 16:13:39 +0800 From: Hanjun Guo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Lorenzo Pieralisi , Marc Zyngier CC: Thomas Gleixner , Jiang Liu , Jason Cooper , "linux-acpi@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Tomasz Nowicki , "Rafael J. Wysocki" , "suravee.suthikulpanit@amd.com" Subject: Re: [PATCH 2/5] genirq: irqdomain: Remove irqdomain dependency on struct device_node References: <1437473280-11431-1-git-send-email-marc.zyngier@arm.com> <1437473280-11431-3-git-send-email-marc.zyngier@arm.com> <20150721175623.GA32187@red-moon> In-Reply-To: <20150721175623.GA32187@red-moon> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1224 Lines: 25 On 07/22/2015 01:56 AM, Lorenzo Pieralisi wrote: > On Tue, Jul 21, 2015 at 11:07:57AM +0100, Marc Zyngier wrote: >> struct device_node is very much DT specific, and the original authors >> of the irqdomain subsystem recognized that tie, and went as far as >> mentionning that this could be replaced by some "void *token", >> should another firmware infrastructure be using it. > > Yes, that's similar to the problem Rafael solved with fwnode_handle, > I do not know if we can extend the fwnode_handle to manage these > generic tokens too, but the approach you have taken seem the right > one to me (and you are doing this for components that are not really > attached to struct device so I am not sure the fwnode_handle approach > can be shoehorned to solve it). If I understand correctly, fwnode_handle is not better , since we need to update every caller of irqdomain functions as it's a new type of pointer, that's will be the big change, void * is just fine. Thanks Hanjun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/