USB: ehci-omap: Don't free gpios that we didn't request
authorRoger Quadros <rogerq@ti.com>
Thu, 14 Feb 2013 15:08:08 +0000 (17:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:41 +0000 (05:38 -0800)
commit2a4315c0903b46b5c82bbf30ccca55c731038c67
tree4fcf9a00bdd5b4d565bbc03dafb93ec09ddd4af9
parent98091839ad5b72f8aa2c9b22ed65cec6fa3bbf6f
USB: ehci-omap: Don't free gpios that we didn't request

commit 428525f97153505e83983460a8d08a3210aa6b8a upstream.

This driver does not request any gpios so don't free them.
Fixes L3 bus error on multiple modprobe/rmmod of ehci_hcd
with ehci-omap in use.

Without this patch, EHCI will break on repeated insmod/rmmod
of ehci_hcd for all OMAP2+ platforms that use EHCI and
set 'phy_reset = true' in usbhs_omap_board_data.
i.e.

board-3430sdp.c: .phy_reset  = true,
board-3630sdp.c: .phy_reset  = true,
board-am3517crane.c: .phy_reset  = true,
board-am3517evm.c: .phy_reset  = true,
board-cm-t3517.c: .phy_reset  = true,
board-cm-t35.c: .phy_reset  = true,
board-devkit8000.c: .phy_reset  = true,
board-igep0020.c: .phy_reset = true,
board-igep0020.c: .phy_reset = true,
board-omap3beagle.c: .phy_reset  = true,
board-omap3evm.c: .phy_reset  = true,
board-omap3pandora.c: .phy_reset  = true,
board-omap3stalker.c: .phy_reset = true,
board-omap3touchbook.c: .phy_reset  = true,
board-omap4panda.c: .phy_reset  = false,
board-overo.c: .phy_reset  = true,
board-zoom.c: .phy_reset = true,

Signed-off-by: Roger Quadros <rogerq@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-omap.c