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: Vignesh Raghavendra X-Patchwork-Id: 13452284 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 47944C4332F for ; Fri, 10 Nov 2023 10:08:12 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :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=B2ZWpNSM4Xye4FWCqOR7Fzrqu+x0+i5gE1sAwraI3l0=; b=3l2jZoS2V3KBsj DB6iihovfYeyeXS+A3MpIb9W+TSErQsRkW6TsBeCAT+KS1Td4bW/G1p/p2yDDHSu9zXR3Y/4GPyhk pe6QahAocmwZeXuixy7u2DNi0x7eFyz5N04sWYNH/6ghAHSdduci/CcCqIUouGbrqw07jLffilJ3k qptt13DqUT0nMNd6Sm9XWbwOYnyZ99eMjIcj9VZW/mN4+8bDstO92UsFuNgsULdk7Q5pbCVNvOBtF QD9IjCgi8ilX0ROW+dZaVFRw1d0iA5VuRIxE6kAlOGMqyycVlpA63A7qHbjEgGBp0KXoYRJsbedCj NL9eG4e1PXtBAGtf2t5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r1OQP-008G8v-2M; Fri, 10 Nov 2023 10:07:41 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r1OQM-008G7n-1T for linux-arm-kernel@lists.infradead.org; Fri, 10 Nov 2023 10:07:39 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231110_020738_594467_5DD67981 X-CRM114-Status: UNSURE ( 7.76 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(-)