From patchwork Mon Aug 15 13:12:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 12943534 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E335C00140 for ; Mon, 15 Aug 2022 13:14:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=08/zJ0E+5di8zZQk4nz9zERitXIjXbj3h96ic9yc0XQ=; b=q6Kbm4OVGyloe+ kNVj4luZ7QtYzAw4iuqB8s9PkIqCJr4OVXPjoQwMy6bx+JByyVDA0dyCI2U9t8Ukcf2zzti99EPNS FqOKJyPBVzSOr14Ihx3mXvMxn9ITd28wA/i4toPio/gX0EzE4M4xYpCXTagobpl0aC8k5Z8pek4lo KQsXPcYZBNwO17H4E6yGT4p2HC1pkpiPbY6aDG0ESpfABLGxkCcZyTf9UTCc0C/+yTyHkEmQC25yE UVd2KIALJxlsMfme/VtQHR6BsI5HWlGmUvLMB7H4MOaqVDJQ93jqf9g8nZaKPeLWGTCfACowF//lD MAdEgipkN1BuJ4oTI1cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNZuT-00GcdY-6o; Mon, 15 Aug 2022 13:13:38 +0000 Received: from muru.com ([72.249.23.125]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNZuC-00GcSE-BH for linux-arm-kernel@lists.infradead.org; Mon, 15 Aug 2022 13:13:23 +0000 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 89A8C80FB; Mon, 15 Aug 2022 13:06:26 +0000 (UTC) From: Tony Lindgren To: Daniel Lezcano , Thomas Gleixner Subject: [PATCH 0/9] Clean-up timer-ti-dm a bit Date: Mon, 15 Aug 2022 16:12:41 +0300 Message-Id: <20220815131250.34603-1-tony@atomide.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220815_061320_481624_C54BCAE6 X-CRM114-Status: UNSURE ( 9.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nishanth Menon , Grygorii Strashko , Vignesh Raghavendra , Aaro Koskinen , Keerthy , Janusz Krzysztofik , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Ladislav Michl , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, This series of changes cleans up timer-ti-dm a bit. After this series we can start replacing the custom PWM related functions with standard Linux frameworks and use things like clk_set_duty_cycle(). I have only tested this on K3 and omap2+ devices, I don't have any omap1 devices online right now. Aaro & Janusz, if you could give this series a quick boot test for omap1 that would be great. The patches are against v6.0-rc1. Regards, Tony Tony Lindgren (9): clocksource/drivers/timer-ti-dm: Drop unused functions clocksource/drivers/timer-ti-dm: Simplify register reads with dmtimer_read() clocksource/drivers/timer-ti-dm: Simplify register writes with dmtimer_write() clocksource/drivers/timer-ti-dm: Simplify register access further clocksource/drivers/timer-ti-dm: Move private defines to the driver clocksource/drivers/timer-ti-dm: Use runtime PM directly and check errors clocksource/drivers/timer-ti-dm: Move struct omap_dm_timer fields to driver clocksource/drivers/timer-ti-dm: Add flag to detect omap1 clocksource/drivers/timer-ti-dm: Get clock in probe with devm_clk_get() drivers/clocksource/timer-ti-dm.c | 681 +++++++++++++++++++----------- include/clocksource/timer-ti-dm.h | 112 ----- 2 files changed, 429 insertions(+), 364 deletions(-) Reviewed-by: Janusz Krzysztofik