aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/powerpc/kernel/prom_init.c
diff options
context:
space:
mode:
authorAmelie Delaunay <amelie.delaunay@foss.st.com>2022-06-22 18:07:17 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-24 13:37:27 +0200
commitdb638c6500abaffb8f7770b2a69c40d003d54ae1 (patch)
treec682d5274238cb80d0d9b7f5bc084bc42810fefe /arch/powerpc/kernel/prom_init.c
parentusb: musb: mpfs: Fix error codes in probe() (diff)
downloadwireguard-linux-db638c6500abaffb8f7770b2a69c40d003d54ae1.tar.xz
wireguard-linux-db638c6500abaffb8f7770b2a69c40d003d54ae1.zip
usb: dwc2: gadget: remove D+ pull-up while no vbus with usb-role-switch
When using usb-role-switch, D+ pull-up is set as soon as DTCL_SFTDISCON is cleared, whatever the vbus valid signal state is. The pull-up should not be set when vbus isn't present (this is determined by the drd controller). This patch ensures that B-Session (so Peripheral role + vbus valid signal) is valid before clearing the DCTL_SFTDISCON bit when role switch is used. Keep original behavior when usb-role-switch isn't used. Acked-by: Minas Harutyunyan <hminas@synopsys.com> Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Link: https://lore.kernel.org/r/20220622160717.314580-1-fabrice.gasnier@foss.st.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc/kernel/prom_init.c')
0 files changed, 0 insertions, 0 deletions