From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRNqw-0004QE-So for qemu-devel@nongnu.org; Tue, 09 Sep 2014 12:01:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRNqp-0005Tu-8N for qemu-devel@nongnu.org; Tue, 09 Sep 2014 12:01:10 -0400 Received: from mail-la0-f46.google.com ([209.85.215.46]:48805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRNqp-0005Tj-2d for qemu-devel@nongnu.org; Tue, 09 Sep 2014 12:01:03 -0400 Received: by mail-la0-f46.google.com with SMTP id pv20so19939087lab.33 for ; Tue, 09 Sep 2014 09:01:01 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <540F2325.3070009@linaro.org> References: <1410249273-6063-1-git-send-email-eric.auger@linaro.org> <1410249273-6063-3-git-send-email-eric.auger@linaro.org> <540EDECB.1000801@redhat.com> <540F2325.3070009@linaro.org> From: Peter Maydell Date: Tue, 9 Sep 2014 17:00:41 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v3 2/6] hw/arm/dyn_sysbus_devtree: helpers for sysbus device dynamic dt node generation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Auger Cc: Joel Schopp , Alex Williamson , Kim Phillips , eric.auger@st.com, Patch Tracking , Marc Zyngier , manish.jaggi@caviumnetworks.com, Will Deacon , QEMU Developers , Alvise Rigo , Bharat Bhushan , Alexander Graf , "kvmarm@lists.cs.columbia.edu" , Antonios Motakis , Stuart Yoder , Paolo Bonzini , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Christoffer Dall On 9 September 2014 16:56, Eric Auger wrote: > irq_start: needed because when the "interrupts" property is set for the > leaf component the irq number is irq_start + > object_property_get_int(obj, "irq[i]", NULL) > irq[i] being in [0, params->platform_bus_num_irqs] > > intc: this was in case the leaf component would use "interrupt-parent" > prop. I miss experience on device trees and I don't know if it make > sense the leaf component uses a different interrupt controller than the > parent platform bus or if such property is mandatory in some cases. > Maybe not needed indeed. Somewhat tangential, but for passthrough devices how do we decide whether the device tree node needs to mark the interrupt as edge or level triggered? Presumably this is going to be a "depends on what the passed through hardware is" thing... -- PMM