From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0082.outbound.protection.outlook.com [104.47.37.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3t3GCb6jpTzDvkd for ; Wed, 26 Oct 2016 01:45:15 +1100 (AEDT) Date: Tue, 25 Oct 2016 07:44:59 -0700 From: =?utf-8?B?U8O2cmVu?= Brinkmann To: Thomas Gleixner CC: Zubair Lutfullah Kakakhel , Marc Zyngier , , , , , , , , , , , , Subject: Re: [Patch v5 04/12] irqchip: xilinx: Add support for parent intc Message-ID: <20161025144459.GF14444@xsjsorenbubuntu> References: <1476723176-39891-1-git-send-email-Zubair.Kakakhel@imgtec.com> <1476723176-39891-5-git-send-email-Zubair.Kakakhel@imgtec.com> <32f5f17d-7864-c782-7a6f-03660b7ab055@arm.com> <581adf44-388c-f8e5-8437-59d7ace2fa8f@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" In-Reply-To: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2016-10-25 at 12:49:33 +0200, Thomas Gleixner wrote: > On Tue, 25 Oct 2016, Zubair Lutfullah Kakakhel wrote: > > On 10/21/2016 10:48 AM, Marc Zyngier wrote: > > > Shouldn't you return an error if irq is zero? > > > > > > > I'll add the following for the error case > > > > pr_err("%s: Parent exists but interrupts property not defined\n" , > > __func__); > > Please do not use this silly __func__ stuff. It's not giving any value to > the printout. > > Set a proper prefix for your pr_* stuff, so the string is prefixed with > 'irq-xilinx:' or whatever you think is appropriate. Then the string itself > is good enough to find from which place this printk comes. Haven't looked at the real code, but is there probably a way to get a struct device pointer and use dev_err? Sören