From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=111.22.67.135 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796114147; b=HQ22qiQrno3WtpcUD40EOPFa7nkYqo0FHnoSVZAz0z5Rs0eEzo2/QF97zyfJGjOuqNQi KdbuFcA5o3kAKmLV1S1vWGEq1bvZJ5r2PDP6xlR0zthVur5GCW8zfvM6I0InCzI9296fe 89F3e4SwXszFMJbUUAa+4axrqotfmjf949fsZ6IiYVSfkGFqZgeiaVmTW1aC15yJIpU+H 73geMpiZkepAKoDKLiGSSe4w8BD06Bpag0m6BkFbeew8/2ccNQcGboPcimfom7nYzzDHI FV2yOQgFlKNL9zVqCYncfuA4qzZi2yKFqOnU1jBeNxDJvc8acYslPfEHWHtFvwacB4w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796114147; h=DMARC-Filter:DKIM-Signature:X-RM-TagInfo:X-RM-SPAM-FLAG:Received: X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:X-RM-TRANSID:From: To:Cc:Subject:In-Reply-To:References:Date:Message-ID:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=y/ObUVc9JjU91NTA2Nuqo9AFXEXwVcv9jh7nu44O95I=; b=JXTqU4/EpKUVhm3gE1Tw8JOZbLI3Kn7zF0YPlEfyDQSqfsEzU4GmpQ75ZdxOJq2N5Hwn cXFdcQ8Kb89EuDI6RiycwEdFlOmW0odPjhoF5SnGZ8icBk32Ea+hLiSbAaXo2gKPXzUk+ 9VMTMknVCnQq4lnKg9qPoiowKdqJB5ALDNlllnGelZTPMEHvMh0dyugLaOwH1NNiOhbAV TDwLUFKE4WS7XbN7z7B9HKC7MpJ8S9p7dP72tjmQuumq9l5XFx/NzeSdGGPI0puYyyVcl Hyy57GrqI3kLDFbAdXGDvW+RmyIIAzaxbpp6RHkE05WeyYtQtOYiS7x9JKwb/DwfNRw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=SGdu+lYC; arc=none smtp.remote-ip=111.22.67.135 Received: from cmccmta2.chinamobile.com (cmccmta2.chinamobile.com [111.22.67.135]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72262606A31A for ; Tue, 1 Dec 2026 08:35:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 72262606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=SGdu+lYC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmss.chinamobile.com; s=default; l=0; h=from:subject:message-id:to:cc:mime-version; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=SGdu+lYCgEZqnlvw5f6uoREpiFiraFPStPTVFxaQbNx3VPrq0jHQq49OhXdswC2TvMEdDbiD7GB35 NBF6wTa9OT2TvrqAAUGzdfMBq42SORk/qNAR+gPp1WUxsfIulN1eZSW/X+9FwqtCBJCHjOQDsVZ3iC zr0+LLqPcFSYc3jU= X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG:00000000 Received:from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app03-12003 (RichMail) with SMTP id 2ee36b0e86df25a-50841; Tue, 01 Dec 2026 16:35:45 +0800 (CST) X-RM-TRANSID:2ee36b0e86df25a-50841 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG:00000000 Received:from [198.18.0.27] (unknown[223.104.153.115]) by rmsmtp-syy-appsvr01-12001 (RichMail) with SMTP id 2ee16b0e86dffe1-17965; Tue, 01 Dec 2026 16:35:45 +0800 (CST) X-RM-TRANSID:2ee16b0e86dffe1-17965 From: Xia Yan To: Manivannan Sadhasivam Cc: vkoul@kernel.org, linux-phy@lists.infradead.org, neil.armstrong@linaro.org, heiko@sntech.de, p.zabel@pengutronix.de, ayaka@soulik.info, kishon@kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, yana06070@163.com Subject: Re: [PATCH] phy: rockchip-usb: fix reset control leak In-Reply-To: <179578788741.13164.8538367481844332594.b4-reply@b4> References: <20261115042640.426517-1-yanxia@cmss.chinamobile.com> <179578788741.13164.8538367481844332594.b4-reply@b4> Date: Tue, 01 Dec 2026 16:35:43 +0800 Message-ID: <20261201083543.50160d227cb63d84.reply@cmss.chinamobile.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Hi Mani, > Stop CCing stable list for these minor fixes, please. Understood. I have dropped the stable Cc in v2. > Why not devm_reset_control_get()? You're right. devm_phy_create(base->dev, child, &ops) associates the PHY device with the child node. v2 moves the reset lookup after that call and uses devm_reset_control_get(&rk_phy->phy->dev, "phy-reset"), keeping the lookup on the same child node. This also removes the custom put action from v1. Lookup errors are still converted to NULL, as before. v2: https://patchwork.kernel.org/project/linux-phy/patch/20261201082805.50160d227cb63d84.patch@cmss.chinamobile.com/ Thanks, Xia Yan