From patchwork Fri Nov 10 10:07:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Raghavendra, Vignesh" X-Patchwork-Id: 743349 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 855B0C05031 for ; Fri, 10 Nov 2023 18:17:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344534AbjKJSRU (ORCPT ); Fri, 10 Nov 2023 13:17:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345288AbjKJSPp (ORCPT ); Fri, 10 Nov 2023 13:15:45 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 840F327046; Fri, 10 Nov 2023 02:07:51 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3AAA7Whb112094; Fri, 10 Nov 2023 04:07:32 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1699610852; bh=rWsMuyyA1mzltuc9cgUJ5mkGrkzCAmzBHKxXjp2Fk9A=; h=From:To:CC:Subject:Date; b=e1pmU8muM8Sy8Cj4x6ejlIArt2UmtR9sIHlvTKKnSaMhWZlG2QKVK0n8XUK0fVHBy cSEXc/uf9fmhwDHk/2RMAcBGgWzZubfLCUrYbhW0bJKTT5P8yKvOii/46Kk0tE8iQj xNjgtD5NNNio7Vd6D8SzItLptD87MZM8qA5HSSow= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AAA7Vv5003057 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 10 Nov 2023 04:07:32 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 10 Nov 2023 04:07:31 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 10 Nov 2023 04:07:31 -0600 Received: from uda0132425.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3AAA7S4p051776; Fri, 10 Nov 2023 04:07:29 -0600 From: Vignesh Raghavendra To: Wim Van Sebroeck , Guenter Roeck CC: Tero Kristo , , , Vignesh Raghavendra , , , Subject: [PATCH 0/2] watchdog: rti_wdt: Disable module when unused Date: Fri, 10 Nov 2023 15:37:24 +0530 Message-ID: <20231110100726.2930218-1-vigneshr@ti.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org This series adds couple of fixes to rti_wdt driver so that module is disabled when unused. First patch is cleanup to use devm_* API and second patch drops RPM count when unused. On K3 SoCs, each RTI is paired to a CPU/GPU core. So disabling such cores (CPU hotplug) would require corresponding RTIs to be off. This series enables hotplug of the core, if the corresponding watchdog was unused. Vignesh Raghavendra (2): watchdog: rti_wdt: Use managed APIs to handle runtime PM watchdog: rti_wdt: Drop RPM watchdog when unused drivers/watchdog/rti_wdt.c | 39 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 22 deletions(-)