From mboxrd@z Thu Jan 1 00:00:00 1970 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 0BFB5CD4851 for ; Thu, 14 May 2026 16:08:27 +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:Date:Message-Id:Subject: References:In-Reply-To:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IbVKTEC6Py2Q71xijHWQ9YkLUBOFv9STlTqFNuI1fXw=; b=UNF2pYTj1fZsNK /GIdbiSyauCeld9iWu33EH23fs65DIFMU3qgsi/jxckr4VQ6cojzoKXcZ7rokLoQSOvf6o4H3bszO 4FMpSPaM4tj5n5JKaSJhjeK++MStSla0+gWfbzCEVQZm58t/+2jY8NRqFDjaaHLUcOfKFkInnSkfb e+oRaFA2jdA0bmt4g2emAr0xn+48+IDjniF4q4cp8d8TtpJQODCjtxRD8ABSoeZUI3bO5OdeJ4HG3 Zmzld8eYQ5g2Z6NpTUhcjYCRxeyeG8J7ZqfQIGolg2p0zkScdsbzBQFogGiiy/6UF4Y1Io3uhGRKW X1X0OD9KyoVBHNBm5okQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wNYbq-0000000600v-1xFi; Thu, 14 May 2026 16:08:26 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wNYbo-0000000600N-0D38; Thu, 14 May 2026 16:08:25 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 7A6214066D; Thu, 14 May 2026 16:08:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26BD6C2BCB3; Thu, 14 May 2026 16:08:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778774903; bh=JgMf4wRpFiwD3alNMNl5XaWiw8QaBk00SyYTww0vZHg=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=QX849FNdq4n1pmDeYiczWfPi/yO0SBj6+z6Hg34KhSCUe8UfPKXfpb8S0/gUq29Rw ntpr2ddLBmVU18R2dqsRINe99c1TKju9sCH4QXRCdj4ipVNkOUhTmISarVEy22t1A2 xG/jtJQe+j8jbDWhtttJr72lMk2Vx227JPBhzPIlHWgIi3HrcFwl7ZuT6gCacmvAR/ g7xfAevIhvbGXRgGXQWifiehUTDcd8DU4s09uznuhJUSbcfrrfWQEsRFs2m0j8Mfd9 LqcmF+oT4TACdpt1zxcpaoIOSvttx/snQU9nuc0cSX6nkQkcFTXphvvuImPdJx9q0O ryA+uquraHqXw== From: Vinod Koul To: sven@kernel.org, j@jannau.net, neal@gompa.dev, neil.armstrong@linaro.org, marcan@marcan.st, p.zabel@pengutronix.de, David Carlier Cc: olteanv@gmail.com, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org In-Reply-To: <20260508201958.30060-1-devnexen@gmail.com> References: <20260507163746.108086-1-devnexen@gmail.com> <20260508201958.30060-1-devnexen@gmail.com> Subject: Re: [PATCH v3] phy: apple: atc: Fix typec switch/mux leak on unbind Message-Id: <177877489977.1079578.13272721889190867698.b4-ty@kernel.org> Date: Thu, 14 May 2026 21:38:19 +0530 MIME-Version: 1.0 X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260514_090824_110893_A47D4315 X-CRM114-Status: UNSURE ( 7.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org On Fri, 08 May 2026 21:19:58 +0100, David Carlier wrote: > atcphy_probe_switch() and atcphy_probe_mux() discard the pointers > returned by typec_switch_register() and typec_mux_register(). The > platform driver has no .remove callback, so when the driver unbinds > (e.g. via sysfs unbind) neither typec_switch_unregister() nor > typec_mux_unregister() is called. The framework reference taken in > typec_switch_register() (device_initialize() + device_add() in > drivers/usb/typec/mux.c) is therefore never dropped and the > typec_switch_dev / typec_mux_dev objects stay live forever, with > their sysfs entries under the typec_mux class also left behind. A > subsequent rebind cannot recreate them with the same fwnode-derived > name. > > [...] Applied, thanks! [1/1] phy: apple: atc: Fix typec switch/mux leak on unbind commit: 1854082fe0ddb81bc93d1f8e8a00554217fd09d1 Best regards, -- ~Vinod -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy