]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
usb: ehci-xilinx-usbps: Fix reboot issue in OTG mode
authorMichal Simek <michal.simek@xilinx.com>
Mon, 26 Nov 2012 09:12:46 +0000 (10:12 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Sun, 2 Dec 2012 19:36:33 +0000 (20:36 +0100)
commit8ec927ba65b0ab037de51921baa5868e57b1ceab
tree04a8ac546ccc0dfaf434a2b7d0e2cd4470ec8c3c
parent75fff93f09da764080b3545c269232d0e94b478c
usb: ehci-xilinx-usbps: Fix reboot issue in OTG mode

This patch fix the reboot issue when OTG mode is used
and reset is performed without using OTG-host mode.

The reason is not initializaed ehci->caps/regs which
are initialized in ehci_xusbps_setup but this function
is called when host mode is used.
But uninitialization depends on these values.

Path: usb_hcd_platform_shutdown -> ehci_shutdown ->
ehci_silence_controller -> ehci_halt
where code expect filled ehci->regs value.

Change ehci behavior in OTG mode to add and remove hcd
which ensure that all structure are initialized
and ehci can be shutdown.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/usb/host/ehci-xilinx-usbps.c