Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp3659926pjo; Wed, 26 Feb 2020 14:32:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyEgUyFoqWRJwovWVsMQGyrptXXmsoeQtNOpg4KeoN1GAZ6Be9VbRXwMqws4CfOLCKjMRE4 X-Received: by 2002:a05:6830:16d0:: with SMTP id l16mr877965otr.83.1582756378912; Wed, 26 Feb 2020 14:32:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582756378; cv=none; d=google.com; s=arc-20160816; b=oR+Pr3MHpkvQ6PrPa/B/x2TuuwiR5cy9vFSgQfTjiH6Rxm6gge8Wn/qPNAezmLG3Xy b7hikbOYgtowGmhZjZCDis8JdmDIZYP/hS3lSnOyXkzpfhufJPTlYQg984h5DiyqSYeG SszeYFhxoLHlnzZH0nKtRmnet4OPGlRcfAKMhzH4/J8RhYR7S0yUDLI5pQ4grqzrwpF8 7WH2S+k+gs90mm2WJfkk4wNMCwA6RQVnfAM0g1rNTsBoM/KcvjTiMenF3aQVhe6JkAjv fNRwtMCuq1TFnBCYZn+BaMAZsxpzJKtHhlKwnAd4yTFyncDvXLCjiLZXmt1LeQmwEXgq SGJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date; bh=YakiI8BFzsu0aUUzynpHmiQIrN3YnxW4jmbBvHvZO1A=; b=bYECyZdZ4AoIftk8FOPn4yK7jKAOfRKTnsKOhQk5gxyVyp1ebdB8n4YMrG7haLGgZx fLSHgxMnrvCn36Hr9Ag/de/vSJkJbYTBYcKI17a1byBR5eNE0o5Dw0Ef0KxKSnEUImc6 Djm+EXnOVDkmNROJf5+RphTxivj3gNtc8FRgHC1FMFOvLiZt69DjU+wx24YXtEPMGvt9 +/KzXhBQwgWtFDxsQtl7BSxlqps2vvWY3xZK9B87S3tdhBBZTFsMj7Yfd29wytEQPF7o rO2SCzqEd3/cqul9+7aqjQnHPSqt7mYLGJLNfYX9dKwFE/diR7fQ23WleJFHqgT00HBw JZVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t26si260953oic.169.2020.02.26.14.32.46; Wed, 26 Feb 2020 14:32:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727909AbgBZWbp (ORCPT + 99 others); Wed, 26 Feb 2020 17:31:45 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:45530 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727709AbgBZWbo (ORCPT ); Wed, 26 Feb 2020 17:31:44 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 2482A2A0A1; Wed, 26 Feb 2020 17:31:42 -0500 (EST) Date: Thu, 27 Feb 2020 09:31:44 +1100 (AEDT) From: Finn Thain To: Greg Ungerer cc: afzal mohammed , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Geert Uytterhoeven Subject: Re: [PATCH v2 06/18] m68k: Replace setup_irq() by request_irq() In-Reply-To: Message-ID: References: <00b0bf964278dd0bb3e093283994399ff796cca5.1582471508.git.afzal.mohd.ma@gmail.com> <73c3ad08-963d-fea2-91d7-b06e4ef8d3ef@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 26 Feb 2020, Greg Ungerer wrote: > On 26/2/20 4:39 pm, Finn Thain wrote: > > > > If -EBUSY means the end user has misconfigured something, printing > > "request_irq failed" would be helpful. But does that still happen? > > I have seen it many times. Its not at all difficult to get interrupt > assignments wrong, duplicated, or otherwise mistaken when creating > device trees. Not so much m68k/coldfire platforms where they are most > commonly hard coded. > I was thinking of end users and production builds. You seem to be concerned about developers. Catering to developers argues for pr_debug() here, if anything. You say you've seen -16 errors "many times". Have you also seen -22? Did the ability to distinguish these values help you to fix your device tree? > > ... > > > > BTW, one of the benefits of "%s: request_irq failed" is that a > > compilation unit with multiple request_irq calls permits the compiler > > to coalesce all duplicated format strings. Whereas, that's not > > possible with "foo: request_irq failed" and "bar: request_irq failed". > > Given the wide variety of message text used with failed request_irq() > calls it would be shear luck that this matched anything else. A quick > grep shows that "%s: request_irq() failed\n" has no other exact matches > in the current kernel source. > You are overlooking the patches in this series that produce multiple identical format strings. And the present lack of consistency isn't a great argument for more inconsistency IMO.