summaryrefslogtreecommitdiff
path: root/drivers/usb
AgeCommit message (Collapse)Author
2012-12-07usb: tegra: conditionally set wake enablePreetham Chandru R
Set wake enable only if remote wakeup is supported by the platform Bug 1039143 Signed-off-by: Preetham Chandru R <pchandru@nvidia.com> Change-Id: I805dd773cdbb5639f59b2f5ba4bcb2e14be74d5b Reviewed-on: http://git-master/r/147462 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-09-12usb: gadget: tegra: check vbus before run bit setRohith Seelaboyina
Adding the check for vbus before setting the run bit. Bug 1046443 Change-Id: If71748f0fe9c942061ca871034ad4298a58efc23 Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com> Reviewed-on: http://git-master/r/131733 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-08-27usb: otg: tegra: Notify USB events to otg coreRakesh Bodla
Notify USB connection events to otg core. These notifications will be used by drivers (e.g. otg wakelock driver) who registered for the events. Bug 1031034 Bug 976849 Change-Id: I3655071af9226e3aef385681fcabc94b9def4233 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/127137 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Courbot <acourbot@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-08-17usb: otg: tegra: fix racing USB connection eventsXin Xie
Sometimes USB connect and disconnect events is not detected properly. The OTG irq handler is using a workqueue which has no protection for multiple incoming event handling. This patch adds mutex to protect the workqueue for USB connection handling. BUG 968345 Change-Id: If1c6fec4231dd0dc918f7f278e0a1d7667782917 Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/122308 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-08-17usb: gadget: tegra: remove unnecessary bus resumeXin Xie
Current Tegra UDC driver share same IRQ with OTG driver, and it will call bus_resume() even if there is no UDC IRQ pending. This patch will check UDC IRQ source and will not cause bus resume if no IRQ pending for UDC driver. BUG 1015685 Change-Id: Ifc5634ae5d1f7f1435c64bc527ab2e9fb8d0e36b Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/121896 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-08-17usb: gadget: tegra_udc: use USB charging spec 1.2Xin Xie
Enable the USB charging based on the USB charging spec 1.2. Now we can detect: 1. SDP (stanardard downstream port) 2. CDP (charging downstream port) 3. DCP (dedicated charging port) 4. None (no cable connected) 5. Non-standard charger For some non-standard charger, we cannot detect it as DCP device. If we find a charger detected as USB device but no EP0 packet recieved with 1s, we then decided this is 1A charger. bug 968345 Change-Id: I804f90ea6e4794da8f52b1c3ebd694828d99f40e Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/120218 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-08-16USB: gadget: f_audio_source: Adjust packet timing to reduce glitchesMike Lockwood
Increase max packet size and clean up timing logic so we can better recover from not getting an interrupt in time for a SOF. Bug 1026047 Signed-off-by: Mike Lockwood <lockwood@google.com> (cherry picked from commit 3d2096a7959d023bc31a3cf934c3d425de01c94f) Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Change-Id: I0a0a6f448e71e4a0c478bb44cadc54fa021e13e4 Reviewed-on: http://git-master/r/123344 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-08-16USB: gadget: f_audio_source: New gadget driver for audio outputMike Lockwood
This driver presents a standard USB audio class interface to the host and an ALSA PCM device to userspace Bug 1026047 Signed-off-by: Mike Lockwood <lockwood@google.com> (cherry picked from commit a23ff394752015a233dd3b27b05c9d913cbf5536) Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Change-Id: I4054e09888f17d9cdfcfd4a3d430ca5cfb3fd9fa Reviewed-on: http://git-master/r/123343 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-08-16USB: gadget: f_accessory: Add support for HID input devicesRakesh Bodla
Bug 1026047 Signed-off-by: Mike Lockwood <lockwood@google.com> (cherry picked from commit 7a3d01af4f04950a86a18f5a439f1802d8093650) Conflicts: drivers/usb/gadget/f_accessory.c Change-Id: I30bc02a1bcf636967d56370db83578f49f0e7514 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/123342 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-08-16Add ACCESSORY_SET_AUDIO_MODE control request and ioctlMike Lockwood
The control request will be used by the host to enable/disable USB audio and the ioctl will be used by userspace to read the audio mode Bug 1026047 Signed-off-by: Mike Lockwood <lockwood@google.com> (cherry picked from commit 3e1ff6142761eef148c667e540381d1fbc437d4f) Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Change-Id: I5f449de230ca8f44e2dae30a0f87772310b68f20 Reviewed-on: http://git-master/r/123341 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-08-16usb: gadget: tegra_udc: Enable DR IRQ in udc_startPreetham Chandru
Currently dr_controller_run() is called only during otg state change. When we unload a gadget driver, for example g_mass_storage gadget driver, dr_controller_stop() is called but when it is loaded back dr_controller_run() won't get called becasue of the if condition failure. i.e if (!udc->transceiver) { dr_controller_run(udc); } So when the gadget driver is loaded for the second time without removing the cable (i.e without otg state change), the device won't get enumerated on the host because DR IRQs are not enabled. This CL fixes the above issue. Bug 1012787 Signed-off-by: Preetham Chandru <pchandru@nvidia.com> Change-Id: Ia127630e24dbe4c1e418163c2b858efb3baa8e45 Reviewed-on: http://git-master/r/114592 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-08-10usb: ehci: tegra: Fix Slab corruption errorPreetham Chandru
Give ownership of the DMA buffer back to the processor first and then free the buffer. Otherwise processor won't be able to access the dma mapped buffers and this would lead to slab corruption. When the DMA buffer is freed without a call to dma_sync_single_for_cpu(), the kernel won't be able to set the buffer as POISON FREE and when we acquire this memory back again the kernel will start printing slab corruption output as the memory is not set to POISON FREE Bug 1017884 Bug 1018161 Reviewed-on: http://git-master/r/#change,122151 Signed-off-by: Preetham Chandru R <pchandru@nvidia.com> Change-Id: I00d6cb185cd2314cccb56f968eb0a05288588c13 Reviewed-on: http://git-master/r/122390 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-08-09usb: host: fix tegra_ehci_remove() warningsVenu Byravarasu
usb_put_hcd calls hcd_release which frees up memory allocated for hcd. As iounmap is called after usb_put_hcd and it is trying to access hcd->regs, getting warning messages during unload of USB. Hence fixing it. bug 1023362 Change-Id: Ic339395edad9a76a9eeae290eff3517d2c714477 Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-on: http://git-master/r/122088 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Tested-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-08-09USB: otg: delay device disconnectKrishna Yarlagadda
Device disconnect during resume might fail if notification clients for this device removal are not ready. Disconnecting device after the resume is complete. Bug 1024496 Change-Id: Ia806e177d2dd2b1b43d3fea7a4af45f0d4a93cd4 Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-on: http://git-master/r/122079 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-08-09usb: gadget: tegra: fix compilation issueRakesh Bodla
Fixing the potential compilation this is currently masked as CONFIG_USB_OTG_UTILS is enabled. Change-Id: Ie10e5fc252156b8b904d387d87a11136fcc3f4c1 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/122043 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-08-09usb: otg: tegra: fix compilations errorsRakesh Bodla
Werror flag is enabled now. Fixing the compilations errors when DEBUG is enabled. Change-Id: I909dd177eedfd72f1f71d1a546fc40c301bd1aa7 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/122033 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-08-03usb: gadget: Don't build USB_FSL_MP_DR_OF on TegraDan Willemsen
This config option only builds on PPC platforms. Change-Id: Ibe7ebdc2dd5b9aa46e8f887570481a11a373c417 Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-on: http://git-master/r/95475 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
2012-08-02USB: gadget: f_accessory: change prototype of create_bluk_endpointsRakesh Bodla
Changing prototype of create_bluk_endpoints since function can called during runtime. Bug 1026235 Change-Id: I9a39abb4de4548f18e6c6482e56a9126fe4122a3 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/120277 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-08-02usb: otg: tegra: enable warning as error flagDeepak Nibade
-enable warnings as errors compilation flag -handle errors of missing semicolon and mismatched argument type bug 949219 Change-Id: I29b1c08c590c94fa1aa43a9e37abf0385e3597d5 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/118235 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-08-02usb: gadget: treat warning as errors for tegra_udc.cDeepak Nibade
bug 949219 Change-Id: If76cece9a5c929216024b165f48f37c4046faffc Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/118037 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-07-31usb: otg: tegra: correct improper register updateRakesh Bodla
Value of WAKEUP register is not updated properly. Correcting it to take appropriate value. Bug 1008660 Change-Id: Ic1dcfed6639c8e8c686bc6931216fd268e4521ed Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
2012-07-27usb: ehci: tegra: Update RUN bit properly.Suresh Mangipudi
Read the RUN bit and update it properly. Remove unused variable. Change-Id: I1df5dc99ce40e2ca15f0ade28d156a7262467519 Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-on: http://git-master/r/117958 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-07-27usb: ehci: DMA buffer sync for qh/qtd descriptorsJC Kuo
When EHCI host controller driver examines qh/qtd descriptors, driver might see stale data in cache on some ARM CPU. This patch introduces two helper functions, ehci_sync_qh() and ehci_sync_qtd(), to invalidate cached descriptors so that driver can always read up-to-date descriptors from memory. Bug 1005403 Change-Id: I2345bda7dfe29c5fe7f9550066b518cd6624d263 Signed-off-by: JC Kuo <jckuo@nvidia.com> Reviewed-on: http://git-master/r/116406 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: WK Tsai <wtsai@nvidia.com> Reviewed-by: ChihMin Cheng <ccheng@nvidia.com> Reviewed-by: Joy Wang <joyw@nvidia.com> Reviewed-by: Vinayak Pane <vpane@nvidia.com> Reviewed-by: Michael Hsu <mhsu@nvidia.com> Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2012-07-27USB: gadget: tegra: SW WAR for dTD issueKrishna Yarlagadda
SW WAR implementation for h/w issue observed on all tegra platforms Adding a dTD to a Primed Endpoint May Not Get Recognized TD freeing will be delayed until next TD is completed Bug 1002166 Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-on: http://git-master/r/109562 (cherry picked from commit 8603480606af20444ed91e3010a22cc02edacb78) Change-Id: I875d06eb2db78a18858590645df631478f3201bb Reviewed-on: http://git-master/r/116972 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Tested-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-07-26usb: cdc-acm: fix packet loss issueSteve Lin
There is race between acm_suspend and acm_read_bulk_callback. Host may receive bulk transfer right before suspend. The packet will be discarded if this urb is killed in acm_suspend. This patch checks the actual length of urb and processes it in this case. Bug 996268 Signed-off-by: Steve Lin <stlin@nvidia.com> Change-Id: Ief2b42708160b67903f976ec60da825d46c4720b Reviewed-on: http://git-master/r/117135 (cherry picked from commit af3e96c987fbae8a135d1ff18872b9c32e09b67f) Reviewed-on: http://git-master/r/118105 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Steve Lin <stlin@nvidia.com> Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-07-24usb: ehci: tegra: HSIC remote wakeup supportVinod Atyam
1) Returning in irq after remote wakeup resume handled in ehci irq function. 2) Removed the unused variables. Bug 889618 Change-Id: I9a1fd25c753a53462bf7742065fa618caae501ab Signed-off-by: Vinod Atyam <vatyam@nvidia.com> Reviewed-on: http://git-master/r/111192 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-07-23usb: ehci: tegra: prevent illegal register accessRakesh Bodla
Make sure phy is turned ON before reading USB registers. Bug 993380 Bug 1006579 Reviewed-on: http://git-master/r/116045 (cherry picked from commit a1a6db7dc88880fb3d4bca0036ce421e4032adae) Change-Id: If94e691bf9b5b46dd8f8562f27cf86e59a4d6353 Reviewed-on: http://git-master/r/117257 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Tested-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-07-17usb: serial: baseband: buffer allocations at initVinayak Pane
The usb transaction buffers are allocated in module init. In device open, close and disconnect the buffers will not be freed. Instead they will be reused to avoid allocation failure in low-mem conditions. The usb driver register moved to init so that rmmod and insmod is not required. Bug 956211 Signed-off-by: Vinayak Pane <vpane@nvidia.com> Reviewed-on: http://git-master/r/109935 (cherry picked from commit a4e8219a86f80fd06aaaae2c40a657098d5dcfa5) Change-Id: Id88cfe3b0a75cb2e6f39176b5297f81f4f9e978b Reviewed-on: http://git-master/r/115609 Tested-by: Vinayak Pane <vpane@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-07-11usb: otg: tegra: wake enabledBitan Biswas
Wake sources usb VBUS or ID detect enabled bug 980993 bug 936982 Change-Id: Iea36d308c1a118abdb7815212d749bd058d0054f Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: http://git-master/r/103141 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-07-09usb: otg: remove otg callbackChandler Zhang
Previously the callback was added to control USB VBUS. The standard way is to use regulator. Bug 997805 Change-Id: I88b15befaf4e162478da19ead50695978b2c5f4b Signed-off-by: Chandler Zhang <chazhang@nvidia.com> Reviewed-on: http://git-master/r/112901 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-07-05usb: host: tegra: code clean upVenu Byravarasu
Addressed below items with this patch: 1. Using devm_kzalloc in place of kzalloc. 2. Correcting platform_get_irq return value check Change-Id: I68225fe40adbb4be98e16ee2e0a4fccefadd8626 Reviewed-on: http://git-master/r/105843 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-07-05ARM: tegra: usb: turn off power during suspendRohan Somvanshi
Turn off regulators along with clocks during suspend Bug 991262 Reviewed-on: http://git-master/r/108820 (cherry picked from commit 41ae7ac21a2c08da0e4312b8395b380a704fa16c) Change-Id: Ib49eec5d91571d75881f4d252d956dece1d37d60 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/105364 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2012-07-05usb: gadget: tegra_udc: include pm_qos header fileRakesh Bodla
Include pm_qos_params header file to avail pm_qos apis. Bug 923594 Change-Id: Icbaad45e83a688b537159eea22ddd7356565fabf Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/113438 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-06-26usb: serial: baseband: Add another XMM modem USB VID/PID.Michael Hsu
Add support for another XMM modem. Bug 996038 Change-Id: I392a18284b372fbc80c581b31b21af3c072bf4d3 Signed-off-by: Michael Hsu <mhsu@nvidia.com> Reviewed-on: http://git-master/r/110193 (cherry picked from commit bdad2e9c1b195c8f7fcc3216f2bf27ea99dfd597) Reviewed-on: http://git-master/r/110941 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Vinayak Pane <vpane@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-06-18usb: tegra: otg: fix unbalanced suspend/resumeXin Xie
Becasue of a previous workaround, suspend/resume pair is implemented as suspend/complete pair in the driver's dev_pm_ops field. If any driver suspend routine (which is called before otg suspend) failed, then tegra_otg_resume() will be called even tegra_otg_suspend() is not called. This will cause disable the OTG clock, and OTG will not generate any more IRQ. Ideal fix would be use suspend/resume pair to implement the dev_pm_ops, but this might break previous workaround. This patch check suspend() routine is called or not in the resume routine; even we use suspend/ resume pair in the future, it will not cause bad behaviour. BUG 999759 Change-Id: I88f9c28bb76c5ff9e32917904017f291456cb933 Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/108444 (cherry picked from commit c751aeea65f126d8e2df7f8a9ba02a631f958dc1) Reviewed-on: http://git-master/r/108945 Reviewed-by: Lokesh Pathak <lpathak@nvidia.com> Tested-by: Lokesh Pathak <lpathak@nvidia.com>
2012-06-18USB: tegra: otg: Enable host by defaultKrishna Yarlagadda
Host support should be disabled only when there is platform data specifying proper setting. Bug 998001 Change-Id: I99ff534074dd7ebbf12b53dcf53d6286925965d2 Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-on: http://git-master/r/108760 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-06-15usb: serial: baseband_usb_chr kernel panicpyu
Two threads race for two resources when baseband_usb_close() get called from a user process Bug 988188 Change-Id: Ic962640b6414e576d34b7ff6870b21b644837434 Signed-off-by: pyu <pyu@nvidia.com> Reviewed-on: http://git-master/r/107088 GVS: Gerrit_Virtual_Submit Reviewed-by: Vinayak Pane <vpane@nvidia.com> Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-06-11usb: ehci: tegra: fix HSIC bus reset issues.Vinod Atyam
Corrected wIndex in the hub control to call the bus reset sequence properly. Change-Id: I7d410262d55ad4ad5acfe72e8725616238f863ac (cherry picked from commit fee4a582584e24e93b9c43446a0d223664d70e6b) (cherry picked from commit f8b775561696979ad08f53ea3b3c571bc07734bb) Reviewed-on: http://git-master/r/107593 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Vinod Atyam <vatyam@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> GVS: Gerrit_Virtual_Submit
2012-06-07Revert "usb: ehci: tegra: fix hsic enum failure"Rakesh Bodla
This is not merged properly reverting the change. This reverts commit 3b080222a7b37c31fe73be90c3e681096f8b82dd. Change-Id: Icb07c67bdff69a41685f7f8b038cf38306566789 Reviewed-on: http://git-master/r/107001 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-06-07usb: otg: tegra: Add builtin host support to tegra OTGVenu Byravarasu
bug 947300 Change-Id: Ib9f1b796faa94d8424cfca41c7ec29d5360ef60c Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-on: http://git-master/r/106983 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> GVS: Gerrit_Virtual_Submit
2012-06-06usb: ehci: tegra: fix hsic enum failureVinayak Pane
HSIC device enumeration is broken after usb common phy changes. Setting correct hsic config in port_power and repairing wIndex in hub_control. Bug 991485 Change-Id: Ic2873879070cba8a06fb2cadc40d6c46158f71e9 Signed-off-by: Vinayak Pane <vpane@nvidia.com> Reviewed-on: http://git-master/r/105513 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-06-06usb: otg: tegra: Enable ID_WAKEUP in otg suspendRakesh Bodla
Disabling the ID_WAKEUP in the suspend causing the otg state to change to host, so disabling it in otg suspend. Also, renaming the readl calls to otg_readl call. Bug 993390 Change-Id: I2789ea31fefe4425eb63b6be3e70d794bddcfd83 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/106177 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-06-04usb: otg: tegra: using sscanf in enable_host store functionalityVenu Byravarasu
Replaced kstrtoul with sscanf. Change-Id: I1c82e92bf43d2ceba6ac3a7c0090394ba3497f13 Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-on: http://git-master/r/105888 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-06-01arm: tegra: usb: fix UTMIP auto suspend issuesRakesh Bodla
Fixing the UTMIP auto suspend issues. Bug 992463 Bug 989400 Change-Id: Ia0d536cd66081b263f7f2bde5debcc600dcef22a Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/105692 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-05-31ARM: tegra: usb: enable pmu vbus interruptsKrishna Yarlagadda
Enable pmu vbus interrupt for Enterprise and Whistler to save power by turning off controller clock Change-Id: I691bdd76ca71d63d98f83e2a3a18bbfcfc16a473 Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-on: http://git-master/r/105150 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-05-29usb: ehci: tegra: fix remote wakeup issuesRakesh Bodla
This change fixes remote wakeup issues when usb line is in suspend state. Bug 989441 Bug 989400 Change-Id: I97982943d5521470b83ed87b83ab8703c4e9c260 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/104746 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-05-25tegra: usb: disable interrupts when lockingSang-Hun Lee
Problem description: - tegra_udc_irq uses udc->lock - Some functions running in the process context was not disabling interrupts when locking udc->lock - If a function gets interrupted by tegra_udc_irq after locking udc->lock, a deadlock occurs, as tegra_udc_irq would also try to lock Fix description: - Use an interruption disabling variant of spin_lock Bug 983958 Change-Id: Ib774847212da64f1f727a207a4821860ffa7b4a8 Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com> Reviewed-on: http://git-master/r/102693 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> GVS: Gerrit_Virtual_Submit
2012-05-24usb: otg: tegra: enhance tegra otg driverRakesh Bodla
Following enhancements are done: a. Removed unnecessary apis. b. Update the new platform data structures. c. Removed unnecessary function call overheads. Bug 887361 Change-Id: I148f2c0adb617c6f3100b84854bbd4ed1e953ecd Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/103601 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> GVS: Gerrit_Virtual_Submit
2012-05-24usb: gadget: tegra: update udc driver to use common phyRakesh Bodla
Update the udc driver to use common phy. Bug 887361 Change-Id: I013c3df22fd7d41718debb96dc8db78f56d73bd1 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/103600 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> GVS: Gerrit_Virtual_Submit
2012-05-24usb: host: tegra: update ehci to use common phyRakesh Bodla
Following enhancements are done: a. Update driver with common phy interface b. Make host driver independent of phy type and remove unnecessary CONFIG variables. Bug 887361 Change-Id: Ibafa37a048df4377b73029039b04d04a53020bd4 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/103599 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> GVS: Gerrit_Virtual_Submit