From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2284830CD88 for ; Fri, 19 Sep 2025 14:40:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758292817; cv=none; b=LtauAwSPt3TkvHwT9yhd82huOoq6v1jVV1y5idiL0MLB3e46eLapg4QYV4VuEQmbVF7Itmv4qE8kfEDELX/Q993Lpc20xIKDJoo8wxMGyW3k69ge7mWIzW53QhHtJK/A/fkGWQa1qC/+4hRxlNJLl8eLU3V24rZw8bYz70pAWcI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758292817; c=relaxed/simple; bh=OuJgZQPrT3qPzmfLiDjXnFf/ZhzJWaKiOrvxB6TEg88=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VwKwU7BLeoadtX/+TZFIj33H2ys9yGY3OM8sIgoUcSHCY79el7esAG8z52AEi253z0XEGDNIHWR+tP5HEdpduI7xueeHIPjBnR0rvpz56QYo9z00ihwVK5dgkXPmGZnDmwVCpR2GFHmm2Ks51vDt/uWD7gnBUXuumU4cyz2lTmM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=I55mI9xr; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="I55mI9xr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=aMz2 qyB22U+lq9dp0GoWHHFUbASxQzpgfP2d3vrLpbs=; b=I55mI9xrPuMdiw8CbUpc UHHLhjyA3VGipimsoNw3xQU23RjmEEwVn568/Y+p5qc1qAbNmmnjT67UvFEVxRCn 6Ne84l//s1tgYF6ac4KNCB2uffZefoU/fwXg/vzWuxbAeBg92lwwlZ/QzreaSnSv Q/cVJuEBQWGecnbtodxT5+BN4BfEGtj2jfoJ8pDjAc6IY5T4nJ27oHt8FLJh022C ykx9F2FnLq8fYiusqfCmrCDOBSlqC/bA40aQlnux6JWCfKVtRGcMaHhxlCoTAq8O VO0IzwZ/MDLP+t+gnxFIP8Mzv0BtJzto7+yhCOvtZf2MAQjHiKf3uBjGk/7+wB0l FA== Received: (qmail 3950640 invoked from network); 19 Sep 2025 16:40:07 +0200 Received: by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 19 Sep 2025 16:40:07 +0200 X-UD-Smtp-Session: l3s3148p1@gFAqcig/VlJtKPID Date: Fri, 19 Sep 2025 16:40:06 +0200 From: Wolfram Sang To: Herve Codina Cc: Thomas Gleixner , Hoan Tran , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Saravana Kannan , Serge Semin , Phil Edworthy , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Pascal Eberhard , Miquel Raynal , Thomas Petazzoni Subject: Re: [PATCH v3 7/8] soc: renesas: Add support for Renesas RZ/N1 GPIO Interrupt Multiplexer Message-ID: References: <20250918104009.94754-1-herve.codina@bootlin.com> <20250918104009.94754-8-herve.codina@bootlin.com> <20250919151448.14f8719a@bootlin.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t2Wx4OLguoeAkJCv" Content-Disposition: inline In-Reply-To: <20250919151448.14f8719a@bootlin.com> --t2Wx4OLguoeAkJCv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Rob asked to use only interrupt-map and use directly the interrupt-map index as > the hardware index: > https://lore.kernel.org/lkml/20250801111753.382f52ac@bootlin.com/ I agree with that. Currently an interrupt-map entry looks like: interrupt-map = <0 &gic GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, And the number after GIC_SPI determines the index register, no? Can't we simply say 'index = - 103' incl. some sanity checks? --t2Wx4OLguoeAkJCv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmjNa0IACgkQFA3kzBSg Kbbwaw/8CZKfPrxNCc2ATSpkToC1wxq06i0+Ll/FugMGgZywOxXD1l6fLSD1BURl Jilvgr1aGzxc0ywLsVk2zDnF/Eb92wqhumR9vmoM5HDC5qHJM23PkMikmUwOshe9 9Miy0CkZG/k43yTVyr5ygHBVJ7aXOcdrKzgOtgK74x0QjIUeyMhhBhcPTUUjMAKZ b4dl8FCM/uPu6rDa3DgB2FJyypJ910/ZXDQH2ANFnZjKiKXz8gnTzXjbrJsx03Yi lDwJDNuEadfa9MMpgvbqFSyvulAOhiSYPYfLTqIO9VlJ/FM+zTjY3KKzbnEdbfJo 7m25RnjEpM6gqVo8I+oM1dPwb/HTh68Btbxf1rgabSbd+bxjlXSyq9NUovjfJBey 3xdMkhV19hoUrxZcCeKixejRFkYqnHOkRp6qNhWq6m6Tw68PMqgy5JVfsn8r+ZNX lj3y9Y0RGYkYsBlZf40x7zZ5Y5O8bRAHQSv5X6htyfFIChERmX3uMVQbDKui9LHL Z1FQe+9OTPtRoHmHRvRRIOzy9sua9ufI6+8Anbis+L36+6Jjpfw7jrkYde7L866h WCIcYZWleAGPE3kjUZLdRLDzhauDV4nrA50T49x8ZPOCWis6xQsW/U8AWyszeHIr /JqTSH0H6nZbLTN0ETyt3la2PWTYOCTuHxyh0s667Llcy8y2MQI= =duSE -----END PGP SIGNATURE----- --t2Wx4OLguoeAkJCv--