Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp153620ybn; Thu, 3 Oct 2019 03:07:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/oQJ86kjbo0C4VyaXXlkXco1cP45b7UGUXfhIxbb68B4GKl9LcdTQEjTNWee3x1ufTO9b X-Received: by 2002:a50:9e08:: with SMTP id z8mr8681506ede.305.1570097224167; Thu, 03 Oct 2019 03:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570097224; cv=none; d=google.com; s=arc-20160816; b=SC4NfrGikLe2VR5+QXVoHAVkxoU61Phu59yTKQPHDdwi4+cJUJW9lRQWU6KSoKeVIE hgsrVuAG/hco1idC30zaoBA88F1OyItVZPpGyv2AanD0HF8mJnNFRGAvQe/aNDG3/E6t qeUfij449O1Q20NBwG35BSHTKTu2Ir9M39D/6KuMnSyO5t3icQCmYvUo4b1dgJobrPEH GIYguDXUT4XIRu0scF9J6s3wS/6jomQdAU5hAQ/ntbHmNALcEUGHNX5FvQ1ZST984oVR g03V6G8hq86DlvSPg4AgPJ8hfqPavOAtwagypAlY/jrjCJKp3lD8fmLgFKyYJOOIwutG UOWA== 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:dkim-signature; bh=L9j8LD9n1/rnTvXeM15o45g67BHvuZ5Bz7byS7S6kVc=; b=eGK2pogIm5hAtpef2LKyZ5hCWGw9bTMn2LjpMQNKZ/4MT3qFzTjNn2EQmx8ibZmibU wAXp8uHYicSGOq3QfTXTBZZsS/vtQwzkX44bRTiujyVwlzQ7ZLArguJL3NA38X15AbJv DiQPbAqZYp2CHDOmjIOX7niyTfjayxJuw0kemJ+oZ3pG0HQbBzPJpPN/IGTJL4Aw2BFW MRAhNng3VQwpB5X0hcKHLATqjbIe5w+z9roBHrwxCGmzQRhXuDCeTf2kc0OEiOvQbOU5 HaCllqtL816/AZBze3JPqXoo11p7ztlg4Cm7C5TPX0glRSFKhKVMS07GE+PAGdn1N5PC jiXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZDwNgTSk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i33si1143044eda.205.2019.10.03.03.06.29; Thu, 03 Oct 2019 03:07:04 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=ZDwNgTSk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729795AbfJCKCQ (ORCPT + 99 others); Thu, 3 Oct 2019 06:02:16 -0400 Received: from mail-vs1-f65.google.com ([209.85.217.65]:40681 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729779AbfJCKCQ (ORCPT ); Thu, 3 Oct 2019 06:02:16 -0400 Received: by mail-vs1-f65.google.com with SMTP id v10so1273990vsc.7 for ; Thu, 03 Oct 2019 03:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=L9j8LD9n1/rnTvXeM15o45g67BHvuZ5Bz7byS7S6kVc=; b=ZDwNgTSke7WQvmLJiRzveQ1bKNNP6yyU67i3nwD4J5JDwu+g7sfX2+Q2M9Q1eUSrAU bmJoF+j1vbH5mci4/tcG+b2ZIkCFUVJwEzc6jWSSmoZzLZezzLdzfwzs5RCNuMp9lBUk lV7ECYvYJGT4g3nILS711DFDgTCTKkl7yzyprXlgnwnSbKC1h8R7/bShr9pZZ81K3xpU +G5oQ7XJuTu0hcPbta6kdGA5PCZU27uFWtR88ol+XoUbYhN0RT9wXY2ZP29hBy6EyBDA VDXP/j92bz+JwyACQ0AffJE4cJFJKPSJyyty2bwZmLYo1K4t0gjzP+3sU2wpcDRZ2ffn bHZw== 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=L9j8LD9n1/rnTvXeM15o45g67BHvuZ5Bz7byS7S6kVc=; b=uJiKJhUGGCN1PvgkeOtg+d+h1QJVqPPRA9XnhS75r2+iKPtrg+IteMrQho5IfeqcWm PzSz9KGww1DolbTT3W4bMyqfJzyIaNyMU7WtaT8HsuEYifnw7DeJmZfnMyQvV6AcSVge GaI4ga19r/DEpTNvAe/dOC4snfyLSRUBOlQROBUmtkYDzCCrNVLUELIORNROa37NzPFx k2nJ98aFhu6d2lq7/nT0vfw1ZH+F8//CI2blKuaNtvkB0zbT2K78v8EQgc0liUZqFQaF MfCObqVS1j8nQKnq0Dt6SqoAIyvUiPUGTdpNGpMDmGMLZmhYLSl9W3cBICOXHH3Mhakz ictg== X-Gm-Message-State: APjAAAWdlPKvVIAE2DftF5DAMEsyas67TeWEi4Zw3Zq+8eHSp/JWhosJ LO71wRnB+McI/8aBUKTNYPIZEZl35QDovE2ChWpi5q9J X-Received: by 2002:a67:eb84:: with SMTP id e4mr4474520vso.165.1570096933748; Thu, 03 Oct 2019 03:02:13 -0700 (PDT) MIME-Version: 1.0 References: <20191001180834.1158-1-geert+renesas@glider.be> In-Reply-To: <20191001180834.1158-1-geert+renesas@glider.be> From: Ulf Hansson Date: Thu, 3 Oct 2019 12:01:37 +0200 Message-ID: Subject: Re: [PATCH] mmc: sh_mmcif: Use platform_get_irq_optional() for optional interrupt To: Geert Uytterhoeven Cc: Wolfram Sang , Jiri Slaby , Stephen Boyd , Greg Kroah-Hartman , Linux-Renesas , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List 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 Tue, 1 Oct 2019 at 20:08, Geert Uytterhoeven wrote: > > As platform_get_irq() now prints an error when the interrupt does not > exist, a scary warning may be printed for an optional interrupt: > > sh_mmcif ee200000.mmc: IRQ index 1 not found > > Fix this by calling platform_get_irq_optional() instead for the second > interrupt, which is optional. > > Remove the now superfluous error printing for the first interrupt, which > is mandatory. > > Fixes: 7723f4c5ecdb8d83 ("driver core: platform: Add an error message to platform_get_irq*()") > Signed-off-by: Geert Uytterhoeven Applied for fixes, thanks! Kind regards Uffe > --- > This is a fix for v5.4-rc1. > --- > drivers/mmc/host/sh_mmcif.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c > index 81bd9afb0980525e..98c575de43c755ed 100644 > --- a/drivers/mmc/host/sh_mmcif.c > +++ b/drivers/mmc/host/sh_mmcif.c > @@ -1393,11 +1393,9 @@ static int sh_mmcif_probe(struct platform_device *pdev) > const char *name; > > irq[0] = platform_get_irq(pdev, 0); > - irq[1] = platform_get_irq(pdev, 1); > - if (irq[0] < 0) { > - dev_err(dev, "Get irq error\n"); > + irq[1] = platform_get_irq_optional(pdev, 1); > + if (irq[0] < 0) > return -ENXIO; > - } > > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > reg = devm_ioremap_resource(dev, res); > -- > 2.17.1 >