From patchwork Tue Nov 12 22:32:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Finn Thain X-Patchwork-Id: 2010561 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=fm3 header.b=bzgu2Id6; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=147.75.80.249; helo=am.mirrors.kernel.org; envelope-from=linux-rtc+bounces-2540-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [147.75.80.249]) (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 4Xp1qp3P60z1xxN for ; Wed, 13 Nov 2024 09:51:34 +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 B65861F255FD for ; Tue, 12 Nov 2024 22:51:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A49021A710; Tue, 12 Nov 2024 22:51:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="bzgu2Id6" X-Original-To: linux-rtc@vger.kernel.org Received: from fhigh-b5-smtp.messagingengine.com (fhigh-b5-smtp.messagingengine.com [202.12.124.156]) (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 69D9F219E5C; Tue, 12 Nov 2024 22:51:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.156 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731451885; cv=none; b=TqHtU+6ylH4S9EPI7BpJUBh/W5we8AGY+IlxlTEFKhp0TN1Xo9unJLwMvPnWoIpTDkJChwv8Gma6VXZLMDif5XwN2Cwp96rb5qJL9vd7gpZYjQgLtwkbHBoEgqG6+Pe/0WfyhEpkhwN4OprCUyepaUI7KIEOT4I7qYHtA+nnFbU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731451885; c=relaxed/simple; bh=qBKWleUs0rflmiKJyThoMQoinjTCZi5Qjr8qAyZ2ve4=; h=Message-ID:From:Subject:Date:To:Cc; b=SkTkEaw8XeDBeObxZCfe2gE0XJY+LCgKjDIHFvLHD2jDxxz7Rq6qnfSUyq4SIVX7F731HP+HWrjYaUbEjO0ImQWRkqLf2ElT69QPA4/r2+fZFPVaeF7xvhxBc+qKj9A8FCh1J9Nhp+IYW2KJGOkunfoBjufQIm/wsSu8+9cDUz0= 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=bzgu2Id6; arc=none smtp.client-ip=202.12.124.156 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-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfhigh.stl.internal (Postfix) with ESMTP id 2C40A254014F; Tue, 12 Nov 2024 17:51:21 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Tue, 12 Nov 2024 17:51:21 -0500 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-sender:x-me-sender:x-sasl-enc; s= fm3; t=1731451881; x=1731538281; bh=mab7b9Xt6EjJAApXRK+nqzR/G6+2 Y2fzyeEyjtLZLgs=; b=bzgu2Id6acgC2FGUFQCf5kSmVtYr6F+di1qEdNo11f+k itpBvGw92nilusILq1OLFPA3EXWrM8tokl0/f2fpNNlVm/2JcgWxZuuE8sX1hikY qRrIBKTNMzk3GVMwhcATqvvYiw4Sc4+3H440blIf537Li+RIkyVbXMVyQFlfDCUl /VehMJLsyQxHFrpDw9jMgs/S80zmyMPad2nniwzzwBAlJKJryUELa/T1xACqnbml SgBSbBjGxF9OQ6ZbAC4BJ26QLNoZl3nLQdkAimegVgKYZFftFQM0PYdWdtjmA12L gST7unY5SNvJQx8cdPTV1jOEQxrPjSJNCu9S9OYuwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudehgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkhffufffvveestddtredttddttdenucfhrhhomhep hfhinhhnucfvhhgrihhnuceofhhthhgrihhnsehlihhnuhigqdhmieekkhdrohhrgheqne cuggftrfgrthhtvghrnhepheffudekteffudetvdffffehgedtteekkeefvefgieethfev vddtlefhuddutedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepfhhthhgrihhnsehlihhnuhigqdhmieekkhdrohhrghdpnhgspghrtghpthht ohepuddtpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrlhgvgigrnhgurhgvrd gsvghllhhonhhisegsohhothhlihhnrdgtohhmpdhrtghpthhtoheprghnughrvggrshes ghgrihhslhgvrhdrtghomhdprhgtphhtthhopegurghvvghmsegurghvvghmlhhofhhtrd hnvghtpdhrtghpthhtohepghgvvghrtheslhhinhhugidqmheikehkrdhorhhgpdhrtghp thhtohepuggrnhhivghlsedtgidtfhdrtghomhdprhgtphhtthhopehlihhnuhigqdhkvg hrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhm ieekkheslhhishhtshdrlhhinhhugidqmheikehkrdhorhhgpdhrtghpthhtoheplhhinh hugidqrhhttgesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehprghvohhn vgesrhgvthhrohguvghvrdgtohhm X-ME-Proxy: Feedback-ID: i58a146ae:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Nov 2024 17:51:17 -0500 (EST) Message-ID: From: Finn Thain Subject: [PATCH v4 0/2] MVME: Adopt standard RTC driver Date: Wed, 13 Nov 2024 09:32:15 +1100 To: Alexandre Belloni , Andreas Larsson , "David S. Miller" , Geert Uytterhoeven Cc: Daniel Palmer , linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-rtc@vger.kernel.org, Michael Pavone , sparclinux@vger.kernel.org Precedence: bulk X-Mailing-List: linux-rtc@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. Changed since v2: - Use an int for the year offset in struct m48t59_plat_data. Changed since v3: - Re-ordered m68k defconfig symbols. - Added reviewed-by tag from Geert. 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