Skip to content

Commit 3caf2b2

Browse files
sean-anderson-secogregkh
authored andcommitted
usb: ulpi: Fix debugfs directory leak
The ULPI per-device debugfs root is named after the ulpi device's parent, but ulpi_unregister_interface tries to remove a debugfs directory named after the ulpi device itself. This results in the directory sticking around and preventing subsequent (deferred) probes from succeeding. Change the directory name to match the ulpi device. Fixes: bd0a0a0 ("usb: ulpi: Add debugfs support") Cc: stable@vger.kernel.org Signed-off-by: Sean Anderson <sean.anderson@seco.com> Link: https://lore.kernel.org/r/20240126223800.2864613-1-sean.anderson@seco.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b717dfb commit 3caf2b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/common/ulpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ static int ulpi_register(struct device *dev, struct ulpi *ulpi)
301301
return ret;
302302
}
303303

304-
root = debugfs_create_dir(dev_name(dev), ulpi_root);
304+
root = debugfs_create_dir(dev_name(&ulpi->dev), ulpi_root);
305305
debugfs_create_file("regs", 0444, root, ulpi, &ulpi_regs_fops);
306306

307307
dev_dbg(&ulpi->dev, "registered ULPI PHY: vendor %04x, product %04x\n",

0 commit comments

Comments
 (0)