From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B6BE42ED876; Tue, 17 Jun 2025 15:57:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750175876; cv=none; b=nLmlQWA0b7xV1rAxL4PuTIUgepBqsnShBKzsnnmXX03iQYA+bGkW5ni2bQ42QNf6fBKm9I3OOAu+SRUhn2sx58olXu6HgLglniGeaTJ9gOmDtsM4Q6qqoHRGxnSBYeUTSNXHJ7fxjasLheSFFjvh9jVVnJMt9sk/8whSDLedG1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750175876; c=relaxed/simple; bh=7aIWQpK92g6NhykeyRJBLUN6XUaY/mhBJ0buvNzZiwA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ergkiOrpAhbmqAUGuxwLUu8xx8qVyY0RTK71JiA7mi7DMB0MUuyc/Rzqwk/LbUwWSI6AmCx8avGD9/yoH9DrM3JJNJzKTyeixnjKRN9MdLLRbIqW3JQ0hY5k7TWqyix3rIfat0L7lM9ORNOKskcbxzS1TIZ6iUmaoMfP+9cVsjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hUkUg8Ss; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hUkUg8Ss" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C25FCC4CEF0; Tue, 17 Jun 2025 15:57:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750175876; bh=7aIWQpK92g6NhykeyRJBLUN6XUaY/mhBJ0buvNzZiwA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hUkUg8SsxPCzZPvCf3a0tRJMP7UgWD9KRiwpi2ENOMGrQN+RE/jLb5MCEaFbG1LjC GA7zA5SbYp+4x3nxIAXDR8fDz8aQsfmQNvH+rINf/FwaKi/stT2W74siEih6M4wL1l Sd5cyEhx40xtXqQrVVZronJjovzqkqQfOldcdsMU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Wolfram Sang , Alexandre Belloni , Sasha Levin Subject: [PATCH 6.6 221/356] rtc: sh: assign correct interrupts with DT Date: Tue, 17 Jun 2025 17:25:36 +0200 Message-ID: <20250617152347.100287277@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250617152338.212798615@linuxfoundation.org> References: <20250617152338.212798615@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wolfram Sang [ Upstream commit 8f2efdbc303fe7baa83843d3290dd6ea5ba3276c ] The DT bindings for this driver define the interrupts in the order as they are numbered in the interrupt controller. The old platform_data, however, listed them in a different order. So, for DT based platforms, they are mixed up. Assign them specifically for DT, so we can keep the bindings stable. After the fix, 'rtctest' passes again on the Renesas Genmai board (RZ-A1 / R7S72100). Fixes: dab5aec64bf5 ("rtc: sh: add support for rza series") Signed-off-by: Wolfram Sang Link: https://lore.kernel.org/r/20250227134256.9167-11-wsa+renesas@sang-engineering.com Signed-off-by: Alexandre Belloni Signed-off-by: Sasha Levin --- drivers/rtc/rtc-sh.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c index cd146b5741431..341b1b776e1a3 100644 --- a/drivers/rtc/rtc-sh.c +++ b/drivers/rtc/rtc-sh.c @@ -485,9 +485,15 @@ static int __init sh_rtc_probe(struct platform_device *pdev) return -ENOENT; } - rtc->periodic_irq = ret; - rtc->carry_irq = platform_get_irq(pdev, 1); - rtc->alarm_irq = platform_get_irq(pdev, 2); + if (!pdev->dev.of_node) { + rtc->periodic_irq = ret; + rtc->carry_irq = platform_get_irq(pdev, 1); + rtc->alarm_irq = platform_get_irq(pdev, 2); + } else { + rtc->alarm_irq = ret; + rtc->periodic_irq = platform_get_irq(pdev, 1); + rtc->carry_irq = platform_get_irq(pdev, 2); + } res = platform_get_resource(pdev, IORESOURCE_IO, 0); if (!res) -- 2.39.5