]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: chipidea: Reallocate regmap only if lpm is detected
authorChris Ruehl <chris.ruehl@gtsys.com.hk>
Fri, 6 Dec 2013 08:35:12 +0000 (16:35 +0800)
committerPeter Chen <peter.chen@freescale.com>
Thu, 16 Jan 2014 08:56:45 +0000 (16:56 +0800)
commite8504b498e8ef6eb577b15db423e2a13af9085ba
treead937921b8a1d4f960eb84b1091a4c9478a7d5ac
parentd440d1f97857d914bb90d19fe9896bbca303e011
usb: chipidea: Reallocate regmap only if lpm is detected

The regmap only needs to reallocate if the hw_read on the CAP register shows
lpm is used. Therefore the if() statement check the change.

Signed-off-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 57fadc36d11a1263b446ef6f5d474d529274faa8)
drivers/usb/chipidea/core.c