usb: typec: intel_pmc_mux: Expose IOM port status to debugfs
authorRajat Khandelwal <rajat.khandelwal@linux.intel.com>
Wed, 31 May 2023 10:50:50 +0000 (16:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2023 09:54:58 +0000 (11:54 +0200)
commit0a453dc9f260281e3a063e07b526a7e494e496fe
treee57851a7e920d758fa8575a02a529616b1352a17
parentd5e234ff08a45a7a08a52173ed793b3c125ab88d
usb: typec: intel_pmc_mux: Expose IOM port status to debugfs

IOM status has a crucial role during debugging to check the
current state of the type-C port.
There are ways to fetch the status, but all those require the
IOM port status offset, which could change with platform.

Make a debugfs directory for intel_pmc_mux and expose the status
under it per port basis.

Signed-off-by: Rajat Khandelwal <rajat.khandelwal@linux.intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Message-ID: <20230531105050.638250-1-rajat.khandelwal@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c