Merge 5.9-rc5 into usb-next
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2020 08:10:55 +0000 (10:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2020 08:10:55 +0000 (10:10 +0200)
We need the USB fixes in here as well.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1  2 
drivers/usb/typec/mux/intel_pmc_mux.c

@@@ -625,10 -485,9 +613,11 @@@ err_remove_ports
        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);
        }
  
 +      put_device(&pmc->iom_adev->dev);
 +
        return ret;
  }
  
@@@ -640,10 -499,9 +629,11 @@@ static int pmc_usb_remove(struct platfo
        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);
        }
  
 +      put_device(&pmc->iom_adev->dev);
 +
        return 0;
  }