From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5D8243D6694; Wed, 8 Apr 2026 18:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775673790; cv=none; b=TNbjI1WyTcQKkN5XCOV4V/5QJejs+DKZuPJNuIzZyjj2SAJWNk9vVdOYlYRpEZWTn6LfnpZPSotAvoPHVU283JaZ1xuYksHCMiH8J5yrqD2RdTRBr6/iHg8IQlgEDLKc+maQ4l1Eq2sTEzc8qhP0JBCbXVvQoc9ELtCZk9xK/Ok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775673790; c=relaxed/simple; bh=hvWFDQ7qeXXKpxrxdRkwTuzAr170bDk/FtGEwgvi7A4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LsZxNrO2t30TzqNu7TW7J4RSWARgX2IUH0lhOkPWp5O2YCRkyp2ZVlJqrXzHl++kcDHtpL9aGbN/yIxqj3C1DO64jPH95d/KIRfgSiYkBPCxbZu/fkoMIvypT2oejnlb+M+9osarudUxbsJGWgTraDme9JTtwEegUMM8v2BFkrU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lm4gIuqA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="lm4gIuqA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98ECEC19421; Wed, 8 Apr 2026 18:43:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775673789; bh=hvWFDQ7qeXXKpxrxdRkwTuzAr170bDk/FtGEwgvi7A4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lm4gIuqAEWbzVuAcmF0Gyc+c1L/EL7Sc0j2bnA8z9a0/nECgt3VobezZHzU25z3ak i0xJIb2WzdWCEXYcV8aU/9DRk6Wqq6QDUIKVtHZ3AjPVXQpTrqZGw8DQpM4XBFcUjV 6hxlVyNV+JvuMDq/L2D+h5N2uw4YmOMM6uAyNKyU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Fedor Pchelkin , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.12 090/242] net: macb: properly unregister fixed rate clocks Date: Wed, 8 Apr 2026 20:02:10 +0200 Message-ID: <20260408175930.453842751@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260408175927.064985309@linuxfoundation.org> References: <20260408175927.064985309@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Fedor Pchelkin [ Upstream commit f0f367a4f459cc8118aadc43c6bba53c60d93f8d ] The additional resources allocated with clk_register_fixed_rate() need to be released with clk_unregister_fixed_rate(), otherwise they are lost. Fixes: 83a77e9ec415 ("net: macb: Added PCI wrapper for Platform Driver.") Signed-off-by: Fedor Pchelkin Link: https://patch.msgid.link/20260330184542.626619-2-pchelkin@ispras.ru Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/cadence/macb_pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb_pci.c b/drivers/net/ethernet/cadence/macb_pci.c index 0ce5b736ea438..b79dec17e6b09 100644 --- a/drivers/net/ethernet/cadence/macb_pci.c +++ b/drivers/net/ethernet/cadence/macb_pci.c @@ -96,10 +96,10 @@ static int macb_probe(struct pci_dev *pdev, const struct pci_device_id *id) return 0; err_plat_dev_register: - clk_unregister(plat_data.hclk); + clk_unregister_fixed_rate(plat_data.hclk); err_hclk_register: - clk_unregister(plat_data.pclk); + clk_unregister_fixed_rate(plat_data.pclk); err_pclk_register: return err; @@ -113,8 +113,8 @@ static void macb_remove(struct pci_dev *pdev) struct clk *hclk = plat_data->hclk; platform_device_unregister(plat_dev); - clk_unregister(pclk); - clk_unregister(hclk); + clk_unregister_fixed_rate(pclk); + clk_unregister_fixed_rate(hclk); } static const struct pci_device_id dev_id_table[] = { -- 2.53.0