Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp523002ybn; Wed, 2 Oct 2019 01:50:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFOf1QWlHWmgVdOWsI6SYeklyZjeBpOCJ6wYS63C7tvE0HWXDImIgo3uQrY/xeEj5w8FXs X-Received: by 2002:a50:d089:: with SMTP id v9mr2616440edd.54.1570006232630; Wed, 02 Oct 2019 01:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570006232; cv=none; d=google.com; s=arc-20160816; b=dK+7NpSIUMF/WXKb/fnBx2lkitR2ShxUTZ5awFz5wZYYBO48AMjiUiR6ZKWq51Zj7d 7ZpUisSIIvErUJDu6b96pm7q3FksLyR4Y1CxfewFwGfANwQZjDx5IJ/RLSCOWZfegYvZ S/UZXi2DQ3zlYKUhxeX7k5OQeGFRKiOHBoYyW2Wb6aWju8dyLd7138VHkX8KG0JwvFxw joK1PmfXzMHBpYEQ3m7y7vHbXeyWNhnbrRLbEjYl983VLXV1Ric0K+K8HxiW0c91KDGc RY/5WfknJC0Cv7e8FTR2OiepmdjpoO7y37CGPup4lN/cLErOyAP9BF3DWJ3WBn9GQxlr Ryiw== 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=5rmMZjLzTgSXHuoED+JLK4AhP32Rx0mAs0Il3/hNuw4=; b=aWox3dvy7U7wf575h72Ch1tF+kxUIKlHPHotyy+HRVwM2n8P5EjoBH2NjX8SYxT9/l oExwidvgq682eCBSeJ+IWkG6H9115AWudtKVlNCS4oZ7VjFVQyM/41jXe11K3nUl3vio tiMAUodzoVjPRQUidcaOqFLKKAS3unFsq5CFM7U0HrFuqMtLRjMMxA+AF1s5IQj3hXpY d24GuKQj73NFKWsHIOSMmoh6aAdBk0+UQ0Y+N9sEUVYetIFg6C8N0mcDynwEsvakSsOP 0vE37nMpgfELJnubCCAY3m0sFhXqRmZ5S1d2/YWNJAdqAbtGoQRbvJU1E9JHJxzjZnxv mKLA== 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 q9si290032edr.382.2019.10.02.01.50.08; Wed, 02 Oct 2019 01:50:32 -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 S1727472AbfJBICa (ORCPT + 99 others); Wed, 2 Oct 2019 04:02:30 -0400 Received: from sauhun.de ([88.99.104.3]:56604 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbfJBICa (ORCPT ); Wed, 2 Oct 2019 04:02:30 -0400 Received: from localhost (p54B33447.dip0.t-ipconnect.de [84.179.52.71]) by pokefinder.org (Postfix) with ESMTPSA id 846092C3720; Wed, 2 Oct 2019 10:02:28 +0200 (CEST) Date: Wed, 2 Oct 2019 10:02:25 +0200 From: Wolfram Sang To: Geert Uytterhoeven Cc: Ulf Hansson , Wolfram Sang , Stephen Boyd , Greg Kroah-Hartman , linux-renesas-soc@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mmc: renesas_sdhi: Do not use platform_get_irq() to count interrupts Message-ID: <20191002080225.GA1388@ninjato> References: <20191001180703.910-1-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <20191001180703.910-1-geert+renesas@glider.be> 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 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 01, 2019 at 08:07:03PM +0200, Geert Uytterhoeven wrote: > As platform_get_irq() now prints an error when the interrupt does not > exist, counting interrupts by looping until failure causes the printing > of scary messages like: >=20 > renesas_sdhi_internal_dmac ee140000.sd: IRQ index 1 not found >=20 > Fix this by using the platform_irq_count() helper to avoid touching > non-existent interrupts. >=20 > Fixes: 7723f4c5ecdb8d83 ("driver core: platform: Add an error message to = platform_get_irq*()") We will see this fixes line a lot :/ > Signed-off-by: Geert Uytterhoeven Have to admit, though, the new code looks much better. Tested on a Renesas R-Car M3-N: Reviewed-by: Wolfram Sang Tested-by: Wolfram Sang --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl2UWY0ACgkQFA3kzBSg Kbbu/Q/7BJHrrJMsb89JaYmOqiJQHsO2CvYEyzPFP17WQExQ2jxYjsILSTqWe0hW +TvsDMcZ4FSoceakPqdsdm+J0m0qDs6seN4jll4LRAhHz3KYN9CXlyly9xnaPt94 HpcfzFHy2DGlewIororso78IuY4eMlogf5fsh/U8gimj4I4w7U8onDsUcGqAkHwt spb7AjjZVGl9fCWSuSrHg0KvilQ2WvZGIi1grJayYWDRU5JEy5CbxJJx+BUrWOuD g/kUjyXXUqCluSq4A9jQkETP/vQfLABmeQ1N32RWeQNmQGY0BN9jMmE4R4scOsyt 2rdxlgWKXzNx16xdASVvxth17gfv0paVu5FLA8Z/2XnV5loN3XASRPzdr7ULyKXK iRg3o53B82xVbiyMMMhvxwQ1XDKRh2MN/ouyWH/hoO9YD83x2SGy9Fln8ayK6rCW dAjHSBXsU9RuDAq6PuWZN+NbNt3a/99U2UugvcALABcNkr4qccgboW41ga9Otbah KAq5bfwywi8xYex1sNAW4HmSYpfbdM1lOEWJfHzgYSYIr10Gqv7en7zKkDpZK8gl iC7zpqhy7Mjz31FtBz1hWDskTQfg2TnB+YWmCDGNpKYxI0cF8po9AHWIiEuWF3af /qqfpT+frtN2dGACSDBFvDq0k9ncc1oEDSvs4/CI+gjSi19dzkI= =+hQN -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--