From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 0A5311D8E10 for ; Sat, 1 Nov 2025 00:45:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761957915; cv=none; b=dUwWEthflbURwGazspzWKkxnRPr8Za3FvTmK4QFZNSq2QsZXRQTV8rxC5kK8o1Aq14jlslM57BK/CI4jrqOme4dbMPPfrxeTURMfT8gTlnGvd2aZjw+urilY+SUe5LMYQhWD4fHbfDH6lBOEycVanf1d7QLSzPUXh4UyEi3PVX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761957915; c=relaxed/simple; bh=Hp7qc3W8zHx5BjX2uw9UknBJdIDnl0H5unrLfP4AWyo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OvBAsvRYtSYEMRCDCKowHkWUM//UwCFa/EzSOdDOjGbLnRxLfrsFN47npqBvBqwkmHj3VRc84M2jnryM63SKJf04Vfu/4543uslDkeXQL2n+AsRYyFLTPYQDkyrnhYAGzFFmJd6xNWmWiRfAW/RtSlB2sUsAHMnuvI7P9wrVkI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=2F1E6Bpt; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="2F1E6Bpt" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 316091A17C6; Sat, 1 Nov 2025 00:45:11 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 07EED6070B; Sat, 1 Nov 2025 00:45:11 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 156E71181ABB0; Sat, 1 Nov 2025 01:45:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1761957910; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=FwZ98ZMyqKR4GwNmGRjh6+TVLupgXCI0Xx1xIMNf2Tc=; b=2F1E6Bpt6P14InlhIREs+3na2XBFZtI4bIoiI/UzHJ6NR4pq7KTHZrFjK/S5peRXPqF0Ja OdOkSXld4VsY4MtFI3/AOhmYW2LADm7H5evtD4WImoGWa0AbGiUA5cGYs2BZxfT/FMixLK 6PCcmGVMe58fL1+HELWB95SZTaHqXLE2XGMfDN+8nLCFjNPtMbDsseEaRdmMk1HK+JeCTl i/0Lt/XAu3nrcdmSBC0nXSn5RDMs9Njse3HE+V101cfMcyDXx1LlGYvqADKQAtSWbsNu6R e6TM2fjVDCBVwCLkVhEjQOe6k66LsBqi4tzFvvamTeDC0ZSArIrDY33UDqdemg== From: Alexandre Belloni Date: Sat, 01 Nov 2025 01:45:04 +0100 Subject: [PATCH 02/11] rtc: ds1685: stop setting max_user_freq Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20251101-max_user_freq-v1-2-c9a274fd6883@bootlin.com> References: <20251101-max_user_freq-v1-0-c9a274fd6883@bootlin.com> In-Reply-To: <20251101-max_user_freq-v1-0-c9a274fd6883@bootlin.com> To: Joshua Kinard , Claudiu Beznea , Ovidiu Panait Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Alexandre Belloni X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 max_user_freq has not been related to the hardware RTC since commit 6610e0893b8b ("RTC: Rework RTC code to use timerqueue for events"). Stop setting it from individual driver to avoid confusing new contributors. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1685.c | 3 --- include/linux/rtc/ds1685.h | 1 - 2 files changed, 4 deletions(-) diff --git a/drivers/rtc/rtc-ds1685.c b/drivers/rtc/rtc-ds1685.c index 97423f1d0361..5fc8e36b1abf 100644 --- a/drivers/rtc/rtc-ds1685.c +++ b/drivers/rtc/rtc-ds1685.c @@ -1268,9 +1268,6 @@ ds1685_rtc_probe(struct platform_device *pdev) rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000; rtc_dev->range_max = RTC_TIMESTAMP_END_2099; - /* Maximum periodic rate is 8192Hz (0.122070ms). */ - rtc_dev->max_user_freq = RTC_MAX_USER_FREQ; - /* See if the platform doesn't support UIE. */ if (pdata->uie_unsupported) clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc_dev->features); diff --git a/include/linux/rtc/ds1685.h b/include/linux/rtc/ds1685.h index 01da4582db6d..8ec0ebfaef04 100644 --- a/include/linux/rtc/ds1685.h +++ b/include/linux/rtc/ds1685.h @@ -324,7 +324,6 @@ struct ds1685_rtc_platform_data { #define RTC_SQW_2HZ 0x0f /* 0 1 1 1 1 */ #define RTC_SQW_0HZ 0x00 /* 0 0 0 0 0 */ #define RTC_SQW_32768HZ 32768 /* 1 - - - - */ -#define RTC_MAX_USER_FREQ 8192 /* -- 2.51.1