Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp353578ybi; Fri, 31 May 2019 02:32:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyacbegPtb/++7Btiu4ECwe2b8Ye11IRqsVCH5vrNtpodhDtBn7ebkff7NsvuhTNzaCgBxR X-Received: by 2002:a17:902:f085:: with SMTP id go5mr7654032plb.53.1559295138833; Fri, 31 May 2019 02:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559295138; cv=none; d=google.com; s=arc-20160816; b=hGs2OXumsEM7ZD8Zr1Zxs6iPJucf+o9JpxHSSSfGifmI5e404jQ1yu3zrV9dv1lvhP I+C3R5YC41aEaVa7s9L6Tk3py/nnP8jDfi9x6ZwA3iMqQohk+E/UZjUZQ/xGFi6ntZPF /cVWdIQZTvFwjak69Or5/OdRHPIzT8nThW4018ALtxDBOn4M7hSaNp9vKKPboY+L1oH/ yhOsM8xfAY87FzBJnr/mDsiZtFbfSsQCObLCsA6HVpkIZ9WGhlqWkWObk7sRiMHJRKh4 2mOz0T7F4C8vVsg0FEFZLzzkInLgRCjhMbpkv8FqbGWttOpXfNiHmvaolm96MW/rdTA7 /hUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+xcGgwl8UwYvb0DotG9wvp6i+0kAuqEKcFWpghApE10=; b=PtW3jlmjsL24C5cv/zgntslSdBLXHLKpkAOB3j7IMjXsNnxnP5yBew7CdSfvMQ6J3I CXWazsUtbeShY5ntB0p8MqQyLz8HzUGPIKfB5txh6zw/Km36gOfscaRVa+Ir9J7W1q1V OuC9zrD9Qx0Z/oT5ll2GvmdNEWNswH44t1Li/r7CM0Qvv+7KeH1BEMGDaT+b+Do3FNYy xPbxAQisj1LiubzgWp/uaU/IbfWlAXBfAkyr3OUxyGwsBQAwSgo0xJt+V35gDneBARwA 9HcgVHlGli+zo9ERNDdSGvyTDPGDkewGl3UJrlHoZH3cCOcEt/RuRtDNcHkrmP0L/JiW ++CA== 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 a2si4223920pls.118.2019.05.31.02.32.02; Fri, 31 May 2019 02:32:18 -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; 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 S1726917AbfEaJaz (ORCPT + 99 others); Fri, 31 May 2019 05:30:55 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:51248 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbfEaJaz (ORCPT ); Fri, 31 May 2019 05:30:55 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 3CE6F80225; Fri, 31 May 2019 11:30:43 +0200 (CEST) Date: Fri, 31 May 2019 11:30:52 +0200 From: Pavel Machek To: Fabien Dessenne Cc: Hugues Fruchet , Mauro Carvalho Chehab , Maxime Coquelin , Alexandre Torgue , Pavel Machek , Hans Verkuil , linux-media@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Sasha Levin Subject: Re: [PATCH] media: stm32-dcmi: fix irq = 0 case Message-ID: <20190531093052.GA23111@amd> References: <1559294295-20573-1-git-send-email-fabien.dessenne@st.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline In-Reply-To: <1559294295-20573-1-git-send-email-fabien.dessenne@st.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2019-05-31 11:18:15, Fabien Dessenne wrote: > Manage the irq =3D 0 case, where we shall return an error. >=20 > Fixes: b5b5a27bee58 ("media: stm32-dcmi: return appropriate error codes d= uring probe") > Signed-off-by: Fabien Dessenne Acked-by: Pavel Machek Reported-by: Pavel Machek :-). Pavel > +++ b/drivers/media/platform/stm32/stm32-dcmi.c > @@ -1702,7 +1702,7 @@ static int dcmi_probe(struct platform_device *pdev) > if (irq <=3D 0) { > if (irq !=3D -EPROBE_DEFER) > dev_err(&pdev->dev, "Could not get irq\n"); > - return irq; > + return irq ? irq : -ENXIO; > } > =20 > dcmi->res =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlzw9EwACgkQMOfwapXb+vI91gCgrymhw+fLQG9ycygMMLdOh9Mv Ao8AoKLSVLOH71CRZXNcxqg8QDUQpczh =7mwO -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv--