patch "usb: typec: intel_pmc_mux: Un-register the USB role switch" added to usb-linus
Subsystems (4)
This is a note to let you know that I've just added the patch titled
usb: typec: intel_pmc_mux: Un-register the USB role switch
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From 290a405ce318d036666c4155d5899eb8cd6e0d97 Mon Sep 17 00:00:00 2001
From: Madhusudanarao Amara <[email protected]>
Date: Wed, 26 Aug 2020 00:08:11 +0530
Subject: usb: typec: intel_pmc_mux: Un-register the USB role switch
Added missing code for un-register USB role switch in the remove and error path.
--- drivers/usb/typec/mux/intel_pmc_mux.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/usb/typec/mux/intel_pmc_mux.c +2 -0
@@ -497,6 +497,7 @@ static int pmc_usb_probe(struct platform_device *pdev)for (i =0 ; i < pmc->num_ports; i++) {typec_switch_unregister (pmc->port[i].typec_sw);typec_mux_unregister (pmc->port[i].typec_mux); +usb_role_switch_unregister (pmc->port[i].usb_sw); }return ret;
@@ -510,6 +511,7 @@ static int pmc_usb_remove(struct platform_device *pdev)for (i =0 ; i < pmc->num_ports; i++) {typec_switch_unregister (pmc->port[i].typec_sw);typec_mux_unregister (pmc->port[i].typec_mux); +usb_role_switch_unregister (pmc->port[i].usb_sw); }return 0 ;
Signature · 1 line
2.28.0