]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: only set test mode once
authorBin Liu <b-liu@ti.com>
Tue, 24 Mar 2015 20:09:25 +0000 (15:09 -0500)
committerFelipe Balbi <balbi@ti.com>
Mon, 27 Apr 2015 20:51:45 +0000 (15:51 -0500)
commitc2c8384da480cd6d32743dc10c98096631a01f3d
treee92efa3c213dda1da2dcb2ffe79fbfcf5b2e1eed
parente343b133462166d2a89af5aadac2074194638ea0
usb: musb: only set test mode once

The MUSB test mode register can only be set once, otherwise the result
is undefined.

This prevents the debugfs testmode entry to set the register more than
once which causes test failure.

Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_debugfs.c