From patchwork Mon Oct 7 22:38:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Finn Thain X-Patchwork-Id: 1993866 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=eWPIclJ7; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=3f7s=rd=vger.kernel.org=sparclinux+bounces-2312-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XMvM93gtGz1xsv for ; Tue, 8 Oct 2024 09:43:32 +1100 (AEDT) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4XMvM42cbhz4x11 for ; Tue, 8 Oct 2024 09:43:28 +1100 (AEDT) Received: by gandalf.ozlabs.org (Postfix) id 4XMvM42ZL4z4wd6; Tue, 8 Oct 2024 09:43:28 +1100 (AEDT) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2604:1380:4601:e00::3" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1728341008; cv=pass; b=Lo+3c2ncH/j0yt7e8qvYrlVe9XPHxn+MQ8DXLHTRn7z4ZMWBON7tytzorzipOMiN9UcO0aCjPZwdkCM+rwpGedxFU4buGue5ETlOeLq1ariQWJ9xcrisEm/FAva4pw+lRSEDGSejkl6KuRm8nk25IG8GEaHVyLxpo2qh10toVAHWBtvQHxKdeeybbVLGup0T8GVNEkwQjNMtMIw5/9Q5tNswKEVlSY6xGLgba+lxTysyoae/w4IZEXYgXVPmg321yIAhzO4RA3PT6Zjl75yE8vJOt1mo+lyNlF5Ry+zQ+H36H+TeE/FaA/2DLjsl8U9cPekAdcjGLynsiN11eN8dOg== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1728341008; c=relaxed/relaxed; bh=PSbighUzhdllJPAPWW22AFgW90piD0NXx5zzmIwwePY=; h=Message-Id:From:Subject:Date:To:Cc; b=yKmJyeeG9xseW60jYI37M3Bf/xOJwdn/1xAZogH/HWfSdjG72m4ykuhbqbII0qBK770LNmEhAUjBf0vjUi3dVo0g541AdFafP+2VP+O7XgzD0mBwtzj6DnCpcx8xnYL+MO3BIaqGC/1IMfgmMI/Ag7W2MgTir9000KRDYTPM8S/p6ZZ0XxlOF0Vqf9r2jfbQzrgxOLfbOyZRKMVcBoMt84Klyq6DjSqaXPz4CkB4NwPKwgQNgu/G/r5Y/tzwLXB4CEzXmv3f8XvUQpQNK9zCp1unFP5rL8uOEaOjYEgRdNEPp90IMTWf8BXTlRjbBCaVdmAJF6hB97dokHZClylX7w== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=eWPIclJ7; dkim-atps=neutral; spf=pass (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=sparclinux+bounces-2312-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: gandalf.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=eWPIclJ7; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=sparclinux+bounces-2312-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4XMvM32Ckzz4x11 for ; Tue, 8 Oct 2024 09:43:27 +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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9D3751F222BA for ; Mon, 7 Oct 2024 22:43:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82ABC18CC13; Mon, 7 Oct 2024 22:43:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="eWPIclJ7" X-Original-To: sparclinux@vger.kernel.org Received: from fhigh-a7-smtp.messagingengine.com (fhigh-a7-smtp.messagingengine.com [103.168.172.158]) (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 2B4FF17279E; Mon, 7 Oct 2024 22:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.158 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728341000; cv=none; b=iQXpnrv7UNBnlwvNSONdFBqz4u8U6sTFxIKfGiXtx79qOQXVy9gqthV3zxmvP4EZHlHRgraOCmpDpM5DhWzlDu5+c2zf+HD8i0sMQNsCBeWFy9z6b5LnQ+K3kxxEOePk86mvi+JDoAmEa1Z94qP0ADgw2/zGBgIC+l3PxwmfLZA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728341000; c=relaxed/simple; bh=ULJNkUi3nWPA/nIXK1IrKcjvPDnqlFUo5yXcBFj4uAQ=; h=Message-Id:From:Subject:Date:To:Cc; b=uGahLYLD617M25k+m8tjM1kVNyhL7Jw/BChaW8ZdqH/EaJIGqqNWeyFKBLgvnLJ0EjebY+fi9VzyrBg7oW89EVMSbfPyt0Y6Uq7eAfIBGtUx24m2UWm5jIOvEwEsvSIyIao55CVVKo0PQs/LB7GZL39woEHUcHPSE7R0tnN2I64= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=none smtp.mailfrom=linux-m68k.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=eWPIclJ7; arc=none smtp.client-ip=103.168.172.158 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 4E4101140155; Mon, 7 Oct 2024 18:43:17 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Mon, 07 Oct 2024 18:43:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1728340997; x=1728427397; bh=PSbighUzhdllJ PAPWW22AFgW90piD0NXx5zzmIwwePY=; b=eWPIclJ7vq+6uXi9K7peN0wrGAxgh O5m/lE7mtm6yMe1oUpOnF6CA3g9acrcJVyRyC/NgmnMbZlISRXyEZvBVzqipP9MA Iic5K3jLaMsJXmAhWVAm42Q5gLJR5hKx9Wpm7CZtxoJYlc7/S7hHPx6EVuyMcMBG iJh8oWLpH6fiD9bgsfRNvDHUleIECChAHjNj2b4Qg4VxNa3mLnp+Yzy6judtxY7D grYc3w3wzgyXkEzLzMRLkRm4sZqTcZ7tOsrXfwjtT7gzC2947DReOpk5exk2HA/x PXApqm1AIaYsooTj8cZ/X8B/aZQP9C7w6yYahOI9IppDVG3RbDEXgHlWQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeftddgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkffhufffvfevsedttdertddttddtnecuhfhrohhm pefhihhnnhcuvfhhrghinhcuoehfthhhrghinheslhhinhhugidqmheikehkrdhorhhgqe enucggtffrrghtthgvrhhnpeehffdukeetffdutedvffffheegtdetkeekfeevgfeitefh vedvtdelhfduudettdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehfthhhrghinheslhhinhhugidqmheikehkrdhorhhgpdhnsggprhgtphht thhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghlvgigrghnughrvg drsggvlhhlohhnihessghoohhtlhhinhdrtghomhdprhgtphhtthhopegrnhgurhgvrghs sehgrghishhlvghrrdgtohhmpdhrtghpthhtohepuggrvhgvmhesuggrvhgvmhhlohhfth drnhgvthdprhgtphhtthhopehgvggvrhhtsehlihhnuhigqdhmieekkhdrohhrghdprhgt phhtthhopegurghnihgvlhestdigtdhfrdgtohhmpdhrtghpthhtohepphgrvhhonhgvse hrvghtrhhouggvvhdrtghomhdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhg vghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhmieekkheslhhish htshdrlhhinhhugidqmheikehkrdhorhhgpdhrtghpthhtoheplhhinhhugidqrhhttges vhhgvghrrdhkvghrnhgvlhdrohhrgh X-ME-Proxy: Feedback-ID: i58a146ae:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Oct 2024 18:43:13 -0400 (EDT) Message-Id: From: Finn Thain Subject: [PATCH v2 0/2] MVME: Adopt standard RTC driver Date: Tue, 08 Oct 2024 09:38:37 +1100 To: Alexandre Belloni , Andreas Larsson , "David S. Miller" , Geert Uytterhoeven Cc: Daniel Palmer , Michael Pavone , linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-rtc@vger.kernel.org, sparclinux@vger.kernel.org Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: This series removes some duplicated RTC driver code. First rtc-m48t59 is tweaked to bring it into equivalence with the RTC drivers in arch/m68k/mvme*. Then platform devices are added for the former driver and the latter drivers are removed. --- Changed since v1: - Instead of adding ifdefs to the portable driver, store the year offset in struct m48t59_plat_data. Finn Thain (2): rtc: m48t59: Use platform_data struct for year offset value m68k: mvme147, mvme16x: Adopt rtc-m48t59 platform driver arch/m68k/configs/multi_defconfig | 1 + arch/m68k/configs/mvme147_defconfig | 1 + arch/m68k/configs/mvme16x_defconfig | 1 + arch/m68k/include/asm/mvme147hw.h | 19 +--- arch/m68k/include/asm/mvme16xhw.h | 18 +-- arch/m68k/mvme147/config.c | 55 ++++------ arch/m68k/mvme16x/Makefile | 2 +- arch/m68k/mvme16x/config.c | 57 ++++------ arch/m68k/mvme16x/rtc.c | 165 ---------------------------- arch/sparc/kernel/time_32.c | 1 + arch/sparc/kernel/time_64.c | 1 + drivers/rtc/rtc-m48t59.c | 26 +---- include/linux/rtc/m48t59.h | 3 + 13 files changed, 63 insertions(+), 287 deletions(-) delete mode 100644 arch/m68k/mvme16x/rtc.c