usb: ulpi: Add debugfs support
authorSean Anderson <sean.anderson@seco.com>
Thu, 27 Jan 2022 19:00:04 +0000 (14:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Feb 2022 10:05:41 +0000 (11:05 +0100)
commitbd0a0a024f2a41e7cc8eadb9862f82c45884b69c
tree60b74e6d6f81ab160d79e4f90a351319c917db85
parentfbd533e90d239e17d9427a6481ae60be25680cb7
usb: ulpi: Add debugfs support

This adds a debugfs file for ULPI devices which contains a dump of their
registers. This is useful for debugging basic connectivity problems. The
file is created in ulpi_register because many devices will never have a
driver bound (as they are managed in hardware by the USB controller
device).

The root directory of this subsystem is created before we register the
bus to ensure that devices can always create their directories.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20220127190004.1446909-4-sean.anderson@seco.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/ulpi.c