summaryrefslogtreecommitdiff
path: root/drivers/usb (follow)
Commit message (Collapse)AuthorAge
...
| * | | | | | | | | | usb: phy: snps: fix copyright informationHemant Kumar2017-01-20
| | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update copyright line to "The Linux Foundation" and year. Change-Id: I1bdd64bebb77f41555f1057132ad3a060874bb11 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
* | | | | | | | | | Merge "USB: u_data_ipa: Fix spinlock usage in resume_work handler"Linux Build Service Account2017-01-20
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | USB: u_data_ipa: Fix spinlock usage in resume_work handlerVijayavardhan Vennapusa2017-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix spinlock usage in bam2bam_data_resume_work handler that could cause error reported by static analysis tool. Change-Id: I15bbb5abc98452fcfed2d98547a859a355a391d9 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
* | | | | | | | | | | Merge "USb: f_qc_rndis: Initialize opts variable in set_alt()"Linux Build Service Account2017-01-20
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | USb: f_qc_rndis: Initialize opts variable in set_alt()Vijayavardhan Vennapusa2017-01-20
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently opts variable in rndis_qc_set_alt() is used without initializing it. This could cause error reported by static analysis tool. Hence fix this by initializing the variable before accessing it. Change-Id: I77a42464e351f4e9886250315423ae355ff43617 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
* | | | | | | | | | | Merge "USB: u_ctrl_qti: Remove redundant check in qti_ctrl_write()"Linux Build Service Account2017-01-20
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | USB: u_ctrl_qti: Remove redundant check in qti_ctrl_write()Vijayavardhan Vennapusa2017-01-20
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove redundant check for port in qti_ctrl_write() which is not required. Change-Id: I8825b52156d722772759d2ae10f2b8bbd4d18417 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
* | | | | | | | | | | Merge "USB: gadget: mass_storage: Fix Null pointer access during disconnect"Linux Build Service Account2017-01-20
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | USB: gadget: mass_storage: Fix Null pointer access during disconnectVijayavardhan Vennapusa2017-01-19
| | |/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a chance that completion handler and ep disable race each other and it might happen that completion handler gets called after driver_data is set to NULL as part of function disable. This results in crash. Hence add check in completion handler to check if driver_data is NULL or not to fix the issue. CRs-Fixed: 891650 Change-Id: I79ce3967533d2a7cb7591ccfe50b095a540e9884 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
* / | | | | | | | | | USB: gadget: mass_storage: Fix Null pointer access during disconnectVijayavardhan Vennapusa2017-01-19
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a chance that completion handler and ep disable race each other and it might happen that completion handler gets called after driver_data is set to NULL as part of function disable. This results in crash. Hence add check in completion handler to check if driver_data is NULL or not to fix the issue. Change-Id: I3496811f52af79e8dccb701b2753a81f5d5a2340 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
* | | | | | | | | | Merge "usb: pd: Increase number of SRC_CAP attempts before starting host"Linux Build Service Account2017-01-18
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | usb: pd: Increase number of SRC_CAP attempts before starting hostJack Pham2017-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is observed that some PD-capable sink devices have a longer start-up delay before responding to the Source Capabilities message with a Request. Since it is PD capable we'd like to wait until after entering PE_SRC_Ready and VDM Discovery to start USB host mode. Accommodate these devices by increasing the number of failed attempts of sending the message from 5 to 10 before treating it as a non-PD device and starting host mode. Change-Id: Ia555699e78729b75dc118cbb929f7c4c4f2d1279 Signed-off-by: Jack Pham <jackp@codeaurora.org>
* | | | | | | | | | | Merge "usb: pd: Re-enable SuperSpeed host by default"Linux Build Service Account2017-01-18
|\| | | | | | | | | |
| * | | | | | | | | | usb: pd: Re-enable SuperSpeed host by defaultJack Pham2017-01-17
| | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 85cc38fca20f ("usb: pd: Add support to set the maximum speed via extcon") which unnecessarily restricted starting USB host mode to high-speed only. Relax this so that USB host can start in SuperSpeed when DFP mode is entered. However, the only exception is if DisplayPort mode is discovered, we need to drop down to high-speed only due to current hardware limitations. This is handled during the VDM discovery stage. Also use this opportunity to refactor all extcon_set_state_() calls to helper functions that start/stop USB host/peripheral modes. Change-Id: I2f32f70c57a8a6e2c34c8daf59dea931b445422f Signed-off-by: Jack Pham <jackp@codeaurora.org>
* | | | | | | | | | Merge "usb: pd: pdphy: Enable IRQs for wakeup"Linux Build Service Account2017-01-18
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | usb: pd: pdphy: Enable IRQs for wakeupJack Pham2017-01-18
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable the signal and message RX IRQs for wakeup. This allows the system to be woken from suspend when the PD PHY receives an incoming hard reset or SOP* message from a connected peer. Change-Id: Ib6f4507ef363954c91271029874337497659da84 Signed-off-by: Jack Pham <jackp@codeaurora.org>
* | | | | | | | | | Merge "USB: gadget: mbim: Avoid copying uninitialized data to userspace"Linux Build Service Account2017-01-18
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | |
| * | | | | | | | | USB: gadget: mbim: Avoid copying uninitialized data to userspaceArumuga Durai A2017-01-10
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A race condition bug in function 'mbim_bind_config' allows to change 'mbim->xport' type to invalid value. This allows mbim_ioctl() to copy the uninitialized data to userspace. Fix this by avoiding copy_to_user() call when transport type is invalid. Change-Id: If8e8b6d4e2c347e1aff529bed0a798128eaea07c CRs-Fixed: 1102418 Signed-off-by: Arumuga Durai A <cadurai@codeaurora.org>
* | | | | | | | | Merge "usb: phy: qusb2: Enable phy auto-resume"Linux Build Service Account2017-01-16
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | usb: phy: qusb2: Enable phy auto-resumeVijayavardhan Vennapusa2017-01-03
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | phy auto-resume allows phy to automatically drive bus resume right after device driving bus resume for at least 1ms due to remote wake up, before host XHCI driver gets a chance to drive bus resume. Change-Id: Ifbd2d8212fe5ed1bdad32418300ac615091f0226 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
* | | | | | | | | Merge "USB: dwc3-msm: Set speed as high speed if no speed information"Linux Build Service Account2017-01-16
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | USB: dwc3-msm: Set speed as high speed if no speed informationVijayavardhan Vennapusa2017-01-16
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Speed is not notified in case of platforms having micro USB connector instead of USB type C connector. In this case, set speed as High speed only as by default only high speed is supported over micro USB ports. Change-Id: I6f29914ca9e2345157330651464b7a0c151f1f97 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
* | | | | | | | | Merge "Revert "USB: rndis: Free the rndis response queue during rndis reset ↵Linux Build Service Account2017-01-14
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | msg""
| * | | | | | | | | Revert "USB: rndis: Free the rndis response queue during rndis reset msg"Hemant Kumar2017-01-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c996cdd384f0afeb5cc0c110913391582d1d8fc0 ("USB: rndis: Free the rndis response queue during REMOTE_NDIS_RESET_MSG"). RNDIS host sends GET_ENCAP_RESP for every RESP_AVAILABLE_NOTIFICATION from device. As result if REMOTE_NDIS_RESET_MSG comes device rndis driver frees all the previous responses and once notify request gets completed for previous RNDIS request message it sends reset message completion resonse. When response available request corresponding to RNDIS reset message gets completed host RNDIS driver sends GET_ENCAP_RESP and device sends stall because all RNDIS responses are freed due to RNDIS reset message. Change-Id: I8a785d1ea8175c5c6aa08cda5cdd00cfd0c561b5 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
* | | | | | | | | | Merge "usb: gadget: gsi: Improve notify_req handling"Linux Build Service Account2017-01-14
|\| | | | | | | | |
| * | | | | | | | | usb: gadget: gsi: Improve notify_req handlingMayank Rana2016-12-28
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change improves notify_req handling by removing existing state machine used for queueing notify_req, and embed required type of notify_request buffer while creating cpkt. It also makes sure not to change notify_req buffer while it is queued with controller. This change makes sure to queue any pending cpkt from gsi_resume() once USB bus is resumed. This change also starts logging important information of QTI packet in read/write APIs and use qti_packet_debug module param to enable. CRs-Fixed: 1070093 Change-Id: Ic4ae29583e6562eba768a97fa820954d15139064 Signed-off-by: Mayank Rana <mrana@codeaurora.org>
* | | | | | | | | Merge "usb: mon: replace %p with %pK"Linux Build Service Account2017-01-14
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | usb: mon: replace %p with %pKVamsi Krishna Samavedam2017-01-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Format specifier %p can leak kernel addresses while not valuing the kptr_restrict system settings. When kptr_restrict is set to (1), kernel pointers printed using the %pK format specifier will be replaced with Zeros. Debugging Note: &pK prints only Zeros as address. If you need actual address information, write 0 to kptr_restrict. echo 0 > /proc/sys/kernel/kptr_restrict Change-Id: I4d65692f26e9c26dde98a80bb81f134225abaf16 Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
* | | | | | | | | | Merge "usb: core: replace %p with %pK"Linux Build Service Account2017-01-14
|\| | | | | | | | |
| * | | | | | | | | usb: core: replace %p with %pKVamsi Krishna Samavedam2017-01-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Format specifier %p can leak kernel addresses while not valuing the kptr_restrict system settings. When kptr_restrict is set to (1), kernel pointers printed using the %pK format specifier will be replaced with Zeros. Debugging Note : &pK prints only Zeros as address. If you need actual address information, write 0 to kptr_restrict. echo 0 > /proc/sys/kernel/kptr_restrict Change-Id: I13175f66428ada62a2c011968ebc5a925519edbf Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
* | | | | | | | | | Merge "usb: phy: snps: replace %p with %pK"Linux Build Service Account2017-01-14
|\| | | | | | | | | | |_|/ / / / / / / |/| | | | | | | |
| * | | | | | | | usb: phy: snps: replace %p with %pKVamsi Krishna Samavedam2017-01-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Format specifier %p can leak kernel addresses while not valuing the kptr_restrict system settings. When kptr_restrict is set to (1), kernel pointers printed using the %pK format specifier will be replaced with 0's. Debugging Note : &pK prints only Zeros as address. If you need actual address information, write 0 to kptr_restrict. echo 0 > /proc/sys/kernel/kptr_restrict Change-Id: If2177395082b81670af75712b945bea53a53915e Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
| * | | | | | | | usb: gadget: replace %p with %pKVamsi Krishna Samavedam2017-01-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Format specifier %p can leak kernel addresses while not valuing the kptr_restrict system settings. When kptr_restrict is set to (1), kernel pointers printed using the %pK format specifier will be replaced with 0's. Debugging Note : &pK prints only Zeros as address. If you need actual address information, write 0 to kptr_restrict. echo 0 > /proc/sys/kernel/kptr_restrict Change-Id: Ice16947924f56b8f4244ae03b9ab4f2e36b7d56b Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
| * | | | | | | | usb: dwc3: replace %p with %pKVamsi Krishna Samavedam2017-01-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Format specifier %p can leak kernel addresses while not valuing the kptr_restrict system settings. When kptr_restrict is set to (1), kernel pointers printed using the %pK format specifier will be replaced with 0's. Debugging Note : &pK prints only Zeros as address. If you need actual address information, write 0 to kptr_restrict. echo 0 > /proc/sys/kernel/kptr_restrict Change-Id: Ib1f9a151e3cb186763541dc86cb5b67a7d739ece Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
| * | | | | | | | usb: host: replace %p with %pKVamsi Krishna Samavedam2017-01-04
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Format specifier %p can leak kernel addresses while not valuing the kptr_restrict system settings. When kptr_restrict is set to (1), kernel pointers printed using the %pK format specifier will be replaced with 0's. Debugging Note : &pK prints only Zeros as address. If you need actual address information, write zero to kptr_restrict. echo 0 > /proc/sys/kernel/kptr_restrict Change-Id: Ib2b999693224b33241141e290b70724f9e27183f Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
* / / / / / / / usb: gadget: Fix null pointer crash issue in gsi_free_instChandana Kishori Chiluveru2017-01-09
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If misc register failed then there is a chance for accessing the null pointer in gsi_free_inst function and leads to target crash. Hence add the change to handle the same. Change-Id: Iaa3f7db1403ca2d87f259dec109912c5437c24f4 Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
* | | | | | | Merge "usb: gadget: u_data_ipa: Fix condition check for IPA pipes updation"Linux Build Service Account2016-12-25
|\ \ \ \ \ \ \
| * | | | | | | usb: gadget: u_data_ipa: Fix condition check for IPA pipes updationAjay Agarwal2016-12-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only RmNet and DPL need to update their IPA pipes during ipa_data_connect_work context. Add this check before updation of the pipes. Also fix usage of spinlock to avoid potential device crash. Change-Id: I45d13b40fab9bf6686277c0c26a07668410cdfb2 Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
* | | | | | | | Merge "usb: gadget: f_qc_rndis: Fix double-free in qcrndis_free_inst"Linux Build Service Account2016-12-23
|\ \ \ \ \ \ \ \
| * | | | | | | | usb: gadget: f_qc_rndis: Fix double-free in qcrndis_free_instChandana Kishori Chiluveru2016-12-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qcrndis_free_inst function can double free f_qc_rndis pointer. Hence fix this memory bug in qcrndis_free_inst function. Same bool RNDIS flag is used for USB_CONFIGFS_RNDIS and USB_CONFIGFS_QCRNDIS. Add bool Change in Kconfig to differentiate these two different configs. Change-Id: I8e7c4be090107618cd6cbac394a57f109f8a1ced Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
* | | | | | | | | Merge "usb: xhci: Add support for SINGLE_STEP_SET_FEATURE test of EHSET"Linux Build Service Account2016-12-23
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | usb: xhci: Add support for SINGLE_STEP_SET_FEATURE test of EHSETJack Pham2016-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Embedded High-speed Host Electrical Test (EHSET) procedure defines the SINGLE_STEP_SET_FEATURE test for an embedded USB Host port. Upon activating this test mode, the SETUP stage of a GetDescriptor request is sent and followed by a delay of 15 seconds before finishing with the DATA and STATUS stages. The idea is that this delay will give the test operator sufficient time to configure the oscilloscope to perform a measurement of the response time delay between the latter two stages. This test is not implemented by the EHCI/xHCI host controller itself but can be implemented in software. Similar to commit 9841f37a1cca ("usb: ehci: Add support for SINGLE_STEP_SET_FEATURE test of EHSET"), this patch adds such support to the xHCI driver. Change-Id: I638ca552f6dae735147378f3e6f6068e0003094b Signed-off-by: Jack Pham <jackp@codeaurora.org>
| * | | | | | | | | usb/xhci: Add support for EHSET tests for host complianceMayank Rana2016-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USB 2.0 specification defines following test modes for host electrical compliance: TEST_J/K/SE0_NAK and TEST_PACKET. Hence add support for same. CRs-Fixed: 868394 Change-Id: I885ae66be2d8cca17bcc0b87b7635a71c734e4b2 Signed-off-by: Manu Gautam <mgautam@codeaurora.org> Signed-off-by: Mayank Rana <mrana@codeaurora.org>
* | | | | | | | | | Merge "usb: phy: qusb2: Switch to SE clk from diff clk upon suspend"Linux Build Service Account2016-12-23
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | usb: phy: qusb2: Switch to SE clk from diff clk upon suspendHemant Kumar2016-12-21
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upon out of XO shutdown due to remote wakeup, as soon as XO gets restored refclk is supplied to phy before even refgen current is stabilized. USB3 controller asserts suspend_n signal asynchronously for remote wake-up scenario solely based on utmi_linestate switching from J state(suspend) to K state(resume). As a result phy attempts to lock PLL since all prerequisites are met but, PLL lock attempt fails and phy gets stuck. Since GCC_RX1_USB2_CLKREF_EN which was supposed to control differential(CML) clock output to QUSB2 is a no-op, hence switch to SE clock by PHY CSR controlled mux upon suspend. This prevents refclk output to go directly to phy upon XO restore and prevents premature phy pll locking. Phy PLL actually gets locked when phy driver switches back from SE clk to diff clk. Change-Id: Ie5474c42ccdd88df4c101b2113ca8d924eddf037 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
* | | | | | | | | | Merge "ARM: dts: msm: Allow only wfi based on USB irq load for msmfalcon"Linux Build Service Account2016-12-21
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | USB: dwc3-msm: Add support for voting for PM_QOS_LATENCYVijayavardhan Vennapusa2016-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add required changes to enable to vote for PM_QOS_LATENCY based on number of interrupts fired during certain duration. Change-Id: I92ace85ee7fd40c3f33f1b9f7bdd32469d990d84 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
* | | | | | | | | | | Merge "USB: gadget: u_data_ipa: Handle usb requests allocation/free correctly"Linux Build Service Account2016-12-21
|\ \ \ \ \ \ \ \ \ \ \ | | |_|_|/ / / / / / / | |/| | | | | | | | |
| * | | | | | | | | | USB: gadget: u_data_ipa: Handle usb requests allocation/free correctlyChandana Kishori Chiluveru2016-12-20
| | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently USB requests are allocated during connect work for starting endless TX and RX in BAM2BAM over IPA. But these requests are not freed during disconnect which leads to memory leak and could result in memory allocation failure in function drivers during next connect. Hence free USB requests allocated during disconnect to fix memleak issue and also move allocation of RX/TX usb requests to gbam_connect to avoid crashes due to NULL pointer dereference. Also extend spinlock protection to avoid the crashes during connect and disconnect functions. Change-Id: I4362fde2928857253d2150e4d9531cada876cd58 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org> Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org> Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
* | | | | | | | | | Merge "usb: phy: qusb: Keep LDOs ON during disconnect if PMI voted for it"Linux Build Service Account2016-12-20
|\ \ \ \ \ \ \ \ \ \