Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1117226ybi; Fri, 21 Jun 2019 14:14:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqze/WKdJqafLtAXio5Dk9GyrH41tQvS3VSZp0Oq1zUa+94tOBUWdFHdEzwbhVXVjbhgyCnE X-Received: by 2002:a63:1d5c:: with SMTP id d28mr9950716pgm.10.1561151676017; Fri, 21 Jun 2019 14:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561151676; cv=none; d=google.com; s=arc-20160816; b=t5zuh8vfFkvne7F+ZefysOLkrsRnGkeQcqFxcaI5ZCH18lL5Qa6ifPBA69dvfzkvCv sx2jz+qjIZYqo9+H20hCk/bfRWUxLN/IR3f6WSa4/+vshprabYUqO2rY9QN2GcWnwylI gj+CxIQ/m3vMShD06+ZU/JnQ9qNGkHhhZw9Y8zacF/U8lec+fbONCYuRl5DS71zYLjFy rVe/vzXsgQ/RDz9VUWDNqGafLOgeQKx8bgsZCnbe1n+0t+yw/IQ7tFDpQcffHs2bA8DY ZkPG1TunfsDeOtrv8fjdbv8ZOpYeGkr30lDoSEIgN3wjJaq6W7VnkG36EYshs36/mhsU 7vWg== 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=6UjZ0O8uEN566jtBPBA/D+YZ85vJc4SWoHQwifCy5ZQ=; b=hpTwOEX5Vhl90wrXtNLwDR3stw02UeFo1o1UQTbOQLHunEE0imJdH1JLBDuwtV9xRH AjnRphagHL8wByIJOMXJT7IJVr1F9ChdKiaST1yaP+0fvOldV65CuALWZALyLKS88Cwe lzWr4RwcPagBnP2mf2nTZc4kBEnFgI5nXqMIQT4Z85IH0kREkAAj2vnxMizumCcB8aMB M7KQM8VHH5ZQjKtTYhdo5K7AYvZJMx+16Mgff7lhqFS+f1N0CBzZ/3iB2EQUoIQmQZOe 2x3+lIFm9lKqPwkGrMnftQgTPCrfcXGKhtzvaNHXs6PRXyRde0qaGOlZIe7Fj5i4hewI TkZQ== 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 u28si4057755pfl.61.2019.06.21.14.14.21; Fri, 21 Jun 2019 14:14:36 -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 S1726286AbfFUVOH (ORCPT + 99 others); Fri, 21 Jun 2019 17:14:07 -0400 Received: from sauhun.de ([88.99.104.3]:56086 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726237AbfFUVOF (ORCPT ); Fri, 21 Jun 2019 17:14:05 -0400 Received: from localhost (p5486CF54.dip0.t-ipconnect.de [84.134.207.84]) by pokefinder.org (Postfix) with ESMTPSA id 583FB2C077A; Fri, 21 Jun 2019 23:14:03 +0200 (CEST) Date: Fri, 21 Jun 2019 23:14:02 +0200 From: Wolfram Sang To: Fabrice Gasnier Cc: pierre-yves.mordret@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-i2c@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, marc.w.gonzalez@free.fr, fabien.dessenne@st.com Subject: Re: [PATCH v3] i2c: i2c-stm32f7: fix the get_irq error cases Message-ID: <20190621211402.GB950@kunai> References: <1560757981-10532-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="l76fUT7nc3MelDdI" Content-Disposition: inline In-Reply-To: <1560757981-10532-1-git-send-email-fabrice.gasnier@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --l76fUT7nc3MelDdI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 17, 2019 at 09:53:01AM +0200, Fabrice Gasnier wrote: > During probe, return the "get_irq" error value instead of -EINVAL which > allows the driver to be deferred probed if needed. > Fix also the case where of_irq_get() returns a negative value. > Note : > On failure of_irq_get() returns 0 or a negative value while > platform_get_irq() returns a negative value. >=20 > Fixes: aeb068c57214 ("i2c: i2c-stm32f7: add driver") >=20 > Reviewed-by: Pierre-Yves MORDRET > Signed-off-by: Fabien Dessenne > Signed-off-by: Fabrice Gasnier Applied to for-next, thanks! --l76fUT7nc3MelDdI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl0NSJoACgkQFA3kzBSg KbaKLg/+IDVBZI+FWBpYna0/CpvmO5Uyzx0xj2RFArNr4l7IySOTfA79vSKuZ+cx VB+ap4ihOQ5gta95Jt7ZFgHj1h81yy/5ER2C8yCbn9NNkv5NjF3HvVSNaolQuU4q LIDq5JjlKMOExTBuRFfDvDC4jnTAPZcIv9KfxsC98tK4u47jzh2GIAnrX/BjIydl khpnpg1KwbS52qFfm6OxxKtZBZrIJg42kEt7IH7AYG3IqpE52zO0Xg92e5HVdRJV KP/E13T5YZXONCzT8ZB4vYiPC0lpl3QFCEO1VpwVCTM/AqxTA573L9GOmoFurPra 6vkNeUgZdfBXvTvIQo1Qteuuim8NfpZMy/Q44WZUDNVG5VEGzlDFli3j3z5GON9r c0N1SbA9ev+U+4Lrw+6N+RLG3VKNiEAKLILKWzP3Kc4KOlRZDa6mxgTdHL3E9i86 stVEayxqkOZPiTtmb8AaJz513cWFMIlnqolWZqgl5hXL80JHE7lmebA7xC0GzN6z o8V33npjYNMPH8vaS4Fm+2Huo3q95A1DccuN3xqhx6WClG3vrpkImyBOKEla15NT Ox70qsmBi2q+rXdqcM/g5gaedc/568Le2FT/whNDxr3mJ8o6lGfwRDupZFKGN8Vm 8LJRUVAA5fokwSR9C1IJfHHJgGi47RA8dBJy3pLJWV4BbjrbGtg= =etZv -----END PGP SIGNATURE----- --l76fUT7nc3MelDdI--