]> git.baikalelectronics.ru Git - kernel.git/commit
usb: chipidea: ci_hdrc_imx: access phy via private data
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 25 Jun 2013 09:58:05 +0000 (12:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jun 2013 23:41:06 +0000 (16:41 -0700)
commit486997358f1b975fb3572eab6e17afa007260680
tree406784c4c2e7bd46d50f77a33981970e079eb317
parentd6694c5be969a1cf039f60318f424b9df7fbd9ed
usb: chipidea: ci_hdrc_imx: access phy via private data

commit 196ea368abf (usb: chipidea: i.MX: use devm_usb_get_phy_by_phandle to get
phy) causes the USB host to miss the disconnect/connect events.

In order to reproduce this problem:

- Insert a USB thumb into the USB host port (connection is detected)
- Remove it (no disconnect event will be reported)
- Insert the USB thumb again (connection is not detected)

Fix this problem by accessing the usb_phy structure using the private data
instead of accessing a local structure.

Tested on a mx28evk board.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_imx.c