brcm63xx: prevent usb clock state inconsistency on BCM6318
authorJonas Gorski <jogo@openwrt.org>
Sun, 19 Jan 2014 13:45:42 +0000 (13:45 +0000)
committerJonas Gorski <jogo@openwrt.org>
Sun, 19 Jan 2014 13:45:42 +0000 (13:45 +0000)
commit1a2e8d8f278590289badc61aba8f059aacd3b240
tree91458680066ac4d9178fc5cb88e269ba7271e4d0
parent7804da9d6e2dbc63aa5f15909081f442c06c58f5
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