Skip to content
Commit fd3923a9 authored by Apelete Seketeli's avatar Apelete Seketeli Committed by Felipe Balbi
Browse files

usb: fix musb gadget to enable OTG mode conditionally



The musb driver is usable in host, gadget or dual role mode depending
on the kernel configuration.

However, the musb gadget part of the driver is enabling OTG mode
whether the driver is built for dual role or gadget only mode. This
induces a bug for gadget only USB device controllers where the kernel
tries to use Host Negotiation Protocol with such controllers, which
causes a panic.

This behaviour is now fixed by enabling OTG mode only when musb driver
is built for dual role mode.

Signed-off-by: default avatarApelete Seketeli <apelete@seketeli.net>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent b144e4ab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment