MLK-10101-4 usb: add otg_fsm pointer in usb_bus
authorLi Jun <jun.li@freescale.com>
Tue, 27 Jan 2015 09:11:14 +0000 (17:11 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:02 +0000 (14:47 -0500)
commit4e4177ecf3b6f4b2b75be8c9a3670a80dff58834
tree69a4acaecebc4303394b1e1554e8769a5d85b5c8
parent654ac11746a8ed015fcb7d160258ed3b33e9fbd2
MLK-10101-4 usb: add otg_fsm pointer in usb_bus

Add otg_fsm pointer in struct of usb_bus for access otg_fsm via bus.
Original way was to put it in usb_otg, then usb host can access otg_fsm
via hcd->usb_phy->otg->fsm, since usb_phy will not be the future direction,
instead phy is preferred, so this way may not work. It's more direct and
simple to put it in usb_bus.

Signed-off-by: Li Jun <jun.li@freescale.com>
(cherry picked from commit c118afccbbb1c78938c649ee72758213c22cf489)
include/linux/usb.h