Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2489102rwb; Mon, 15 Aug 2022 06:25:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR4PB85EjRUpKjj4pfh+OtO9Xt1/+/c0uofZQ4zuidrVHPgEIW2Gv/orAvGU+ONN9IgLXU+7 X-Received: by 2002:a17:907:7295:b0:731:6a6b:209c with SMTP id dt21-20020a170907729500b007316a6b209cmr10708801ejc.320.1660569948110; Mon, 15 Aug 2022 06:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660569948; cv=none; d=google.com; s=arc-20160816; b=A4FxBtxvIpsc84Ire6bN0YnAb60S/7k1OslRxSW5viDmIPjxpGEBuu/Xbv5v1TlmeK tVfvad/PpHSgREncGI3Zbaln+ftSwnBLX8stqxXoCSJOmb2MyOeTqqGBJ5FrZPYqs/VV 2yRMMVJ0fg3D6WQW3eK+a9d3B5eblMXOHXBj9a/YwyGm09Y3E/+LKN4SRSuTExlwz34N 8MvcQ+7aF5N8XUqmVjS5IuCta8rS2Lx4D5hKrj8aZmqU+kqZyRnmvS5cVQFOJKxXOjY5 Yi6VtDJnV7TGv2ODALY8T8JeQjmgZgKksYycb5mIY1NlFlAQSJLvLzOIggXSwnmrWdT8 A0NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ke5oC4TvX+dMzsFmH7m4tm4XWR38B+4QBahOuU0V7wk=; b=jhd1MTkU1ddv2rr1L9VbzhWVsnFy5/fxp8A/pI1DQRaWjtKO6Xe/PY3M2dgDpcuyb3 VViwFWHg4sphEIlncxA6Yfn9qtuMlWIwMWocq4Z5IzHBCi1qXW9Y/txAqJp5KPVSNbN6 7bG6qgtkkYHKHA+FN7eO26nrJms5G9I3x8sfybIuxRRiU4SeTtsFPQrCMKvkWuVPT6pN 5AM7iBoIgyn3xSyaqH7FFfjrbR+fawdtwz9yVFcBU3S5RlHZbQXpp564RKDOjKrPs48T pNSbhnRj3O5ztloOpi3nUw+denXj14uSPCqINw/b6ZP36+Pp/2flmEztryoY4lF37d2H F5Ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s8-20020a056402520800b0043bcb2650d9si9136892edd.42.2022.08.15.06.25.22; Mon, 15 Aug 2022 06:25:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242736AbiHONN2 (ORCPT + 99 others); Mon, 15 Aug 2022 09:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232465AbiHONNX (ORCPT ); Mon, 15 Aug 2022 09:13:23 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EC42713E30; Mon, 15 Aug 2022 06:13:19 -0700 (PDT) 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 Cc: Aaro Koskinen , Grygorii Strashko , Janusz Krzysztofik , Keerthy , Ladislav Michl , Nishanth Menon , Suman Anna , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.37.1