usb: misc: usb3503: Add to select the ports to disable
authorDongjin Kim <tobetter@gmail.com>
Tue, 21 May 2013 20:20:08 +0000 (05:20 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:27:27 +0000 (07:27 +0200)
commit716cc47ae562fe905fea0572e5b8d5e4935d9956
treed84b3f8ee0412c7cd5f78dcb01ece85a9e1571aa
parentc1168c90d71c397af596e86081162e7f9cae5124
usb: misc: usb3503: Add to select the ports to disable

This patch is to disable the USB ports unconnected to USB3503. In order to
disable the port, 'port_off_mask' must be set.

* Disable PORT1 only
.port_off_mask = USB3503_OFF_PORT1;

* Disable PORT1 and PORT3 only
.port_off_mask = USB3503_OFF_PORT1 | USB3503_OFF_PORT3;

* Enables all ports
.port_off_mask = 0;

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[mszyprow: mainline commit e8e44a4896a5f0bde1af36a31b7ec662bdaa44ef]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ie8e44a4896a5f0bde1af36a31b7ec662bdaa44ef
drivers/usb/misc/usb3503.c
include/linux/platform_data/usb3503.h