brcm63xx: prevent usb clock state inconsistency on BCM6318
authorjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 19 Jan 2014 13:45:42 +0000 (13:45 +0000)
committerjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 19 Jan 2014 13:45:42 +0000 (13:45 +0000)
commitd56d959374735244c991af0a7484aeef06d7057e
tree91458680066ac4d9178fc5cb88e269ba7271e4d0
parentef266ca9ba0157e4d1cade2b1bf635e2a4fcabc9
brcm63xx: prevent usb clock state inconsistency on BCM6318

Return the same clock for usbh and usbd on BCM6318 to prevent the clock
getting disabled despite being supposed to be enabled, e.g. by the
following sequence:

clk_enable(usbh); <- usbh->usage = 1, enabled
clk_enable(usbd); <- usbd->usage = 1, enabled (no effect)
clk_disable(usbd); <- usbd->usage = 0,  -> disabled!

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39321 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/brcm63xx/patches-3.10/346-MIPS-BCM63XX-USB-ENETSW-6318-clocks.patch