Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp128822imu; Thu, 3 Jan 2019 15:39:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN5cpGdX1MgLEtqbOdtyj/3LvrQoiHI1oWb+bTm+75mhSdHcLPre1AlGLx6WqYf7ZzWLAWPR X-Received: by 2002:a63:4745:: with SMTP id w5mr19186177pgk.377.1546558791136; Thu, 03 Jan 2019 15:39:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546558791; cv=none; d=google.com; s=arc-20160816; b=n3RkxlldHe9JR4rAMftLE9RfE8cUh1p4cRNUcjctbn2JQwc1BqmbAXKt4n1tdvu0IQ 5wOaKRpDqGixm261AzudlqKQA6oFMmEbhKOgKzbihYsKw/6WNNSe1a1akuGpVt+EQOoc wI+1GuHz5wbX3l9twzKtJXT+52Msvybmq4RGhBNjsINqmJdWjlfqoyuUq8ZJ4S26Ctq+ 7aJCXDcvLoABWlMMZUbnXOkKwwHACVUmnjh2BO00G48kQ+QBAmhxlST1SyOio+rjVuBj FM3xPbGm3IpDPSqStQmbuzxJ9aAaadpX3bYIkilJRYk2QOfImRMQoeL5NMKCM3MCIT/c jyFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=6DZzW66VVPYYwKb351IgdGl4LhNRguOE3nUFacZsWeU=; b=HvtaSDbfuWP2gxbi2vRMPZLv7wp4ZMzjxMkB2fXvj4/OT46wFbFhVb6pZLhAKXnbQK 8WPDZPD3g32fG1n5MaIUDdEfV0QcLv3QWzYHvTnt4RxqVvP9IFk1v6HqrVTDrL8Hr71C nZ93fqRNofDPKWSF+lm89cc95v8WC59WKOdZfRp9fFzZsJWHVzNaxl2VaGCinqtLg0s4 PATuQ6JALfYFQxjtAHBcek0OfhKFrjA5VzhLqa4C6MbqcANWzruGdW8njDSpu28lYVEa d8/R2C3Dwo1ktW1XGdssT7/jC8BjJooA4j6wMmnmiVvJLP9n39pIyIWVYjv2tgx2z1I9 c/Ow== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 72si1370153plb.224.2019.01.03.15.39.36; Thu, 03 Jan 2019 15:39:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731056AbfACRjJ (ORCPT + 99 others); Thu, 3 Jan 2019 12:39:09 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:41628 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730952AbfACRjI (ORCPT ); Thu, 3 Jan 2019 12:39:08 -0500 Received: by mail-oi1-f195.google.com with SMTP id j21so28297779oii.8 for ; Thu, 03 Jan 2019 09:39:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6DZzW66VVPYYwKb351IgdGl4LhNRguOE3nUFacZsWeU=; b=mcm8OqJcro+0QRRSV/mNmAKEIkg16D/5QgTycukMzTot8v0dZIDZdMuqQtdfmpjAjg XZmUcZ1XOwfQUjuh3HDJLL5mLqBVTBLkCA7WtKFrsq3P4vbUQ7zdz1zGvDKF8xdWZulI LBy+hs/Vqxt6EnwUV8/AA8j9fzVXRPwDfN9l2rdY2/sR5N314pQmnAy+QGLgaHg9OfW6 s4bb1D01TteILJt2cnOS0rFHk86UR0GLE7tYKLnAFlFixagPK5luKWpxVwGZBBUSwfUO 8Xfs253asZB8pLhReueu/YtCWOZONsQLhp3j2pJ/qWW8Pf+bBR+uDuZDXmPo5ExybKRx wjnw== X-Gm-Message-State: AA+aEWZyjVnGbzsKfZTBiLhCZwRiMRAPzCTBCL4lIFrkncohtMNq0KjY 9ydaiuJeis88Yo8nqhdpemR+SBMTz0sKzLH9bBk= X-Received: by 2002:aca:195:: with SMTP id 143mr30684057oib.322.1546537146567; Thu, 03 Jan 2019 09:39:06 -0800 (PST) MIME-Version: 1.0 References: <20190102185106.56913-1-swboyd@chromium.org> <154653191998.15366.14229484132412159772@swboyd.mtv.corp.google.com> <154653631992.15366.980047163353936345@swboyd.mtv.corp.google.com> In-Reply-To: <154653631992.15366.980047163353936345@swboyd.mtv.corp.google.com> From: "Rafael J. Wysocki" Date: Thu, 3 Jan 2019 18:38:55 +0100 Message-ID: Subject: Re: [PATCH v3] driver core: platform: Add an error message to platform_get_irq*() To: Stephen Boyd Cc: "Rafael J. Wysocki" , Rob Herring , Andrzej Hajda , Andy Shevchenko , Bartlomiej Zolnierkiewicz , Mark Brown , Greg Kroah-Hartman , javierm@redhat.com, Linux ARM , Linux Kernel Mailing List , Russell King - ARM Linux , Marek Szyprowski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 3, 2019 at 6:25 PM Stephen Boyd wrote: > > Quoting Rafael J. Wysocki (2019-01-03 09:22:56) > > On Thu, Jan 3, 2019 at 5:12 PM Stephen Boyd wrote: > > > > > > I don't see much benefit to seeing -ENXIO or -EINVAL printed here, so I > > > left out the error code. > > > > OK, so the value of the message is to tell the user that some driver > > asked for an invalid IRQ, right? > > Yes. OK This can help to reduce code duplication a bit, so Reviewed-by: Rafael J. Wysocki for the v3.