usb: dwc3: prevent setting PRTCAP to OTG from debugfs
authorRoger Quadros <rogerq@ti.com>
Tue, 27 Feb 2018 10:54:37 +0000 (12:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:42:53 +0000 (09:42 +0200)
commit15c8f74fcaf75116598f927f2804c1cd6bf0e69d
treee2adee6daf0b4c42ad586304d1bf7ff25d6617e0
parent547466fa26e6cb9696751cd92c146665ced6765c
usb: dwc3: prevent setting PRTCAP to OTG from debugfs

commit daaecc6541d014dca073473ec8a4120c0babbeb4 upstream.

We don't support PRTCAP == OTG yet, so prevent user from
setting it via debugfs.

Fixes: 41ce1456e1db ("usb: dwc3: core: make dwc3_set_mode() work properly")
Cc: <stable@vger.kernel.org> # v4.12+
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c