]> git.baikalelectronics.ru Git - kernel.git/commit
USB: core: let USB device know device node
authorPeter Chen <peter.chen@freescale.com>
Fri, 19 Feb 2016 09:26:15 +0000 (17:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Mar 2016 20:05:01 +0000 (12:05 -0800)
commit5e757cc9498bb48692c8640118127477c285d239
treef6fbc0e6440facdafada6f45af9ec5754190d730
parentbca9eb436b521babca509304de61523ff1d76fee
USB: core: let USB device know device node

Although most of USB devices are hot-plug's, there are still some devices
are hard wired on the board, eg, for HSIC and SSIC interface USB devices.
If these kinds of USB devices are multiple functions, and they can supply
other interfaces like i2c, gpios for other devices, we may need to
describe these at device tree.

In this commit, it uses "reg" in dts as physical port number to match
the phyiscal port number decided by USB core, if they are the same,
then the device node is for the device we are creating for USB core.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/usb/usb-device.txt [new file with mode: 0644]
drivers/usb/core/Makefile
drivers/usb/core/of.c [new file with mode: 0644]
drivers/usb/core/usb.c
include/linux/usb/of.h