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
3920193d8e
usb: renesas: gadget: 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:55 +02:00
Felipe Balbi
07d8316827
usb: musb: gadget: 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:55 +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
e5caff6831
usb: dwc3: gadget: 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:45 +02:00
Felipe Balbi
79c7d84977
usb: chipidea: 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:45 +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
8707d5abbd
usb: renesas: gadget: 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: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
Felipe Balbi
180cc68ed8
usb: dwc3: gadget: 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:31 +02:00
Felipe Balbi
70d3a49878
usb: gadget: udc-core: initialize gadget->dev.driver
...
if we initialize gadget->dev.driver ourselves,
UDC drivers won't have to do the same, so we
can remove some duplicated code.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:30 +02:00
Felipe Balbi
8a1c33075e
usb: gadget: fsl_udc_core: remove unnecessary initializations
...
udc-core now sets dma-related and parent fields
for us, we don't need to do it ourselves.
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-03-18 11:17:30 +02:00