From patchwork Mon Dec 4 13:05:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 1871540 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=linux-rtc+bounces-393-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SkP681lKjz1yST for ; Tue, 5 Dec 2023 00:05:20 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A905D280F7D for ; Mon, 4 Dec 2023 13:05:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA453249F2; Mon, 4 Dec 2023 13:05:15 +0000 (UTC) X-Original-To: linux-rtc@vger.kernel.org Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B71DEA7; Mon, 4 Dec 2023 05:05:11 -0800 (PST) X-IronPort-AV: E=Sophos;i="6.04,249,1695654000"; d="scan'208";a="185258370" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 04 Dec 2023 22:05:11 +0900 Received: from localhost.localdomain (unknown [10.226.93.142]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id F3DBC44506C7; Mon, 4 Dec 2023 22:05:07 +0900 (JST) From: Biju Das To: Alessandro Zummo , Alexandre Belloni Cc: Biju Das , Support Opensource , linux-rtc@vger.kernel.org, Geert Uytterhoeven , Prabhakar Mahadev Lad , Biju Das , linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 0/3] rtc: da9063: Make IRQ as optional Date: Mon, 4 Dec 2023 13:05:01 +0000 Message-Id: <20231204130504.126787-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On some platforms (eg: RZ/{G2UL,Five} SMARC EVK), there is no IRQ populated by default. Add irq optional support. v1->v2: * Make RTC patch series separate from dt patches. * Propagated real errors for platform_get_irq_byname_optional(). * Cleared ALARM feature bit for non-irq case. * Added Rb tag from Geert for patch#2 and #3 * Restored dev_err() for devm_request_threaded_irq() as an RTC can wake up a system without an IRQ. Biju Das (3): rtc: da9063: Make IRQ as optional rtc: da9063: Use device_get_match_data() rtc: da9063: Use dev_err_probe() drivers/rtc/rtc-da9063.c | 89 ++++++++++++++++++---------------------- 1 file changed, 41 insertions(+), 48 deletions(-)