From: Sebastian Andrzej Siewior Date: Thu, 20 Oct 2011 16:43:07 +0000 (+0200) Subject: usb: dwc3: debugfs: hold the lock in during mode change X-Git-Tag: v3.3-rc1~153^2~30^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5537ea531d83b7d02ce2d52a5e2b90f526449d0;p=pandora-kernel.git usb: dwc3: debugfs: hold the lock in during mode change The read and write operation is atomic and we need no locking around this operations. What we need however is a lock that is held which ensures that the content of the DWC3_GCTL has not been changed. With this, the conten may have been change changed after the first but before our write back. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed