From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.cjdns.fr (mail.cjdns.fr [5.135.140.105]) (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 D9E8F2F7445; Sat, 16 May 2026 23:39:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.135.140.105 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778974796; cv=none; b=KnoqirL66vYmpM3wTZenJrkaPw6MXfIEMiFqLL99FHe/wXcAfc+EkzePcg+EIT4fEP+MdxKffyOI7hD6T43vU9XEbdrIlfX+sij6V6q5phS2oAb2XBStu/V4uoVeS9jeC7jYm4lhMW8dFYfFSgB1K1GfkmL6rF1k+Cm3mf/nxro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778974796; c=relaxed/simple; bh=2zyv5FyQNmHL7sP2dylbqCpe7yV3NASYEGPjpoKiDFQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LykrXhBZJbqaZlETCcijiXpOoKscdo/FXeRPMkor/XfhvWn6PTxBk++qF0sFddIhovvkCO5I/7RQkAAqM49hH6LPgBFW1lu9vQL7XdUf/hQwgmZMJQW7t655LG5z7YTPwAO5wbkd5gqHvkznD4v9jWzGgvT8D7mtqFTgy/zg4nA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cjdns.fr; spf=pass smtp.mailfrom=cjdns.fr; dkim=pass (2048-bit key) header.d=cjdns.fr header.i=@cjdns.fr header.b=baBW++f6; arc=none smtp.client-ip=5.135.140.105 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cjdns.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cjdns.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cjdns.fr header.i=@cjdns.fr header.b="baBW++f6" Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 793BD3FB104; Sun, 17 May 2026 01:39:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cjdns.fr; s=dkim; t=1778974791; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=DiL5m3Ixzs3hDbe93M9Ud9CulfP8tPK19iiT3Z4hsBQ=; b=baBW++f6jsTqILRzNz8z8kqxoKm9Bp8OoH8laac7Q4XpKLJuYYP7f0VSQ99IFMjw8UwxgC vxdSW+lON7rdGRvZkcualrWO2PevGaYCtfzzyUeW60DDeeTvNo4YlOuzzORGTwGnRVgifJ kXOX6y0MeLQNw0D2ttOEVT9fvJeOdeQWWd0mEa4YkCvAf7UH69CJku3dSvmcV/+2nS3s0A aKpa/Xsq/ZnqV0niVVB/QRuwRYnvaoEWLz5+IA5+rCAntEOWnFQYeFf2bh4t84GHx6LzJW RmnTnx/La4JSeWfEzr7UdJtPXvfy05cn/yhWJAl7M4ZoSpNslDOQcMoh3lKE3g== From: Caleb James DeLisle To: linux-mips@vger.kernel.org Cc: conor+dt@kernel.org, daniel.lezcano@kernel.org, devicetree@vger.kernel.org, krzk+dt@kernel.org, linux-kernel@vger.kernel.org, naseefkm@gmail.com, robh@kernel.org, tglx@kernel.org, Caleb James DeLisle Subject: [PATCH v5 0/4] clocksource/timer-econet-en751221: Support irq number per timer Date: Sat, 16 May 2026 23:39:39 +0000 Message-Id: <20260516233943.49502-1-cjd@cjdns.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Changes from v4: * Fixed incorrect compatible in DT schema * Bracing in out_irq_free if statement * I did not move cpuhp_setup_state past the point of no return * v4: https://lore.kernel.org/linux-mips/20260516215720.4160831-1-cjd@cjdns.fr Changes from v3: * off-by-one in out_irq_free * Gracefully fail if too many address resources are provided in the DT * Allow fewer actual timers than num_possible_cpus, as long as they never start * v3: https://lore.kernel.org/linux-mips/20260516182648.3987792-1-cjd@cjdns.fr v3 note: I decided to take this patchset in a slightly different direction from v2. There is a certain amount of initialization that once it has run, it cannot be reverted in case of error. The original driver init was a mixture of revertible and non-revertible code which made it too easy for code which is designed with best practices in mind to in fact introduce a bug. Therefore I start by making the init process more legible but without any business logic changes, then fix a race condition by keeping IRQ disabled until after cevt is setup, then finally add non-percpu IRQ support. * v2: https://lore.kernel.org/linux-mips/20260514000601.3430262-1-cjd@cjdns.fr Changes from v1: * Split changes over 3 refactoring patches + main patch * Remove driver discussion from dt commit message * v1: https://lore.kernel.org/linux-mips/20260416175101.958073-1-cjd@cjdns.fr/ Caleb James DeLisle (4): dt-bindings: timer: econet: Update EN751627 for multi-IRQ clocksource/timer-econet-en751221: Init teardown on error if possible clocksource/timer-econet-en751221: Disable IRQ until cevt registered clocksource/timer-econet-en751221: Support EN751627 without percpu IRQ .../bindings/timer/econet,en751221-timer.yaml | 31 ++-- drivers/clocksource/timer-econet-en751221.c | 169 +++++++++++++----- 2 files changed, 148 insertions(+), 52 deletions(-) base-commit: ff1c0c5d07028a84837950b619d30da623f8ddb2 -- 2.39.5