]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 15:48:19 +0000 (11:48 -0400)
commitb058f25d3491ecddf2aa3b1d9afbf5f4b8477759
tree6508ee1fb229841caeaaf866a9103540568c0e2a
parent86820622c62eb3fc2b01a7988f6edb0cab23f270
usb: dwc3: prevent setting PRTCAP to OTG from debugfs

BugLink: http://bugs.launchpad.net/bugs/1773233
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/dwc3/core.c