From: Manivannan Sadhasivam <mani@kernel.org>
To: Andrew Gaylard <ag@ffroot.co.za>
Cc: Vinod Koul <vkoul@kernel.org>,
Vincent Shih <vincent.sunplus@gmail.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Manivannan Sadhasivam <mani@kernel.org>,
linux-phy@lists.infradead.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] phy: sunplus: free the disc_vol buffer in update_disc_vol()
Date: Fri, 27 Nov 2026 19:42:34 +0530 [thread overview]
Message-ID: <179578875453.13164.15057967798026543763.b4-reply@b4> (raw)
In-Reply-To: <20261116074006.20357-2-ag@ffroot.co.za>
On 2026-11-16 09:40 +0200, Andrew Gaylard wrote:
> nvmem_cell_read() returns a buffer that the caller must free.
> update_disc_vol() never frees it, so every PHY initialisation leaks
> it: at boot, and again each time the EHCI or OHCI driver is unbound
> and bound.
>
> Free the buffer after taking the disconnect-voltage level from it.
>
> Tested on a Tibbo LTPP3G2 board.
>
> Fixes: 99d9ccd97385 ("phy: usb: Add USB2.0 phy driver for Sunplus SP7021")
> Signed-off-by: Andrew Gaylard <ag@ffroot.co.za>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
- Mani
next prev parent reply other threads:[~2026-11-27 14:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 7:40 [PATCH 1/2] phy: sunplus: don't read the disc_vol cell after nvmem_cell_get() fails Andrew Gaylard
2026-11-16 7:40 ` [PATCH 2/2] phy: sunplus: free the disc_vol buffer in update_disc_vol() Andrew Gaylard
2026-11-27 14:12 ` Manivannan Sadhasivam [this message]
2026-11-27 14:12 ` [PATCH 1/2] phy: sunplus: don't read the disc_vol cell after nvmem_cell_get() fails Manivannan Sadhasivam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179578875453.13164.15057967798026543763.b4-reply@b4 \
--to=mani@kernel.org \
--cc=ag@ffroot.co.za \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=vincent.sunplus@gmail.com \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®