diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2013-08-01 14:52:02 +0530 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-06 16:00:29 +1000 |
commit | 67dafd87d2a0a89bed786b19819b3ee1e714a785 (patch) | |
tree | 288ac4cc32157db7ef060d11857c647bcf118f08 /slof/fs/usb | |
parent | 225b8b0e3ae3256d8471d027436aad5d3e1e2c73 (diff) | |
download | SLOF-67dafd87d2a0a89bed786b19819b3ee1e714a785.zip SLOF-67dafd87d2a0a89bed786b19819b3ee1e714a785.tar.gz SLOF-67dafd87d2a0a89bed786b19819b3ee1e714a785.tar.bz2 |
usb-ohci: suspend the controller in exit code path
Moreover ehci already suspends the controller in the hcd_exit path. So
we can remove hc-suspend from the cleanup path.
Also, count mechanism is not needed anymore, as quiesce is called only
once.
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Diffstat (limited to 'slof/fs/usb')
-rw-r--r-- | slof/fs/usb/dev-hci.fs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/slof/fs/usb/dev-hci.fs b/slof/fs/usb/dev-hci.fs index 44bdc09..c054d47 100644 --- a/slof/fs/usb/dev-hci.fs +++ b/slof/fs/usb/dev-hci.fs @@ -36,12 +36,6 @@ TRUE VALUE first-time-init? false VALUE dev-hci-debug? -: get-base-address ( -- baseaddr ) - hcidev hcd>base @ -; - -get-base-address CONSTANT baseaddrs - 1 encode-int s" #address-cells" property 0 encode-int s" #size-cells" property @@ -55,26 +49,10 @@ get-base-address CONSTANT baseaddrs hcidev ; -\ set HCI into suspend mode -\ this disables all activities to shared RAM -\ called when linux starts (quiesce) -: hc-suspend ( -- ) - hcidev hcd>type @ dup 1 = IF - 00C3 baseaddrs 4 + rl!-le \ Suspend OHCI controller - THEN - 2 = IF - baseaddrs dup c@ + rl@-le FFFFFFFE and - baseaddrs dup c@ + rl!-le \ Stop EHCI controller - ELSE - drop - THEN -; - : hc-cleanup ( -- ) my-phandle set-node dev-hci-debug? IF ." USB-HCI: Cleaning up " pwd cr THEN hcidev USB-HCD-EXIT - hc-suspend 0 set-node ; |