]> www.infradead.org Git - users/jedix/linux-maple.git/commit
USB: core: let USB device know device node
authorVijay Kumar <vijay.ac.kumar@oracle.com>
Fri, 28 Oct 2016 20:59:57 +0000 (13:59 -0700)
committerAllen Pais <allen.pais@oracle.com>
Sat, 24 Jun 2017 01:27:48 +0000 (06:57 +0530)
commit6d2ea2c08d125ae5465ef6b2a579dc053b40494f
tree0256c19a025479429881814349bf63a52ba883c8
parent386612579dad59a7f003e14cb5667118c52922a0
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>
(cherry picked from commit 69bec725985324e79b1c47ea287815ac4ddb0521)

Conflicts:

include/linux/usb/of.h

Signed-off-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
Reviewed-by: Babu Moger <babu.moger@oracle.com>
Orabug: 24785721
Signed-off-by: Allen Pais <allen.pais@oracle.com>
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