From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 31 Oct 2006 08:49:29 +0100 (MET) Message-ID: <45470006.1020004@bplan-gmbh.de> From: Nicolas DET MIME-Version: 1.0 To: Benjamin Herrenschmidt Subject: Re: [PATCH 1/2] Add MPC52xx Interrupt controller support for ARCH=powerpc References: <200610292310.k9TNAHXZ013852@post.webmailer.de> <1162268830.25682.271.camel@localhost.localdomain> <4546F68C.6070900@bplan-gmbh.de> <1162279296.25682.297.camel@localhost.localdomain> In-Reply-To: <1162279296.25682.297.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="------------040705060507010102070007" Cc: linuxppc-dev@ozlabs.org, sl@bplan-gmbh.de, sha@pengutronix.de, linuxppc-embedded@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --------------040705060507010102070007 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Benjamin Herrenschmidt wrote: >>> set_irq_type() does nothing if you haven't hooked a set_type callback to >>> your irq_chip and none of yours does so just drop it for now and look at >>> how this is done in mpic or ipic. If you actually want to implement >>> proper set_type (which you might need to do if you want that code to >>> work without having the firmware pre-initialize interrupts with the >>> right type at boot), you probably want to set the handler in >>> set_irq_type(). >>> >> Our Firmware wil lalways preinit correctly the hw. Moreover, chaning the >> setting would propably rpevent PCI IRQ (as PCI are IRQ[0-3]. >> >> So I should just remove the set_irq_type() call? > > Just remove it for now. I'll look into making things better later. Your > firmware might setup the stuff properly, Removed >but others will probably not > and this driver will be used by others :) > In this case: shouldn't the platform init correctly setup the hw instead of the Firmware? Regards, --------------040705060507010102070007 Content-Type: text/x-vcard; charset=utf-8; name="nd.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="nd.vcf" begin:vcard fn:Nicolas DET ( bplan GmbH ) n:DET;Nicolas org:bplan GmbH adr:;;;;;;Germany email;internet:nd@bplan-gmbh.de title:Software Entwicklung tel;work:+49 6171 9187 - 31 x-mozilla-html:FALSE url:http://www.bplan-gmbh.de version:2.1 end:vcard --------------040705060507010102070007--