Felipe Balbi
482ef1d2fe
usb: gadget: uvc: remove references to DMA_ADDR_INVALID
...
gadget drivers shouldn't touch req->dma at all,
since UDC drivers are the ones required to handle
mapping and unmapping of the request buffer.
Remove references to DMA_ADDR_INVALID so we don't
creat false expectations to gadget driver writers.
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:18:12 +02:00
Felipe Balbi
853f97b5f3
usb: gadget: net2280: remove unused DMA_ADDR_INVALID
...
DMA_ADDR_INVALID isn't used anymore, it's safe
to remove it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:18:12 +02:00
Felipe Balbi
c36cbfc045
usb: gadget: net2272: remove unused DMA_ADDR_INVALID
...
DMA_ADDR_INVALID isn't used anymore, it's safe
to remove it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:18:11 +02:00
Felipe Balbi
662e9469cb
usb: gadget: atmel: remove unused DMA_ADDR_INVALID
...
DMA_ADDR_INVALID isn't (and shouldn't) be used
anymore, let's remove it.
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:18:11 +02:00
Chen Gang
38678f2568
usb: gadget: s3c-hsudc: delete outdated comment
...
since commit d93e260
(usb: gadget: s3c-hsudc: use udc_start and udc_stop
functions) the 'driver' parameter has been deleted from
s3c_hsudc_stop_activity() but its documentation was left outdated. This
patch deletes the comment since it makes no sense anymore.
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:18:10 +02:00
Felipe Balbi
fd89149875
usb: phy: remove CONFIG_USB_OTG_UTILS
...
there are no more users of CONFIG_USB_OTG_UTILS
left in tree, we can remove it just fine.
[ kishon@ti.com : fixed a linking error due
to original patch forgetting to change
drivers/usb/Makefile ]
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:18:08 +02:00
Felipe Balbi
1d3dbfc3a7
usb: gadget: mv_udc_core: check against CONFIG_USB_PHY
...
CONFIG_USB_OTG_UTILS will be removed very
soon, so we should check CONFIG_USB_PHY
instead.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:18:06 +02:00
Sachin Kamat
d25ab3ece0
usb: gadget: fsl_udc_core: Use module_platform_driver_probe macro
...
module_platform_driver_probe() eliminates the boilerplate and simplifies
the code.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Li Yang <leoli@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:18:00 +02:00
Felipe Balbi
a5fcb066d2
usb: gadget: udc-core: anywone can read 'speed' attributes
...
current code only allows the file owner (usually
root) to read current_speed and maximum_speed
sysfs files. Let anyone read those.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:56 +02:00
Felipe Balbi
ddf47ccbfe
usb: gadget: udc-core: remove protection when setting gadget.dev.release
...
now that no UDC driver touches gadget.dev.release
we can assign our release function to it without
being afraid of breaking anything.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:56 +02:00
Felipe Balbi
ad8033fcd0
usb: gadget: s3c-hsotg: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:54 +02:00
Felipe Balbi
59139706a0
usb: gadget: r8a66597-udc: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:54 +02:00
Felipe Balbi
ef98f7465f
usb: gadget: pch_udc: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:53 +02:00
Felipe Balbi
2fb29f215c
usb: gadget: omap_udc: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:53 +02:00
Felipe Balbi
2901df6849
usb: gadget: net2280: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:52 +02:00
Felipe Balbi
8efeeef61d
usb: gadget: net2272: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:52 +02:00
Felipe Balbi
e861c768e5
usb: gadget: mv_udc_core: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:51 +02:00
Felipe Balbi
7c9c3c7e18
usb: gadget: mv_u3d_core: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:50 +02:00
Felipe Balbi
4b282fbe97
usb: gadget: m66592-udc: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:49 +02:00
Felipe Balbi
2ae837e4d8
usb: gadget: goku_udc: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:49 +02:00
Felipe Balbi
509d986a37
usb: gadget: fusb300_udc: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:48 +02:00
Felipe Balbi
0e4d65e529
usb: gadget: fsl_udc_core: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:48 +02:00
Felipe Balbi
29e7dbf329
usb: gadget: fsl_qe_udc: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:47 +02:00
Felipe Balbi
f7162e9e1c
usb: gadget: dummy_hcd: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:47 +02:00
Felipe Balbi
a995d9e2a5
usb: gadget: bcm63xx_udc: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:46 +02:00
Felipe Balbi
e1f07ced2a
usb: gadget: amd5536udc: don't assign gadget.dev.release directly
...
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:46 +02:00
Felipe Balbi
792bfcf7a1
usb: gadget: udc-core: introduce usb_add_gadget_udc_release()
...
not all UDC drivers need a proper release function,
for those which don't need it, we udc-core will provide
a no-op release method so we can remove "redefinition"
of such methods in almost every UDC driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:44 +02:00
Felipe Balbi
bbdb72702e
usb: gadget: s3c2410_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:43 +02:00
Felipe Balbi
492a39022a
usb: gadget: s3c-hsudc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:42 +02:00
Felipe Balbi
430e958e1d
usb: gadget: s3c-hsotg: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:42 +02:00
Felipe Balbi
0280f4d99a
usb: gadget: pxa27x_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:41 +02:00
Felipe Balbi
83a9adc9d8
usb: gadget: pxa25x_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:41 +02:00
Felipe Balbi
37e337e1d3
usb: gadget: pch_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:40 +02:00
Felipe Balbi
f6511d153e
usb: gadget: omap_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:40 +02:00
Felipe Balbi
68abc94f8d
usb: gadget: net2280: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:39 +02:00
Felipe Balbi
812abae5d6
usb: gadget: net2272: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:39 +02:00
Felipe Balbi
9ab7f79923
usb: gadget: mv_udc_core: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:38 +02:00
Felipe Balbi
900b5817d8
usb: gadget: mv_u3d_core: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:38 +02:00
Felipe Balbi
e3ee46f291
usb: gadget: m66592-udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:37 +02:00
Felipe Balbi
ee4b47cf6b
usb: gadget: lpc32xx_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:37 +02:00
Felipe Balbi
9fa4c960aa
usb: gadget: imx_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:36 +02:00
Felipe Balbi
88060d60b6
usb: gadget: goku_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:36 +02:00
Felipe Balbi
6a609129c2
usb: gadget: fusb300_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:35 +02:00
Felipe Balbi
a1827ef6ac
usb: gadget: fsl_udc_core: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:35 +02:00
Felipe Balbi
fc2dba950b
usb: gadget: fsl_qe_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:34 +02:00
Felipe Balbi
42c82fb4d1
usb: gadget: dummy_hcd: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:34 +02:00
Felipe Balbi
155149e672
usb: gadget: bcm63xx_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:33 +02:00
Felipe Balbi
1503a33932
usb: gadget: atmel_usba_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:33 +02:00
Felipe Balbi
8f3d7c8694
usb: gadget: at91_udc: don't touch gadget.dev.driver
...
udc-core now handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:32 +02:00
Felipe Balbi
fd3682d9fd
usb: gadget: amd5536udc: don't touch gadget.dev.driver
...
udc-core handles that for us, which means
we can remove it from our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:32 +02:00