Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933859AbcJYPAX (ORCPT ); Tue, 25 Oct 2016 11:00:23 -0400 Received: from mail-by2nam03on0055.outbound.protection.outlook.com ([104.47.42.55]:1199 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754865AbcJYPAS (ORCPT ); Tue, 25 Oct 2016 11:00:18 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; kernel.crashing.org; dkim=none (message not signed) header.d=none;kernel.crashing.org; dmarc=bestguesspass action=none header.from=xilinx.com; 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" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-22658.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(24454002)(377424004)(199003)(377454003)(189002)(33716001)(8936002)(81156014)(81166006)(93886004)(33656002)(87936001)(85202003)(356003)(85182001)(92566002)(106466001)(7846002)(586003)(83506001)(189998001)(9786002)(110136003)(63266004)(57986006)(76176999)(4001350100001)(76506005)(7416002)(77096005)(2950100002)(54356999)(6916009)(305945005)(4001150100001)(86362001)(50466002)(50986999)(2870700001)(2906002)(5660300001)(36386004)(4326007)(8676002)(9686002)(626004)(23676002)(11100500001)(1076002)(47776003)(18370500001)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR02MB1244;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;PTR:unknown-60-83.xilinx.com;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;SN1NAM02FT009;1:eoqFkQiFlUgMWsgdIFXBjohvGUB4Qor5cnOyQ0/VHkSP9d6Yn/W+ad+sRcirHYegBFZ35dzwmD/iGETNg2pRyfR8P+Hu9vPNI0ecVZd/QgqgnatiP3+zWCr2OQ6/dCaJYCJvP+A2QPYFZFaxRSW6WlBU8HPqFR1SA0LoDhmsglmBhQT46nUio1uknp1fvbnRLFbNTxWVPtkbfEMDSJG7jrO3Yr7DvmXsslLvKuXLWSi9nyqHwcE46Xfbj+BmC9+wt3j58P9LAMIUZNqQZXDidxJR+hXbXsU2+GBRH+0eHXgQkUuAWp1yFsrYbIHtoVl61B3gEIGnaRfWgZCYjIB0MjEIBrw3NOkijjbCkfpioE/KcVMBBxEw/oDuO+s/YY65v1Kzw08rdGqJ8ZLO/TAMj4HDBOkHqCtPw16HWb8bLqIJWhjHRUsOyFQSdeugcDqKARbFoQ1nXAdBeVfzWYmqOvSHwKfL/lKgCYGhDklmrwnnQZEKi6kBQplPtYWpVbCi0dQwyMweE4NtToSNLes4FacBibn6nM3UpJW+oyuKJkZapcAnHjhkz9o9D+1CRX6lENMMt/vt4UKb4fWv23ed0twvuYee40lqwLTbHQIs66WjCC6KC5l/eznrKf9d6Iqe X-MS-Office365-Filtering-Correlation-Id: 94b52f0a-ad4f-4208-0f75-08d3fce58551 X-Microsoft-Exchange-Diagnostics: 1;BY1PR02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A2e3MpZb2NkGHnCo+JCUx7pzD0YxvBmQeCV/E55TjZDoRUp+n6gFB5IN1Riwv9dkC/xkeorR1ptJKmAyUbfFgY/xU9oY3m/kQZ5Se/bp+NiOUQYEC49svrXLi X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(13015025)(13023025)(13017025)(13024025)(13018025)(10201501046)(3002001)(6055026);SRVR:BY1PR02MB1244;BCL:0;PCL:0;RULEID:;SRVR:BY1PR02MB1244; X-Microsoft-Exchange-Diagnostics: 1;BY1PR02MB1244;4:9Ky0FqGKH6vEg3tgPOoCuEvszjfdAwlaZf/E32eOOBst4f9Jg71XooXPf40/nKI0FHVjUMge1VUjA0M93Supekja4l6ZM+0bQbn0Gb0tvqGYMmmsSrow9vNTsvVmhRAx2V0xRk8myuCpLwLRH7EAhnENwvnhbefGjbi0EdHXX+G2V2KF7jT0BG6kulfQt0tKH5BzEscaa0rf+hXZckLFxx53Hjb2+MkDD2A4ynzdagemRXMiYq1+NId7Kfvb4rrtuK2ZgmJt4ckQbSYpeo9Yf0rU0J8Hr5ASoo4uuqpgcUhDikI/AsxiQ0+bllACq0lsZlOvpX96ncf8BzBZ7G1lUatpKBf9BSSABI2ILTtJNHTbL8KyMF0nqXP9aA8NBg0rr70gCy//gL8Gk6TZrtcyDmYRcXnyRvhqZMMRS5etvsGruBRm36meUQ+33Y5AYjH4H9MxkIYnXQxCMroxWqy7vS3qhUWF397pAdDo+A8+ThqHOi9epgEpb3N7EzKu6pEUL7oXO17Py3rDxwkjIedC8A== X-Forefront-PRVS: 01068D0A20 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTFQUjAyTUIxMjQ0OzIzOjhOWUlTWHFyQWZIZDlrMUcwaXhURzREUFFR?= =?utf-8?B?MnBCSEVkNDBBUkVwdTNsdWo4bUhQNXZnU1ZGYzlCS1A4S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AtCj9ooLEbLzApETZ3fvwo0VU5GFcRUTthIcA2KpAH6iOzU1HJoOP1qBX1F6/RIDNIZ5u7BGUybdWhfdDx4rFiI9zQ5JZE1sKP/Ip8VqppARPsfiBj3Gydrr+b33tktPN66lSyR/3Hvg8= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2016 14:45:09.8139 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR02MB1244 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 796 Lines: 22 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