From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752062AbcCAEne (ORCPT ); Mon, 29 Feb 2016 23:43:34 -0500 Received: from down.free-electrons.com ([37.187.137.238]:55803 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750920AbcCAEnc (ORCPT ); Mon, 29 Feb 2016 23:43:32 -0500 Date: Mon, 29 Feb 2016 20:43:28 -0800 From: Maxime Ripard To: Henry Paulissen Cc: linux-sunxi@googlegroups.com, Linus Walleij , Chen-Yu Tsai , Hongzhou Yang , Fabian Frederick , Patrice Chotard , "open list:PIN CONTROL SUBSYSTEM" , "moderated list:ARM/Allwinner sunXi SoC support" , open list Subject: Re: [PATCH 1/2] pinctrl: sunxi: Remove non existing irq's Message-ID: <20160301044328.GE8418@lukather> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3O1VwFp74L81IIeR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3O1VwFp74L81IIeR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 29, 2016 at 12:13:26AM +0100, Henry Paulissen wrote: > While I was testing irq's on the cubietruck I found a couple of > not working irq pins. Further diving into the problem it opened > up a mess called "manual". >=20 > This so called manual (A20 user manual v1.3 dated 2014-10-10) says: >=20 > Pin overview: > Page 233: EINT12 is on pin PC19 mux6. > Page 236: EINT12 is on pin PH12 mux6. >=20 > Now, it is a bit strange to have the same IRQ on 2 different pins, > but I guess this could still be possible hardware wise. But then: >=20 > Pin registers: > Page 253: EINT12 is *not* on pin PC19. > Page 281: EINT12 is on pin PH12. >=20 > The manual is so contradicting that further tests had to be made > to see which of the 2 statements where correct. >=20 > This patch is based on actual outcome of these tests and not what > the manual says. >=20 > Test procedure used: >=20 > Connect a 1 pulse per second (GPS) line to the pin. >=20 > echo pin### > /sys/class/gpio/export > echo in > /sys/class/gpio/gpio###/direction > echo rising > /sys/class/gpio/gpio###/edge >=20 > Check /proc/interrupts if a irq was attached and if irq's where > received. >=20 > Signed-off-by: Henry Paulissen Acked-by: Maxime Ripard Thanks! Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --3O1VwFp74L81IIeR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJW1R3wAAoJEBx+YmzsjxAgD4oP/1hkgkMrYw/Y6LEHV1Wz3r0C nCJGrfnENl+rqSsPO3gl47NqTY6Jwz5a6QTV2TZXoevj1pcggSXItR/4ye/Fad6H TisRq8p1PhjlV0ZuvwWXOkPLWGRY8dWQTCiTvei/Xe+e1z+AtAVHkByMBxUQeOGW +DmTfFnPIsRIrdfZmACWcMFwN92Z8SlvxLUet9akapaIS+iF+Bz4CCs7zCOMKlip RoqZ4Kw1Gm06QjwIra8S4y9MsVvqzDacvZFDd09yw2JyNY31dMIColQJ/f8g8q5w l7ljy46N7o81bmy9I8fdx2PuvEeH45nlJrGfC6y930XXDQ9McKqptso/Agv5TLH3 GkhkOKFBL7GKZscRRmPPubTEPjs5rOUalVpDzSy2wPSXvc3Q2bSqjIxbJmpG0knu FTlOFhJDWBuDv1zFOeoO1w0phA8xtPezhKNai9/FdivqpN/oxt/MnSIQQxNv01qo +yMMeMw3THiuHMjhNXXixB+PkvV9PQL+bd2m4tBSH/OTleSf8aqFBtUWI0WYQmI7 VmP/lzUU7g3B8zyGsYK38a+yWo9bo5V2QwTBDzjQhSwsZWqaVvmVuTKyHAMaImQu BppKrDXO14ZsDHqRB6rjcg7w/jBtd/mJ6qzPgBJdgj3nvvbtM05fVGq4NPJ71VL0 n/scFHGbzDFsynzmYbWE =3CaS -----END PGP SIGNATURE----- --3O1VwFp74L81IIeR--